Find the answer to your Linux question:
Results 1 to 10 of 10
hello i installed f12 yesterday and i have problem with my boot, and i need to boot to the other system from df command i get this: Filesystem 1K-blocks Used ...
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    6

    [SOLVED] GRUB Problem, boot Windows Vista

    hello i installed f12 yesterday and i have problem with my boot, and i need to boot to the other system from df command i get this:
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/mapper/vg_host134225182131-lv_root
    41590056 2939608 38227992 8% /
    tmpfs 1532384 412 1531972 1% /dev/shm
    /dev/sda5 198337 21999 166098 12% /boot

    and from the command su -c 'cat /boot/grub/menu.lst'
    i get this:
    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE: You have a /boot partition. This means that
    # all kernel and initrd paths are relative to /boot/, eg.
    # root (hd0,4)
    # kernel /vmlinuz-version ro root=/dev/mapper/vg_host134225182131-lv_root
    # initrd /initrd-[generic-]version.img
    #boot=/dev/sda
    default=0
    timeout=5
    splashimage=(hd0,4)/grub/splash.xpm.gz
    hiddenmenu
    title Fedora (2.6.31.5-127.fc12.i686)
    root (hd0,4)
    kernel /vmlinuz-2.6.31.5-127.fc12.i686 ro root=/dev/mapper/vg_host134225182131-lv_root noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
    initrd /initramfs-2.6.31.5-127.fc12.i686.img
    title Other
    rootnoverify (hd0,0)
    chainloader +1

    they've told me to change this 2 lines
    rootnoverify (hd0,0)
    chainloader +1
    into
    rootnoverify (hd0,1)
    chainloader +!

    any ideas guys?
    maybe the installation delete my other OS or any ideas how to change this file?
    Thank you a lot!

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    Post the output of fdisk -l command here.
    Code:
    su -
    fdisk -l
    * Its small L in fdisk -l.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Jan 2010
    Posts
    6
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x77b49eac

    Device Boot Start End Blocks Id System
    /dev/sda1 1 1869 15005696 27 Unknown
    /dev/sda2 1869 32540 246363476 7 HPFS/NTFS
    /dev/sda3 32540 32982 3555328 7 HPFS/NTFS
    /dev/sda4 32983 38913 47640757+ 5 Extended
    /dev/sda5 * 32983 33008 204800 83 Linux
    /dev/sda6 33008 38913 47435775+ 8e Linux LVM

    Disk /dev/dm-0: 43.3 GB, 43268440064 bytes
    255 heads, 63 sectors/track, 5260 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000

    Disk /dev/dm-0 doesn't contain a valid partition table

    Disk /dev/dm-1: 5301 MB, 5301600256 bytes
    255 heads, 63 sectors/track, 644 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000

    Disk /dev/dm-1 doesn't contain a valid partition table

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Two NTFS Partitions and one marked as Unknown. I think Unknown partition is for Recovery.
    Have you tried to edit grub.conf file?
    Code:
    su -
    nano /boot/grub/grub.conf
    Code:
    default=0
    timeout=5
    splashimage=(hd0,4)/grub/splash.xpm.gz
    #hiddenmenu
    title Fedora (2.6.31.5-127.fc12.i686)
    root (hd0,4)
    kernel /vmlinuz-2.6.31.5-127.fc12.i686 ro root=/dev/mapper/vg_host134225182131-lv_root noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
    initrd /initramfs-2.6.31.5-127.fc12.i686.img
    
    title Windows OS
    rootnoverify (hd0,1)
    chainloader +1
    Press Ctrl+X, Y and hit Enter key to save file.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Jan 2010
    Posts
    6
    i tried what you said, i go to boot menu first is Fedora Second is Windows OS and third is the recovery tools, i press the Windows os and i get this error:

    Error1:
    Filename must be either an absolute pathname or blocklist

    any ideas?
    thank you

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Something is wrong with grub.conf file. Did you copy exact contents.
    Backup grub.conf file and create new. Open Terminal and execute this
    Code:
    su -
    cd /boot/grub
    mv grub.conf grub.conf.bak
    nano grub.conf
    Copy contents from my last post and paste in new empty grub.conf file. Save and reboot.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Jan 2010
    Posts
    6
    only these lines?

    default=0
    timeout=5
    splashimage=(hd0,4)/grub/splash.xpm.gz
    #hiddenmenu
    title Fedora (2.6.31.5-127.fc12.i686)
    root (hd0,4)
    kernel /vmlinuz-2.6.31.5-127.fc12.i686 ro root=/dev/mapper/vg_host134225182131-lv_root noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
    initrd /initramfs-2.6.31.5-127.fc12.i686.img

    title Windows OS
    rootnoverify (hd0,1)
    chainloader +1

    and i have windows vista, shall i leave the title like that Windows OS?

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Above lines are enough. There is no need to add other stuff in grub.conf file.

    You can set whatever title you like. Replace Windows OS with anything you want.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    Jan 2010
    Posts
    6
    i am with windows now!

    thank you very much, you are perfect,
    if i have any problem i will contact you! thnx

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Glad to help you !
    Do start a new thread if you have any other question.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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