Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, yesterday I removed my Ubuntu install and decided to replace it with Debian. I backed up the /home directory onto the Windoze installation on the other hard drive. That was a "home.disk" file. Now, I copied the file over to the Debian hard drive, and can't figure out how to recover the files. Is this possible to do in Debian?
What did you use to make the backup disk image?
If you used the dd command, you'll need to mount the disk image from the console using the mount command, you need to pass the "-o loop" to the mount command and you use the filesystem that you were using in your ubuntu "/" partition.
It's not a disk image really, it's just a *.disk file. I tried "mount -o loop /home/backup.disk" with no success, so I assume that's not what I was supposed to do.
(assuming your ubuntu's "/" partition was set using the default ext4 filesystem).
Also note that a disk image IS a file that is treated as a whole volume by the OS (hence why you use the "-o loop" flag when mounting).
Now if you used a special program to make the backup, you will probably need it to restore the backup.
That works a bit better. Unfortunately, the partition was fat32 for some reason. When I try "sudo mount -t fat32 -o loop /home/backup.disk /mnt", it says that fat32 is an unknown FS type. Is it still possible to read the file?
mount -t vfat -o loop /home/backup.disk /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Quote:
dmesg | tail
[ 21.671668] lp0: using parport0 (interrupt-driven).
[ 21.716352] ppdev: user-space parallel port driver
[ 31.644039] eth0: no IPv6 routers present
[ 100.916014] eth0: no IPv6 routers present
[ 673.696455] FAT: bogus number of reserved sectors
[ 673.696471] VFS: Can't find a valid FAT filesystem on dev loop0.
[ 4717.831893] FAT: bogus number of reserved sectors
[ 4717.831905] VFS: Can't find a valid FAT filesystem on dev loop0.
[ 4740.757677] FAT: bogus number of reserved sectors
[ 4740.757690] VFS: Can't find a valid FAT filesystem on dev loop0.
Have you tried mounting it in Nautilus (if you have GNOME) or Dolphin (if you have KDE)? Usually in GNOME there's a utility called "Archive Mounter" that you can use to mount images (just right-click them).
Then, after mounting it that way, this might help:
When I right-click the backup.disk file in the file manager, my options are to open it with "Archive Manager", "mount", or other applications. Opening with mount appears to do nothing, the archive manager just tells me that it can't open the file.
fdisk -l doesn't help either, it just lists the info for the partitions on the two hard drives, nothing about the backup.disk file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.