There's a problem with Ubuntu running on my hosted VPS. All I have access to is a recovery console which allows me to mount the devices.
I've narrowed the problem down to a messed
menu.lst. I have the kernel and initrd pointing to the correct images, but I have no idea what the drive identifiers are when the Virtual machine is started. Also, using the grub command line gives errors when attempting to access the drives.
Can anyone give me advice on what I can do to determine the drive identifiers, or anything else that might help?
Grub version is 0.97.
I'll quickly go over my environment slightly.
- I'm in the recovery console, which, from the look of it, acts like a Live CD.
- I've mounted my VPS root(sdb1) to /mnt.
- I've mounted dev using
mount -o bind /dev /mnt/dev
- I can see two other drives in /dev;
sda, (which holds
sdb2which is my VPS swap.
I've then chrooted into /mnt/ to access the grub prompt. I then get the following:
grub> root (hd0, <TAB>
grub> root (hd0,0)
Error 5: Partition table invalid or corrupt.
On the first command, grub shows no suggestions when I press tab. Also, only hd0 is found.
I'll be putting bounty on this question as soon as I'm allowed. Thanks for your help!
fdisk -l /dev/sdb // Doesn't exist. fdisk -l /dev/sdb1 // My root partition. ... Disk /dev/sdb1 doesn't contain a valid partition table.