Mounting external EXT3 via USB on FC4
I've searched here and found some good information but nothing exactly like what I'm looking for. Consider this a "newbie" post. I've got a fair amount of experience with some things on Linux, but I've never had to do anything like this.
I was previously running a server under RH9 and it experienced (what I assume was) a hard drive "crash". I don't know the particulars as I'm not smart on drive post-mortem tools. It now refuses to boot with a kernel panic and some nasty EXT3 errors. I can possibly capture those errors if there is a need but I figured it would be just as easy to remount the drive in an external USB box and pull the vital data off. Truthfully, my question is not related to the crash directly -- I've resolved that the drive will not boot but would really like to get certain bits of data off the drive. The RH9 drive was the only drive in the machine and hence had a swap partition and the other standard (don't know what else to call them... default?) partitions for a run-of-the-mill RH9 install. I've got an FC4 box handy so I figured with the HAL (?) it would be easy enough to mount the old drive via USB and get into the partitions to grab the data. The FC4 box is running kernel: 2.6.15-1.1833_FC4 Plugging in the USB box creates the following: In fstab: Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details Code:
Mar 27 20:39:42 dorkus kernel: usb 1-2: new high speed USB device using ehci_hcd and address 2 Question: What, if anything, else do I need to do to mount the remaining partitions of the RH9 drive? Does the fact that the FC4 box didn't automatically mount them mean that they are trashed and not accessible? What other tools could I use to get to the data? o.k. so that was questions plural, not question.... ;-) One more bit of data. When I mount the drive on a Windows box it of course can't do anything with the EXT3 partitions but it does show four partitions. Any insight would be appreciated. Thanks. |
# fdisk -l /dev/sda
That is the letter "L" and not the number one in the comand above. # mkdir /media/partitionX # mount -t ext3 /dev/sdaX /media/partitionX -ro Where X is the partition number you want to mount (ignore the swap partition). |
A default RH9 install creates 3 partitions. /boot / and swap. The posted log messages confirms the 3 partitions. RH and fedora uses volume labels and so now you have two partitions labeled /boot. The second one being the USB drive hence the /boot(2). The second / is not automatically mounted.
|
This can't be good.....
Thanks guys! I got this in my logs when I tried this:
Code:
Mar 28 20:51:29 dorkus kernel: EXT3-fs error (device sda2): ext3_check_descriptors: Block bitmap for group 128 not in group (block 1701062688)! Code:
Disk /dev/sda: 20.4 GB, 20419853824 bytes The mount command gave me this: Code:
# mount -t ext3 /dev/sda2 /media/partition2 Code:
# mount -t ext3 /dev/sda2 /media/partition2 -ro Thanks again guys. I really appreciate it. |
No, it was a typo on my part sorry....
# mount -t ext3 /dev/sdaX /media/partitionX -r or # mount -t ext3 /dev/sdaX /media/partitionX -o ro |
All times are GMT -5. The time now is 09:22 AM. |