Find the answer to your Linux question:
Results 1 to 5 of 5
hello , i use suse 9.3 this is result of fdisk command disk -l Disk /dev/sda: 200.0 GB, 200049647616 bytes 240 heads, 63 sectors/track, 25841 cylinders Units = cylinders of ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    4

    unable to write correct grub.conf for dual boot


    hello ,

    i use suse 9.3

    this is result of fdisk command
    disk -l

    Disk /dev/sda: 200.0 GB, 200049647616 bytes
    240 heads, 63 sectors/track, 25841 cylinders
    Units = cylinders of 15120 * 512 = 7741440 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 1 967 7310488+ 1c Hidden W95 FAT32 (LBA)
    /dev/sda2 968 12295 85639680 7 HPFS/NTFS
    /dev/sda3 * 12296 25839 102392640 f W95 Ext'd (LBA)
    /dev/sda5 12296 12432 1035688+ 82 Linux swap / Solaris
    /dev/sda6 12433 25839 101356888+ 83 Linux

    Disk /dev/sdf: 130 MB, 130023424 bytes
    32 heads, 32 sectors/track, 248 cylinders
    Units = cylinders of 1024 * 512 = 524288 bytes

    Device Boot Start End Blocks Id System
    /dev/sdf1 * 1 248 126960 b W95 FAT32
    i can't write the correct menu.lst (for grub) for booting correctly on windows

    this is my menu.lst

    Code:
    color white/blue black/light-gray
    default 0
    timeout 30
    gfxmenu (hd0,5)/boot/message
    bootp /dev/sda2
    unhide /dev/sda2
    
    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title SUSE LINUX 9.3 Pour Faouzi
        kernel (hd0,5)/boot/vmlinuz root=/dev/sda6 vga=0x317 selinux=0  splash=silent resume=/dev/sda5  showopts
        initrd (hd0,5)/boot/initrd
    
    ###Don't change this comment - YaST2 identifier: Original name: windows###
    title Windows XP
        rootnoverify(hd0,1)
        chainloader +1
    if i choice windows to start , i get this error message :

    Error 13: Invalid or unsupported executable format
    any one can help me please ,

    thanks

  2. #2
    Linux User twoHats's Avatar
    Join Date
    Jan 2005
    Location
    NH, USA
    Posts
    280

    Grub

    Hi ... Grub, in it's own way, has decided to be tres cool to programmers by having it's drive letters 0 based, unlike almost every other drive program in Linux so ...

    you need to use 0,0 for partition 1 and 0,4 for partition 5
    - Clouds don't crash - Bertrand Meyer

    registered Linux user 393557

    finally - hw to brag about - but next year it will look pitifully quaint:
    Athlon64 X2 3800 - 1G PC3200 - 250G SATA - ati radeon x300
    circa 2006

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Location
    Berkshire, UK
    Posts
    80
    peppena - I think there may be some history to uncover here, judging by the partition marked as hidden W95 at the start of the disk.

    Were you using win9x before you installed XP, and were you multibooting?

  4. #4
    Linux Newbie
    Join Date
    Mar 2005
    Location
    Minneapolis, MN
    Posts
    112
    Here's what I would recommend for your menu.lst and grub.conf file.

    Code:
    default 1
    timeout 30
    color white/blue black/light-gray 
    #
    #
    #
    
    title=Windows XP
    rootnoverify (sd0,1)
    makeactive
    chainloader +1
    
    #
    #
    #
    
    title=SuSE Linux 9.3 Pour Paouzi
    root (hd0,1)
        kernel (sd0,5)/boot/vmlinuz root=/dev/sda6 vga=0x317 selinux=0  splash=silent resume=/dev/sda5  showopts
        initrd (sd0,5)/boot/initrd 
    
    #
    Make a backup of your current file and try that. I hope it works for you.
    --Dachnaz [Fuzzy Llama]

  5. #5
    Just Joined!
    Join Date
    Nov 2005
    Posts
    4
    thank you for your assistance,

    I will test and I will keep you informed


Posting Permissions

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