Find the answer to your Linux question:
Results 1 to 4 of 4
Hello all, my prolem is that after every system update on Debian(Lenny) the path to the root Partition is automatically set from sda2 to sdb2 . Do someone know in ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    3

    sdb2 instead of sda2 is set in grub after every system-update on Debian



    Hello all,

    my prolem is that after every system update on Debian(Lenny) the path to the root Partition is automatically set from sda2 to sdb2.

    Do someone know in which config do i have to enter the right partition(sda2 on my system), so i don't have to change is in grub every time?

    Thnx.

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Are you mounting partition using their UUID? or just name?
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    3
    The kernel row in grub looks as following:
    kernel /boot/vmlinuz.....686 root=/dev/sda2 ro

    after a system-update it changes to:
    kernel /boot/vmlinuz.....686 root=/dev/sdb2 ro

    so i suppose no UUID is used.

    P.S. i use grub legacy,
    and the change happens in menu.lst after every update.
    I would like to know, what changes menu.lst every time, and how can i stop it?

  4. #4
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    913
    If you look in menu.lst, you will see above the actual menu one or more comment lines containing the word "kopt" (kopt stands for kernel option). Every time grub-update is run, the Debian menu stanzas are rewritten using these lines as templates. So if you change a kernel command option by hand, it just gets overwritten at the next update and you're back where you started.

    You need to alter the kopt lines to make a permanent change.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •