Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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 =)
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.