LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems with grub-settings after update (https://www.linuxquestions.org/questions/linux-newbie-8/problems-with-grub-settings-after-update-707062/)

Cazed 02-24-2009 03:59 AM

Problems with grub-settings after update (Debian)
 
Hi,

when I installed my Debian (Etch) i had my hard drive on the IDE-bus but due to problems I moved it to a SATA-bus and manually edited menu.lst to point to the new partition of the root file system and everything worked fine until I tried to upgrade the system (apt-get upgrade) and apt reconfigures GRUB using the hardware-information from when the system was first installed (I presume) and booting fails until I start a live-cd and edit menu.lst to point to the correct root file system again.

How do I go about to tell apt where the root partition is located so I don't have to panic at every boot after a system upgrade?

/Åke

Matey 02-24-2009 04:37 AM

have you edited the menu.lst file under /boot/grub/ ?

Cazed 02-24-2009 05:01 AM

Quote:

Originally Posted by Matey (Post 3455423)
have you edited the menu.lst file under /boot/grub/ ?

Yes, and afterwards it works fine until next time i use apt to upgrade the system. apt then resets the location of the root file system to the value it was after the first install of the system.

It's not a huge problem but I always forget that I have to edit /boot/grub/menu.lst after an upgrade and I get a bit jumpy when the boot process halts unexpectedly =)

/Åke

syg00 02-24-2009 05:07 AM

I don't use (real) Debian, but I'd guess update-grub is being run automagically for you - "for your benefit" no doubt.
I hate these automatic scripts - check "man update-grub" for how to update the comments you normally ignore.

Cazed 02-24-2009 05:37 AM

Quote:

Originally Posted by syg00 (Post 3455448)
I don't use (real) Debian, but I'd guess update-grub is being run automagically for you - "for your benefit" no doubt.
I hate these automatic scripts - check "man update-grub" for how to update the comments you normally ignore.

Thanks, this sounds as a good place to start. I'll look into it as soon as I get home this evening.

Cazed 02-25-2009 07:54 AM

Quote:

Originally Posted by syg00 (Post 3455448)
I don't use (real) Debian, but I'd guess update-grub is being run automagically for you - "for your benefit" no doubt.
I hate these automatic scripts - check "man update-grub" for how to update the comments you normally ignore.

This seem to have worked, all I had to do was edit the line starting with # kopt= in menu.lst to set the correct root partition.

Thanks
/Åke


All times are GMT -5. The time now is 02:58 AM.