extract only one file from .gz archive [closed]
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I have backup Image backup_image.img.gz which is 250gb I would like to extract only 1 file which is /etc/csf/csf.conf from this .gz file. I would like also to keep backup_image.img.gz.
I used this this command to create archive
dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /ext/backups/backup_image.img.gz &
disk-image gunzip
closed as unclear what you're asking by Michael Homer, Stephen Rauch, G-Man, slm⦠Nov 12 '17 at 15:10
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
 |Â
show 1 more comment
up vote
1
down vote
favorite
I have backup Image backup_image.img.gz which is 250gb I would like to extract only 1 file which is /etc/csf/csf.conf from this .gz file. I would like also to keep backup_image.img.gz.
I used this this command to create archive
dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /ext/backups/backup_image.img.gz &
disk-image gunzip
closed as unclear what you're asking by Michael Homer, Stephen Rauch, G-Man, slm⦠Nov 12 '17 at 15:10
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
3
This is really "extract one file from.img
archive", which requires knowing what format that image is in before it's possible to tell whether it's possible. I think it's unlikely, but you can edit in more information and somebody might be able to tell you.
â Michael Homer
Nov 12 '17 at 4:05
1
If this is a standard partition backup image (en.wikipedia.org/wiki/IMG_%28file_format%29) then i agree with Mr Homer it's unlikely that you can retrieve a single file, or any subset of files, until you reestablish the partition image. After-all it is just sequential disk sectors in this form. There isn't even an available directory structure until it's rebuilt.
â Theophrastus
Nov 12 '17 at 4:36
I don't know if this is standard archive or not I use this command to create archive dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /ext/backups/backup_image.img.gz &
â danone
Nov 12 '17 at 5:16
if it is not possible how can I extract .gz archive to same directory.
â danone
Nov 12 '17 at 5:21
1
You need to say what the filesystem onsda
was.
â Michael Homer
Nov 12 '17 at 5:24
 |Â
show 1 more comment
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have backup Image backup_image.img.gz which is 250gb I would like to extract only 1 file which is /etc/csf/csf.conf from this .gz file. I would like also to keep backup_image.img.gz.
I used this this command to create archive
dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /ext/backups/backup_image.img.gz &
disk-image gunzip
I have backup Image backup_image.img.gz which is 250gb I would like to extract only 1 file which is /etc/csf/csf.conf from this .gz file. I would like also to keep backup_image.img.gz.
I used this this command to create archive
dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /ext/backups/backup_image.img.gz &
disk-image gunzip
edited Nov 12 '17 at 5:18
asked Nov 12 '17 at 3:51
danone
1069
1069
closed as unclear what you're asking by Michael Homer, Stephen Rauch, G-Man, slm⦠Nov 12 '17 at 15:10
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as unclear what you're asking by Michael Homer, Stephen Rauch, G-Man, slm⦠Nov 12 '17 at 15:10
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
3
This is really "extract one file from.img
archive", which requires knowing what format that image is in before it's possible to tell whether it's possible. I think it's unlikely, but you can edit in more information and somebody might be able to tell you.
â Michael Homer
Nov 12 '17 at 4:05
1
If this is a standard partition backup image (en.wikipedia.org/wiki/IMG_%28file_format%29) then i agree with Mr Homer it's unlikely that you can retrieve a single file, or any subset of files, until you reestablish the partition image. After-all it is just sequential disk sectors in this form. There isn't even an available directory structure until it's rebuilt.
â Theophrastus
Nov 12 '17 at 4:36
I don't know if this is standard archive or not I use this command to create archive dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /ext/backups/backup_image.img.gz &
â danone
Nov 12 '17 at 5:16
if it is not possible how can I extract .gz archive to same directory.
â danone
Nov 12 '17 at 5:21
1
You need to say what the filesystem onsda
was.
â Michael Homer
Nov 12 '17 at 5:24
 |Â
show 1 more comment
3
This is really "extract one file from.img
archive", which requires knowing what format that image is in before it's possible to tell whether it's possible. I think it's unlikely, but you can edit in more information and somebody might be able to tell you.
â Michael Homer
Nov 12 '17 at 4:05
1
If this is a standard partition backup image (en.wikipedia.org/wiki/IMG_%28file_format%29) then i agree with Mr Homer it's unlikely that you can retrieve a single file, or any subset of files, until you reestablish the partition image. After-all it is just sequential disk sectors in this form. There isn't even an available directory structure until it's rebuilt.
â Theophrastus
Nov 12 '17 at 4:36
I don't know if this is standard archive or not I use this command to create archive dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /ext/backups/backup_image.img.gz &
â danone
Nov 12 '17 at 5:16
if it is not possible how can I extract .gz archive to same directory.
â danone
Nov 12 '17 at 5:21
1
You need to say what the filesystem onsda
was.
â Michael Homer
Nov 12 '17 at 5:24
3
3
This is really "extract one file from
.img
archive", which requires knowing what format that image is in before it's possible to tell whether it's possible. I think it's unlikely, but you can edit in more information and somebody might be able to tell you.â Michael Homer
Nov 12 '17 at 4:05
This is really "extract one file from
.img
archive", which requires knowing what format that image is in before it's possible to tell whether it's possible. I think it's unlikely, but you can edit in more information and somebody might be able to tell you.â Michael Homer
Nov 12 '17 at 4:05
1
1
If this is a standard partition backup image (en.wikipedia.org/wiki/IMG_%28file_format%29) then i agree with Mr Homer it's unlikely that you can retrieve a single file, or any subset of files, until you reestablish the partition image. After-all it is just sequential disk sectors in this form. There isn't even an available directory structure until it's rebuilt.
â Theophrastus
Nov 12 '17 at 4:36
If this is a standard partition backup image (en.wikipedia.org/wiki/IMG_%28file_format%29) then i agree with Mr Homer it's unlikely that you can retrieve a single file, or any subset of files, until you reestablish the partition image. After-all it is just sequential disk sectors in this form. There isn't even an available directory structure until it's rebuilt.
â Theophrastus
Nov 12 '17 at 4:36
I don't know if this is standard archive or not I use this command to create archive dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /ext/backups/backup_image.img.gz &
â danone
Nov 12 '17 at 5:16
I don't know if this is standard archive or not I use this command to create archive dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /ext/backups/backup_image.img.gz &
â danone
Nov 12 '17 at 5:16
if it is not possible how can I extract .gz archive to same directory.
â danone
Nov 12 '17 at 5:21
if it is not possible how can I extract .gz archive to same directory.
â danone
Nov 12 '17 at 5:21
1
1
You need to say what the filesystem on
sda
was.â Michael Homer
Nov 12 '17 at 5:24
You need to say what the filesystem on
sda
was.â Michael Homer
Nov 12 '17 at 5:24
 |Â
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
3
This is really "extract one file from
.img
archive", which requires knowing what format that image is in before it's possible to tell whether it's possible. I think it's unlikely, but you can edit in more information and somebody might be able to tell you.â Michael Homer
Nov 12 '17 at 4:05
1
If this is a standard partition backup image (en.wikipedia.org/wiki/IMG_%28file_format%29) then i agree with Mr Homer it's unlikely that you can retrieve a single file, or any subset of files, until you reestablish the partition image. After-all it is just sequential disk sectors in this form. There isn't even an available directory structure until it's rebuilt.
â Theophrastus
Nov 12 '17 at 4:36
I don't know if this is standard archive or not I use this command to create archive dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /ext/backups/backup_image.img.gz &
â danone
Nov 12 '17 at 5:16
if it is not possible how can I extract .gz archive to same directory.
â danone
Nov 12 '17 at 5:21
1
You need to say what the filesystem on
sda
was.â Michael Homer
Nov 12 '17 at 5:24