Bootloader error after resizing partitions
Using DiskDrake on Mandriva Linux 2006 on KDE, I reduced the size of my windows partition (/mnt/windows) and created a new partition from the empty space mounted to /usr. When clicking on "Done" I get three messages:
1) Your bootloader configuration must be updated because partition has been renumbered (I click on "OK") 2) The bootloader cannot be installed correctly. You have to boot rescue and choose "Re-install Boot Loader" (I click on "OK") 3) You need to reboot for the partition table modifications to take place (I click on "OK") At this point i cancel the reboot because I have no idea what these errors mean. Then I get another message: 4) You should format partition sda5. Otherwise no entry for mount point /usr will be written in fstab. Quit anyway? (I click on "Cancel" instead of "OK"). What do these messages mean and what should I do about them? |
You should do waht it told you to do: stick the rescue disk into the CDROM drive and reboot your machine. When the rescuedisk comes up, select to reinstall bootloader.
The errors essentially mean that something went wrong with modifying yuor bootloader configuration and it will be easier to just reinstall it than to try modifying it. The final one about formatting the disk was a important one. Since the new partition you created is now without a filesystem, you will have to create one for it at some point before using it and then manually add the entry for it in /etc/fstab. Code:
mkfs.theFilesystemYouUse /dev/sda5 |
[QUOTE=Artanicus]You should do waht it told you to do: stick the rescue disk into the CDROM drive and reboot your machine. When the rescuedisk comes up, select to reinstall bootloader. [/QUOTE}
I haven't made a rescue disk. Will my Mandriva installation disks suffice or can I create one? Quote:
|
Well, you could always try reinstalling the bootloader yourself. But, Mandriva uses Grub and im not that familiar with it, am a Lilo fan myself.. Also I have no idea what filesystem Mandriva uses these days, back when I used it, it was ext3 but could be reiserfs these days.. The command
Code:
mount |
Okay, it was ext3. Now, how do I make the rescue disk or reinstall the bootloader myself?
Also, here are the results of the mount and the mkfs commands Code:
[root@localhost michael]# mount |
Hum.. it seems that sda5 is your root partition.. So, that cannot be the one you resized.. Thus, the mkfs didn't work..
Usually one of the install disks also acts as a rescue disk, but I think we can get the bootloader reinstalled without it.. the command Code:
grub-install /dev/sda |
Which one of these would be the config?
Code:
[michael@localhost ~]$ cd /boot/grub After asking this, I relized its probably the second one. |
Weird. menu.lst is the one but you dont seem to have one.. Very weird.. I think your best bet is posting a new question about the grub problems, it will attract better attention and you'll find someone who knows more about grub..
|
Here's what the menu.1st.example file shows:
Code:
timeout 10 |
I'm not even sure what the grub problem is. What should I ask?
|
The example wont do since you have scsi disks.. And it would be a gamble to just try it out and not be able to boot again..
The problem mainly is that your grub freaked out and needs to be re-installed. |
I ultimately just booted up with my Mandriva install disk and selected Repair (instead of a fresh install). It skips the partitioning and reinstalls the bootloader. I had to go in and re-mount the /usr partition. It still existed but didn't have a label. It is all working wonderfully now. Thanks a bunch!
|
All times are GMT -5. The time now is 01:13 PM. |