
Originally Posted by
gid99
Not really the same problem, I think. I've a hard disk failure; no trouble mounting the drive it just doesn't read (or, possibly, write) properly.
---------- Post added at 05:43 PM CDT ---------- Previous post was at 03:13 PM CDT ----------

Originally Posted by
jpollard
This looks like a failing disk.
dd conv=noerror if=/dev/sda5 of=file.iso bs=512
The command I actually used was
Code:
dd conv=noerror if=/dev/sda5 of=/mnt/newdev/sysimage.iso bs=512
The command identified three bad locations (sectors?): 12752, 2566000, and 71637552. At each failing location, there were eight successive attempts, each taking 12-25 seconds, to read the bad sector. Since I did not expect this, I tried a couple of less useful approaches. The entire process took about 2-1/2 hours.
Seems likely that a 133GB partition with three unreadable sectors is likely recoverable. I'll post later how that all works out.
Thanks to all who helped.
---------- Post added at 09:37 PM CDT ---------- Previous post was at 05:43 PM CDT ----------
OK, I'm still stuck. I did not mention up to now that the partition at issue is my LVM partition, and I'm completely clueless about how to mount it. I found that one needs to use losetup, but there seem to be more caveats in its usage than I have so far been able to grok.
If you'll kindly bear with me and this long post, here are data that appear relevant.
My partition table looks like this (please pardon the misalignment):
Device Boot Start End Blocks Id System
/dev/sda1 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 14260 114439168 7 HPFS/NTFS
/dev/sda3 * 14260 14286 204800 83 Linux
/dev/sda4 14287 30401 129443737+ 5 Extended
/dev/sda5 14287 30401 129442816 8e Linux LVM
I had formatted my 500GB drive as a single Linux partition, then executed the dd command.
Mounting the drive using
Code:
mount /dev/sdc1 /mnt/western
works fine, but
Code:
mount -o loop -t ext4 /mnt/western/sysimage.iso /mnt/newiso
clued me in by telling me the iso was not ext4.
An additional obvious complexity is that I'm running off the F12 install disk in rescue mode, and my mount table looks like this:
rootfs on / type rootfs (rw,relatime)
/proc on /proc type proc (rw,relatime)
/dev on /dev type tmpfs (rw,seclabel,relatime)
/dev/pts on /dev/pts type devpts (rw,seclabel,relatime,gid=5,mode=620,ptmxmode=000)
/sys on /sys type sysfs (rw,relatime)
none on /tmp type tmpfs (rw,seclabel,relatime)
/dev/loop0 on /mnt/runtime type squashfs (ro,relatime)
/selinux on /selinux type selinuxfs (rw,relatime)
/dev/mapper/VolGroup-lv_root on /mnt/sysimage type ext4 (rw,seclabel,relatime,barrier=1,data=ordered)
/dev/sda3 on /mnt/sysimage/boot type ext4 (rw,seclabel,relatime,barrier=1,data=ordered)
/dev on /mnt/sysimage/dev type tmpfs (rw,seclabel,relatime)
/dev/devpts on /mnt/sysimage/dev/pts type devpts (rw,seclabel,relatime,gid=5,mode=620,ptmxmode=000)
/dev/tmpfs on /mnt/sysimage/dev/shm type tmpfs (rw,seclabel,relatime)
/dev/proc on /mnt/sysimage/proc type proc (rw,relatime)
/dev/sysfs on /mnt/sysimage/sys type sysfs (rw,relatime)
/selinux on /mnt/sysimage/selinux type selinuxfs (rw,relatime)
/dev/sdc1 on /mnt/western type ext4 (rw,seclabel,relatime,barrier=1,data=ordered)