Hi all, I have a serious problem here: I've had to reinstall win xp (I know I know...) on a previously perfectly working dual boot configuration... I knew the win xp reinstallation would overwrite the bootloader, but I had a good Grub reinstallation procedure: from the Debian install cd, run rescue (or rescuegui), select "Grub reinstallation". Which I did; and actually, I got my Grub back, with splash and stuff. The problem is that Grub looks for root=/dev/sda6, as it should be, but for some reasons, root ended up on /dev/sda5... look:
from /grub/menu.lst
Code:
title debian GNU/Linux, kernel 2.6.18-4-686
root (hd0,5)
kernel /boot/vmlinuz-2.6.18-4-686 root=/dev/sda6 ro vga=791 splash
initrd /boot/initrd.img-2.6.18-4-686
savedefault
this is fdisk -l
Code:
omitting empty partition (5)
Disk /dev/sda: 58.5 GB 58506416640 bytes
255 heads, 63 sectors/track, 7113 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/sda2 1276 3825 20482843+ 7 HPFS/NTFS
/dev/sda3 3826 7113 26410860 5 Extended
/dev/sda4 5863 7113 9807651 b W95 FAT32
/dev/sda5 3826 4554 5855629+ 83 Linux
/dev/sda6 4555 4676 979933+ 82 Linux swap
/dev/sda7 4677 5892 9767488+ 83 Linux
and /etc/fstab
Code:
file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda6 / ext3 defaults,errors=remount-ro
/dev/sda8 /home ext3 defaults 0 2
/dev/sda7 none swap sw 0 0
/dev/sda5 /hdshare vfat rw,user,auto,exec........
/dev/sda2 /ressources ntfs ro,user,auto.......
/dev/scdO /media/cdrom0 udf..................
if I compare /etc/fstab and fdisk -l, root is on /dev/sda6 (as it has always be) fdisk -l shows a Linux swap filesystem... If I dynamically change option in grub switching root=/dev/sda6 to root=/dev/sda5, then the OS boots... but it fails of course on loading /swap, /home, expecting it to be /dev/sda8... which it can't find... It's just as if the filesystem table had been all messed up. All partitions mentioned in /fstab do exist : I can "cd /" in them. Other clue : I tryed to see what a partitioning tool would say... Gparted sees the hard drive as empty... no filesystem at all... so does the install cd tools... but f... windows, when booted, perfectly sees all the partitions with its disk manager.... And finally, there's smthing weird shown from fdisk -l:/dev/sda4 starts at the 5863rd blocks, but it should be /dev/sda5 if I look at the starting and ending blocks of each... I don't know if it's related or not.
Is it a matter of mbr ? boot loader ? Please... if somebody had the beginning of an idea... I've already apt-get remove Grub, to then apt-get intall it, with no change. Should I erase the mbr (fdisk/mbr, is it ?)and then reinstall Grub ?
ps : grub-install --recheck /dev/sda didn't solve anything