vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I recently moved my debian installation from hda3 to hda1, but now each time I do a kernel upgrade and grub's menu.lst is regenerated it changes root and kernel root back to hd(0,2) and /dev/hda3. I guess this is specified somewhere in a config file, but I can't figure out which one. Can someone point me in the righht direction? |
| |||
| On Wed, 06 Feb 2008 13:37:10 +0100, TomB wrote: > I recently moved my debian installation from hda3 to hda1, but now each > time I do a kernel upgrade and grub's menu.lst is regenerated it changes > root and kernel root back to hd(0,2) and /dev/hda3. I guess this is > specified somewhere in a config file, but I can't figure out which one. > Can someone point me in the righht direction? What are the contents of /boot/grub/device.map ? |
| |||
| In one of those seldomly occurring moments of mental clarity Mark South wrote: > What are the contents of /boot/grub/device.map ? (hd0) /dev/hda (hd1) /dev/sda Already looked at that one. Didn't look like the file I'm looking for... -- TomB - DrumScum tommy.bongaerts@gmail.com To alcohol, the cause of and solution to all of life's problems - Homer J. Simpson. |
| |||
| In one of those seldomly occurring moments of mental clarity TomB wrote: >> What are the contents of /boot/grub/device.map ? > > (hd0) /dev/hda > (hd1) /dev/sda > > Already looked at that one. Didn't look like the file I'm looking for... Just had a look at the /usr/sbin/update-grub script, but that doesn't seem to be the problem either. When I run it it adds the boot options correctly into grub... -- TomB - DrumScum tommy.bongaerts@gmail.com To alcohol, the cause of and solution to all of life's problems - Homer J. Simpson. |
| |||
| On Wed, 06 Feb 2008 18:52:24 +0000, TomB wrote: > In one of those seldomly occurring moments of mental clarity Mark South > wrote: > >> What are the contents of /boot/grub/device.map ? > > (hd0) /dev/hda > (hd1) /dev/sda > > Already looked at that one. Didn't look like the file I'm looking for... I doubt it's the problem ,but are you sure that "/dev/sda" shouldn't be "/dev/hdb"? |
| ||||
| On Wed, 06 Feb 2008 13:37:10 +0100, TomB wrote: > Hi, > > I recently moved my debian installation from hda3 to hda1, but now each > time I do a kernel upgrade and grub's menu.lst is regenerated it changes > root and kernel root back to hd(0,2) and /dev/hda3. I guess this is > specified somewhere in a config file, but I can't figure out which one. > Can someone point me in the righht direction? Have you checked the (commented) entries kopt and groot, like # kopt=root=/dev/hda2 ro and # groot=(hd0,1) in /boot/grub/menu.lst? IMHO these are used by update-grub, as the comment above them says: ### BEGIN AUTOMAGIC KERNELS LIST ## lines between the AUTOMAGIC KERNELS LIST markers will be modified ## by the debian update-grub script except for the default options below ## DO NOT UNCOMMENT THEM, Just edit them to your needs |