LinuxQuestions.org
Visit Jeremy's Blog.
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: 108

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: 12,314

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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/Novell 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


All times are GMT -5. The time now is 06:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration