Art Alexion on 21 Oct 2005 15:37:12 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] drives not properly named after switch


sean finney wrote:

hi chris,

On Thu, Oct 20, 2005 at 08:18:07PM -0400, Christopher M. Jones wrote:


When I made the switch, I changed /boot/grub/menu.lst to reflect the new
drive configuration. But when I later recompiled my kernel and installed
it, grub rewrote the menu to the previous configuration, looking for
kernels etc. on /dev/hdb1. I also noticed just a while a go that df -ah



this is a frequent point of confusion with debian based grub. if you
take a look at your menu.lst file, you'll see a section of
commented out options above the list of of boot images. these are used
to set default options for the automatically generated list of boot
settings below. _without uncommenting them_, there's probably an option
you should change to reference hda instead of hdb now.



Right, you should have a section that looks something like this:

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda2 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)

You want to edit the lines with the single comment (#). The update-grub script that is run with a new kernel install will make the changes to grub based on those lines and overwrite your manual edits to the uncommented part of menu.lst. Just change the Default Options and run update-grub.




--

_______________________________________
Art Alexion
Arthur S. Alexion LLC

PGP fingerprint: 52A4 B10C AA73 096F A661  92D2 3B65 8EAC ACC5 BA7A
The attachment -- signature.asc -- is my electronic signature; no need for alarm.
Info @ http://mysite.verizon.net/art.alexion/encryption/signature.asc.what.html

Key for signed PDFs available at
http://mysite.verizon.net/art.alexion/encryption/ArthurSAlexion.p7c
The validation string is TTJY-ZILJ-BJJG.
________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug