Mandriva boot issue

Discussion in 'Software' started by ichase, Jan 31, 2011.

  1. ichase

    ichase Corporal

    Greetings all,
    I have an issue which is stumping me. I am currently able to boot in Mandriva 2010.2 which is on sda7. This lappy is multi-booting with XP Pro and Arch Linux (Currently hosting Grub legacy on sda6)
    The problem I have is, when Mandy is booting up in verbose mode, it pauses at "Trying to find sda6 (1 min delay) this eventually goes to
    "Trying to find sda5 (1 min delay) both pause for the approximate 1 min then Mandy eventually boots up with no further issue that I can see.
    This ultimately causes an approximate 3 1/2 minute boot into the OS which is completely unexceptable. :-D

    My Mandy entry in menu.lst is
    Code:
    # title (3) Mandriva 2010.2
    root (hd0,6)
    kernel /boot/vmlinuz root=/dev/sda7 ro splash=verbose vga=788
    initrd (hd0,6)/boot/initrd.img
    
    In case anyone needed to see it. :-D

    Thanks in advance for all replies.

    All the best,

    Ian
     
  2. ichase

    ichase Corporal

    One other thing to mention. I previously had Ultimate Edition 2.8 on sda6 hosting grub via grub2 and did not have this problem. :)

    Ian
     
  3. hawklord

    hawklord Master Sergeant

    have you edited menu.lst yourself ?

    can you post an output of fdisk -l (thats ell)
     
  4. ichase

    ichase Corporal

    Hawk,
    Greetings, hope all is well. Yes, I edited menu.lst myself for 2 reasons. The first being that originally my XP partition was not showing up. It was showing in my menu.lst but each line was commented (#) Once I uncommented each of those lines for my XP entry, XP was on my grub menu and I was able to boot into XP with no problems.
    My Mandriva partition did not even show up in my menu.lst so I had to add it.

    Once I can get on my lappy, I will post the result of fdisk -l (do I need to do this in Arch or Mandy?)

    Now let me ask this. In grub2 I can type in:
    Code:
    sudo grub-mkconfig -o /boot/grub/grub.cfg
    Which as you know scans my internal and external drives for OS's and update the grub.cfg file containing entries for all my OS's. Is there a similar command in Grub Legacy that will do the same thing?

    Thanks,

    Ian
     
  5. hawklord

    hawklord Master Sergeant

    all fine this end,

    ok, fdisk from mandriva,
    how do you have grub installed ?

    well, you learn something new everyday:-D

    seriously though, i've never fiddled with grub2, my mdv2010 still has grub legacy,

    there is the find command in grub legacy, which i use if i need too, then manually edit menu.lst,
    or i use the boot manager in mandriva,

    oh, as far as i am aware grub2 uses 1, 2, 3 and so on - not 0, 1, 2, etc - for patitions

    http://grub.enbug.org/Manual#head-db861a16884db1252847a6ce554b625974134d7e
     
  6. ichase

    ichase Corporal

    Great to hear. :)

    Glad you said that. I am still working on my install of Arch so I have not installed a GUI yet so there for do not have internet capabilities to cut and paste entries. Would have to do it the old fashion way. Transcribe to paper. :-D

    Not sure I understand the question. When I installed Arch, I wrote Grub to the MBR so that it would host grub.


    I'm trying to learn both. I have read that legacy grub will still be around for a few more years until ultimately Grub2 replaces it.

    So the find command finds all bootable OS's on the HDD and you cut and paste the entry into your menu.lst? Could you give me an example of how it is used? :)

    You are absolutely correct. It's a problem you will run into if you are mulibooting with Grub2 and have a OS running legacy. I ran into Kernel Panic the first time I tried running Mandy until I went in and edited the grub.cfg file and changed the hd0,6 to hd0,7 ;)
     
  7. hawklord

    hawklord Master Sergeant

    ok, so menu.lst is in arch

    -----------

    the find command does this, i posted the full output and available commands for you to see

    Code:
        GNU GRUB  version 0.97  (640K lower / 3072K upper memory)
    
     [ Minimal BASH-like line editing is supported.  For the first word, TAB
       lists possible command completions.  Anywhere else TAB lists the possible
       completions of a device/filename. ]
    
    grub>
     Possible commands are: blocklist boot cat chainloader cmp color configfile debug d
    evice displayapm displaymem dump embed find fstest geometry halt help hide impsprob
    e initrd install ioprobe kernel lock makeactive map md5crypt module modulenounzip p
    ager partnew parttype password pause quit read reboot root rootnoverify savedefault
     serial setkey setup terminal terminfo testload testvbe unhide uppermem vbeprobe
    
    grub> find /boot/initrd-2.6.31.14-desktop586-1mnb.img
     (hd0,4)
    
    grub>
    
    as you can see, it finds the file (well image in this case)

    then the command

    Code:
    [dave@localhost ~]$ ls /dev/disk/by-uuid
    0239e662-ccc0-4514-a021-2a9bab5a8ea2@  778587a9-2c9e-4432-afcb-0eae636bd0fe@
    2A1C807A1C8042B5@                      a0721acb-9387-4db6-9802-8750136e120b@
    [dave@localhost ~]$
    
    lists the uuid's

    and finally you end up with editing menu.lst

    Code:
    title linux
    kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=0239e662-ccc0-4514-a021-2a9bab5a8ea2 resume=UUID=a0721acb-9387-4db6-9802-8750136e120b splash=silent vga=788
    initrd (hd0,4)/boot/initrd.img
    all confusing, but hopefully a little helpfull

    you would have to run grub from a terminal in arch to do it, as thats where menu.lst is,
    check that your mandriva image is in the correct place,
    (i always shove the uuid in so the partition can be easily found)
     
  8. ichase

    ichase Corporal

    Code:
    [dave@localhost ~]$ ls /dev/disk/by-uuid
    0239e662-ccc0-4514-a021-2a9bab5a8ea2@  778587a9-2c9e-4432-afcb-0eae636bd0fe@
    2A1C807A1C8042B5@                      a0721acb-9387-4db6-9802-8750136e120b@
    [dave@localhost ~]$
    Can you run this with another command to tell you what partition it is on so that you know without a doubt you are entering the correct UUID?

    Will definitely try this and enter the UUID in. Hopefully this will fix this problem. It just does not make sense why it is doing this. The first time, I did a hard re-boot because I thought it was locked up. Then alas, it continued on with boot. :confused:confused

    Ian
     
  9. hawklord

    hawklord Master Sergeant

    0239e662-ccc0-4514-a021-2a9bab5a8ea2@ = my /

    778587a9-2c9e-4432-afcb-0eae636bd0fe@ = my /home

    2A1C807A1C8042B5@ = my ntfs storage partition

    a0721acb-9387-4db6-9802-8750136e120b@ = my /swap

    it should do this in order, like it has with mine,

    be aware that these are mine, each partition has a unique id - yours are unique to your hard drive
     
  10. ichase

    ichase Corporal

    Hawk,
    Sorry this took so long. Here is the output of fdsik -l

    Code:
    [root@localhost ichase]# fdisk -l
    
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000d7925
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        2611    20971520    7  HPFS/NTFS
    Partition 1 does not end on cylinder boundary.
    /dev/sda2            2612        9730    57177089    5  Extended
    Partition 2 does not end on cylinder boundary.
    /dev/sda5            2612        3134     4194304   82  Linux swap / Solaris
    /dev/sda6            3134        6397    26214400   83  Linux
    /dev/sda7            6398        9730    26766336   83  Linux
    [root@localhost ichase]# 
    
    ls /dev/disk/by-uuid output

    Code:
    [ichase@localhost ~]$ ls /dev/disk/by-uuid
    11416279-9bf5-4664-9179-29c52ee00fdc@  56066825-bc51-4abc-b5e1-e4b714910114@
    4b19bad6-d4e4-41f5-b9fd-d7320b046acf@  5D8FECFE73CC715B@
    [ichase@localhost ~]$ 
    
    Thanks,

    Ian
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds