With the command pv it is possible to clone a drive, how do I mount it?
Clash Royale CLAN TAG#URR8PPP
up vote
4
down vote
favorite
I was able to backup a drive using the following command.
pv -EE /dev/sda > disk-image.img
This is all well and good, but now I have no way of seeing the files unless I use this command
pv disk-image.img > /dev/sda
This, of course, writes the data back to the disk which is not what I want to do. My question is what can I do to mount the .img
file itself instead of just writing back to a disk?
I've tried mounting using loop but it seems to complain about an invalid NTFS.
$ mount -o loop disk-image.img
mount: disk-image.img: can't find in /etc/fstab.
$ mount -o loop disk-image.img /mnt/disk-image/
NTFS signature is missing.
Failed to mount '/dev/loop32': Invalid argument
The device '/dev/loop32' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
mount disk-image pv
add a comment |Â
up vote
4
down vote
favorite
I was able to backup a drive using the following command.
pv -EE /dev/sda > disk-image.img
This is all well and good, but now I have no way of seeing the files unless I use this command
pv disk-image.img > /dev/sda
This, of course, writes the data back to the disk which is not what I want to do. My question is what can I do to mount the .img
file itself instead of just writing back to a disk?
I've tried mounting using loop but it seems to complain about an invalid NTFS.
$ mount -o loop disk-image.img
mount: disk-image.img: can't find in /etc/fstab.
$ mount -o loop disk-image.img /mnt/disk-image/
NTFS signature is missing.
Failed to mount '/dev/loop32': Invalid argument
The device '/dev/loop32' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
mount disk-image pv
1
What doesfile disk-image.img
tell you?
â Nick ODell
2 hours ago
1
disk-image.img: DOS/MBR boot sector
â tisaconundrum
2 hours ago
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
I was able to backup a drive using the following command.
pv -EE /dev/sda > disk-image.img
This is all well and good, but now I have no way of seeing the files unless I use this command
pv disk-image.img > /dev/sda
This, of course, writes the data back to the disk which is not what I want to do. My question is what can I do to mount the .img
file itself instead of just writing back to a disk?
I've tried mounting using loop but it seems to complain about an invalid NTFS.
$ mount -o loop disk-image.img
mount: disk-image.img: can't find in /etc/fstab.
$ mount -o loop disk-image.img /mnt/disk-image/
NTFS signature is missing.
Failed to mount '/dev/loop32': Invalid argument
The device '/dev/loop32' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
mount disk-image pv
I was able to backup a drive using the following command.
pv -EE /dev/sda > disk-image.img
This is all well and good, but now I have no way of seeing the files unless I use this command
pv disk-image.img > /dev/sda
This, of course, writes the data back to the disk which is not what I want to do. My question is what can I do to mount the .img
file itself instead of just writing back to a disk?
I've tried mounting using loop but it seems to complain about an invalid NTFS.
$ mount -o loop disk-image.img
mount: disk-image.img: can't find in /etc/fstab.
$ mount -o loop disk-image.img /mnt/disk-image/
NTFS signature is missing.
Failed to mount '/dev/loop32': Invalid argument
The device '/dev/loop32' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
mount disk-image pv
mount disk-image pv
edited 2 hours ago
asked 2 hours ago
tisaconundrum
1285
1285
1
What doesfile disk-image.img
tell you?
â Nick ODell
2 hours ago
1
disk-image.img: DOS/MBR boot sector
â tisaconundrum
2 hours ago
add a comment |Â
1
What doesfile disk-image.img
tell you?
â Nick ODell
2 hours ago
1
disk-image.img: DOS/MBR boot sector
â tisaconundrum
2 hours ago
1
1
What does
file disk-image.img
tell you?â Nick ODell
2 hours ago
What does
file disk-image.img
tell you?â Nick ODell
2 hours ago
1
1
disk-image.img: DOS/MBR boot sector
â tisaconundrum
2 hours ago
disk-image.img: DOS/MBR boot sector
â tisaconundrum
2 hours ago
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
5
down vote
You backed up the whole disk including the MBR (512 bytes), and not a simple partition which you can mount, so you have to skip the MBR.
Please try with:
sudo losetup -o 512 /dev/loop0 disk-image.img
sudo mount -t ntfs-3g /dev/loop0 /mnt
Splendid insight!
â K7AAY
1 hour ago
add a comment |Â
up vote
1
down vote
Install p7zip-full if you don't have it already, then take a look with
sudo 7z /pathtowhereitis/whatever.img
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
You backed up the whole disk including the MBR (512 bytes), and not a simple partition which you can mount, so you have to skip the MBR.
Please try with:
sudo losetup -o 512 /dev/loop0 disk-image.img
sudo mount -t ntfs-3g /dev/loop0 /mnt
Splendid insight!
â K7AAY
1 hour ago
add a comment |Â
up vote
5
down vote
You backed up the whole disk including the MBR (512 bytes), and not a simple partition which you can mount, so you have to skip the MBR.
Please try with:
sudo losetup -o 512 /dev/loop0 disk-image.img
sudo mount -t ntfs-3g /dev/loop0 /mnt
Splendid insight!
â K7AAY
1 hour ago
add a comment |Â
up vote
5
down vote
up vote
5
down vote
You backed up the whole disk including the MBR (512 bytes), and not a simple partition which you can mount, so you have to skip the MBR.
Please try with:
sudo losetup -o 512 /dev/loop0 disk-image.img
sudo mount -t ntfs-3g /dev/loop0 /mnt
You backed up the whole disk including the MBR (512 bytes), and not a simple partition which you can mount, so you have to skip the MBR.
Please try with:
sudo losetup -o 512 /dev/loop0 disk-image.img
sudo mount -t ntfs-3g /dev/loop0 /mnt
answered 1 hour ago
Antonio Petricca
24717
24717
Splendid insight!
â K7AAY
1 hour ago
add a comment |Â
Splendid insight!
â K7AAY
1 hour ago
Splendid insight!
â K7AAY
1 hour ago
Splendid insight!
â K7AAY
1 hour ago
add a comment |Â
up vote
1
down vote
Install p7zip-full if you don't have it already, then take a look with
sudo 7z /pathtowhereitis/whatever.img
add a comment |Â
up vote
1
down vote
Install p7zip-full if you don't have it already, then take a look with
sudo 7z /pathtowhereitis/whatever.img
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Install p7zip-full if you don't have it already, then take a look with
sudo 7z /pathtowhereitis/whatever.img
Install p7zip-full if you don't have it already, then take a look with
sudo 7z /pathtowhereitis/whatever.img
answered 1 hour ago
K7AAY
221319
221319
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468897%2fwith-the-command-pv-it-is-possible-to-clone-a-drive-how-do-i-mount-it%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
What does
file disk-image.img
tell you?â Nick ODell
2 hours ago
1
disk-image.img: DOS/MBR boot sector
â tisaconundrum
2 hours ago