Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-07-2008, 02:29 PM
TomB
 
Posts: n/a
Default Default grub settings

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-07-2008, 02:29 PM
Mark South
 
Posts: n/a
Default Re: Default grub settings

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 ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-07-2008, 02:29 PM
TomB
 
Posts: n/a
Default Re: Default grub settings

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-07-2008, 02:29 PM
TomB
 
Posts: n/a
Default Re: Default grub settings

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-07-2008, 02:29 PM
Mark South
 
Posts: n/a
Default Re: Default grub settings

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"?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-07-2008, 02:29 PM
Edwin Schwab
 
Posts: n/a
Default Re: Default grub settings

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:48 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62