LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 12-18-2010, 02:32 PM   #1
_person_
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Rep: Reputation: 0
Debian and .disk file compatibility


Heya, first post here.

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?
 
Old 12-18-2010, 03:21 PM   #2
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 267

Rep: Reputation: 30
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.
 
Old 12-18-2010, 03:56 PM   #3
_person_
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 12-18-2010, 05:38 PM   #4
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 267

Rep: Reputation: 30
Did you do
Code:
sudo mount -t ext4 -o loop /home/backup.disk /mnt
(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.
 
Old 12-18-2010, 06:07 PM   #5
raokat
LQ Newbie
 
Registered: Dec 2010
Location: Houston
Posts: 1

Rep: Reputation: 0
Can anybody point me to a resource where I can read a little more on this. Thank you.
 
Old 12-18-2010, 06:09 PM   #6
_person_
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Original Poster
Rep: Reputation: 0
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?
 
Old 12-18-2010, 07:39 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Make sure the vfat kernel module is loaded:
lsmod | grep vfat

If it isn't "sudo modprobe vfat"



To mount the image file use "sudo mount -t vfat -o loop /home/backup.disk /mnt"
 
Old 12-18-2010, 08:15 PM   #8
_person_
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
lsmod | grep vfat
vfat 9152 0
fat 40864 1 vfat
nls_base 6820 2 vfat,fat
Quote:
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.
That resulted after the above suggestion.

Last edited by _person_; 12-18-2010 at 08:17 PM.
 
Old 12-18-2010, 08:24 PM   #9
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 267

Rep: Reputation: 30
That is because your disk image isn't fat32.
 
Old 12-18-2010, 08:31 PM   #10
_person_
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Then I can't remember what it might be. I get those results with NTFS, ext2, ext3, and vfat. What else might it be?
 
Old 12-18-2010, 09:13 PM   #11
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 267

Rep: Reputation: 30
Ext4, reiserfs or btrfs (which are the most commonly used in ubuntu).
 
Old 12-18-2010, 09:17 PM   #12
_person_
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Reiser gives the same thing, ext4 and btrfs give "mount: unknown filesystem type 'btrfs'" and "mount: unknown filesystem type 'ext4'"

Is there a way to scan it and see which it is?

Last edited by _person_; 12-18-2010 at 09:20 PM.
 
Old 12-18-2010, 11:21 PM   #13
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
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:

Code:
sudo fdisk -l #lowercase 'L', not number 1
 
Old 12-18-2010, 11:37 PM   #14
_person_
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 12-19-2010, 05:46 PM   #15
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 267

Rep: Reputation: 30
you need to do
Code:
sudo fdisk -l backup.disk
to make fdisk look inside the disk image.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
Debian and FC2 compatibility mufy Debian 3 07-15-2005 11:57 AM
Eclipse on Debian Sid and Java 1.5 compatibility dreambrother Programming 1 11-17-2004 06:05 PM
Debian Hardware Compatibility LadyTanicia Linux - Newbie 4 08-06-2004 01:06 PM
Linux/DOS disk compatibility Fudge T Goblin Slackware 2 09-16-2003 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration