mount old linux disk to new Linux
Hi,
I have an old disk and trying to attach to the upgraded linux version hoping to see my old data. But I am not very successful. What is the normal procedure to make the data from old linux to be visible to new Linux system? - steps I took. # fdisk -l /dev/sdc Disk /dev/sdc: 160.0 GB, 160000000000 bytes 255 heads, 63 sectors/track, 19452 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdc1 * 1 19452 156248158+ 83 Linux After creating doing # mkdir -p /mnt/sdc1 and modifying /etc/fstab file to have the line /dev/sdc1 /mnt/sdc1 ext3 defaults 1 2 I typed # mount -a But I got the error as following: mount: wrong fs type, bad option, bad superblock on /dev/sdc1, or too many mounted file systems Any idea to go futher from here? Thanks. -- slcuser |
Are you certain /dev/sdc1 is ext3 and not xfs, reiserfs, jfs, etc.? I would do something like 'file -s /dev/sdc1' to get more info about the filesystem.
|
Is ext3 correct as the filesystem? Try from the commandline with
mount -t ext3 /dev/sdc1 /mnt/sdc1 You may need to be root for it to work. In place of ext3 you could try ext2 and/or auto. And where you tried mount -a try mounting just sdc1 with mount /dev/sdc1. EDIT: Matir and I were typing at the same time. |
Hi,
Thanks for your kind inputs. I thought it was ext3 but not sure now since I did not put the old system. I tried Matir> # file -s /dev/sdc1 /dev/sdc1: Linux/i386 swap file (new style) 1 (4K pages) size 1024134 pages dracolich> # mount -t ext3 /dev/sdc1 /mnt/sdc1 "mount: wrong fs type, bad option, bad superblock on /dev/sdc1, or too many mounted file systems" and the same thing for ext2. Then from the result of the suggestion from Matir, the disk contains only swap space? I forgot to mention one thing: If I modify /etc/mtab by adding the line as /dev/sdc1 /mnt/sdc1 ext3 rw 0 0 and type mount -a then I am able to mount the disk and reporting #df Filesystem 1K-blocks Used Available Use% Mounted on .... .... /dev/sdc1 15709664 3677116 11234520 25% /mnt/sdc1 However, of I cd into the directory I do not see any old files there. # cd /mnt/sdc1 # ls --slcuser |
Modifying mtab does not really mount the disk. mount -a returns no errors because it believes that disk is already mounted.
|
Quote:
So the old disk contain only swap files and cannot be mountable? -- slcuser |
All times are GMT -5. The time now is 03:04 PM. |