LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2009, 03:59 AM   #1
Cazed
LQ Newbie
 
Registered: Aug 2004
Location: Umeå, Sweden
Distribution: Gentoo, Debian
Posts: 10

Rep: Reputation: 0
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

Last edited by Cazed; 02-24-2009 at 04:21 AM. Reason: Added Distro to topic
 
Old 02-24-2009, 04:37 AM   #2
Matey
Member
 
Registered: Jan 2009
Posts: 114

Rep: Reputation: 17
have you edited the menu.lst file under /boot/grub/ ?
 
Old 02-24-2009, 05:01 AM   #3
Cazed
LQ Newbie
 
Registered: Aug 2004
Location: Umeå, Sweden
Distribution: Gentoo, Debian
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Matey View Post
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
 
Old 02-24-2009, 05:07 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
Old 02-24-2009, 05:37 AM   #5
Cazed
LQ Newbie
 
Registered: Aug 2004
Location: Umeå, Sweden
Distribution: Gentoo, Debian
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
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.
 
Old 02-25-2009, 07:54 AM   #6
Cazed
LQ Newbie
 
Registered: Aug 2004
Location: Umeå, Sweden
Distribution: Gentoo, Debian
Posts: 10

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by syg00 View Post
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
 
  


Reply

Tags
debian



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimal Software Update Settings Doug Vitale SUSE / openSUSE 3 06-28-2007 10:19 AM
SuSE 9.1 YaST Online Update and Proxy Settings mikemrh9 Linux - Networking 5 07-11-2004 06:01 PM
GRUB splashimage configuration / update GRUB rudL Linux - Software 1 05-10-2004 07:16 AM
Account settings mangled after update frkstein Linux - Software 0 04-25-2004 09:11 PM
GRUB settings greg108 Linux - Newbie 2 08-18-2003 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration