Find the answer to your Linux question:
Results 1 to 4 of 4
Hello Everyone, Goodness , I thought I'd try a w7 dual boot with Fedora 12 so I can try to learn Linux. I am a "total" n00b !!! Can someone ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2006
    Posts
    3

    cannot dual boot w7 & fedora 12 grub config


    Hello Everyone,

    Goodness , I thought I'd try a w7 dual boot with Fedora 12 so I can try to learn Linux. I am a "total" n00b !!!

    Can someone please, please tell me what to do or help me configure grub.conf so I can boot back into w7? I'm not even sure if Windows 7 is still there, i think it is. I am in hopes I won't have to re-install everything.

    The error I get when I try to boot into W7 is: Error 13: invalid or unsupported executable format.

    I have one 160 GB HD with W7 installed, shrunk the drive, installed Fedora 12 on the un-allocated partition, and attempted to edit grub.config to have the option to boot into either OS.

    I get Error 13: invalid or unsupported executable format when I try to boot in w7.

    This is the info I have but I don't understand any of it.
    # fdisk -l

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x0ca80ca8

    Device Boot Start End Blocks Id System
    /dev/sda1 1 16837 135239680 7 HPFS/NTFS
    /dev/sda2 * 16837 16863 204800 83 Linux
    /dev/sda3 16863 19457 20842496 8e Linux LVM

    Disk /dev/dm-0: 16.6 GB, 16559112192 bytes
    255 heads, 63 sectors/track, 2013 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: 4781 MB, 4781506560 bytes
    255 heads, 63 sectors/track, 581 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000

    Disk /dev/dm-1 doesn't contain a valid partition table
    # sudo parted /dev/sda print
    Model: ATA WDC WD1600JS-60N (scsi)
    Disk /dev/sda: 160GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos

    Number Start End Size Type File system Flags
    1 1049kB 138GB 138GB primary
    2 138GB 139GB 210MB primary ext4 boot
    3 139GB 160GB 21.3GB primary lvm

    ************************************************** ***

    Modified grub file:
    # 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,1)
    # kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root
    # initrd /initrd-[generic-]version.img
    #boot=/dev/sda
    default=0
    timeout=12
    splashimage=(hd0,1)/grub/splash.xpm.gz
    #hiddenmenu
    title Fedora (2.6.31.5-127.fc12.i686)
    root (hd0,1)
    kernel /vmlinuz-2.6.31.5-127.fc12.i686 ro
    root=/dev/mapper/VolGroup-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 Window$ 7
    rootnoverify (hd0,1)
    map (hd0) (hd1)
    makeactive
    chainloader +1

    Thanks in advance!!
    -Tessa

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Remove mapping code from Windows block.
    Code:
    title Windows 7
            rootnoverify (hd0,0)
            chainloader +1
    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
    Sep 2006
    Posts
    3
    Hi!

    Still cannot dual boot to w7 with above modified grub.conf. Error 13: invalid or unsupported executable format.

    current grub.config is as follows:
    default=0
    timeout=12
    splashimage=(hd0,1)/grub/splash.xpm.gz
    #hiddenmenu
    title Fedora (2.6.31.5-127.fc12.i686)
    root (hd0,1)
    kernel /vmlinuz-2.6.31.5-127.fc12.i686 ro root=/dev/mapper/VolGroup-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 Window$ 7
    rootnoverify (hd0,0)
    chainloader +1

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Mount Windows partition in Fedora and check its contents.
    Code:
    su -
    mkdir /media/windows
    mount -t ntfs-3g /dev/sda1 /media/windows -o defaults,umask=0
    cd /media/windows
    ls
    Does mount command work fine? Does ls command list contents of Windows OS partition.
    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
  •