lost partition, grub loading, but can't see my LVM drive
Hi all,
I've resisted the urge to post for as long as I could. I use these forums quite often in finding answers to the numerous linux questions that I've had & found it to be a great resource. However the time has come where I need some more specific help. For some reason after an innocent reboot of my Fedora 12 Core system, GRUB decided it would no longer load the O/S. I was just getting a flashing _ in the top left of the screen. I thought there must be a problem with the partition table & have used the systemRescueCd to run testdisk (I have made a copy of the disk first to an image file using dd - don't worry I made sure I got the commands around the correct way!). testdisk shows that I have a partition which is bootable & Primary, which appears to be the grub partition (I can list the files in test disk). However when I search the disk I get the following after it has found a couple of partitions. (it is an 80Gb disk) Code:
Disk /dev/sda - 81 GB / 76 GiB - CHS 9964 255 63 Code:
fdisk -l after mounting the /dev/sda1 partition & cd 'ing to grub my menu.lst looks like: Code:
default=1 Thanks in advance. |
when I run the command to open the image of the drive - i.e the way it was before I started fiddling:
testdisk /media/tmp/shuttle.image I select analyze & I can see both partitions, but if I don't make one of them D (for deleted) then testdisk reports the structure is bad. Code:
Disk /media/tmp/shuttle.image - 81 GB / 76 GiB - CHS 10588 240 63 |
Those partitions overlap - so testdisk is trying to protect you from yourself.
If it were me I'd define the boot as 26 cylinders, as per the second listing, and let testdisk recover the LVM. Then mount them from the systemrescue to make sure they are o.k. |
sorry, what do you mean by define the boot as 26 cylinders? Should I just select the latter option & set it to bootable?
|
Presuming /dev/sda1 is indeed your /boot partition (the one containg the grub executables), use fdisk to create a partition that matches that "fdisk -l" listing you have above. No need to worry about the boot flag - grub ignores it.
|
Thanks for that.
However I was too impatient & didn't see your reply until I had already restored the disk using the disk image I created previously & ran testdisk to use the Linux LVM partition: Code:
(L Linux LVM 27 22 38 10586 239 63 159665777) Code:
Select a media (use Arrow keys, then press Enter): Thanks. |
All times are GMT -5. The time now is 12:46 PM. |