Find the answer to your Linux question:
Results 1 to 10 of 10
i have three OS installed on my system ... one i Opensuse10.3 ,ubuntu 8.10 and XP. i installed Ubuntu in my F: drive i have a problem that whenever i ...
  1. #1
    Linux User bilal_jan's Avatar
    Join Date
    Mar 2008
    Location
    Pakistan
    Posts
    281

    creating one menu

    i have three OS installed on my system ... one i Opensuse10.3 ,ubuntu 8.10 and XP.
    i installed Ubuntu in my F: drive
    i have a problem that whenever i start my PC i was shown two menues one by one... first i was shown i was a menu from wh i was to choose either XP or SUSE...
    if i choose XP then again i was shown a menu to choose either XP or UBNUTU.
    i want to make a just one menu in wh all OS installed on my system are shown!!!

  2. #2
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    I believe this is a SUSE specific bug/feature, the same thing happened to me except I don't have a MS partition. Suse's grub menu would prompt me to load Suse or Gentoo, if I selected Gentoo it opened another Menu that asked me to choose between Gentoo-2.6.27-r7 or Gentoo-2.6.27-r8 (The Gentoo grub menu).
    The way I fixed it was to re-install grub manually and create my own menu.lst file. If you'd like to give this a try then just let us know.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  3. #3
    Linux User bilal_jan's Avatar
    Join Date
    Mar 2008
    Location
    Pakistan
    Posts
    281
    Mike Tbob thanks for ur reply
    ya sure i want to fix this bug ...
    please let me know how u fix that one

  4. #4
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    We'll need the output of these commands before we start.
    Code:
    fdisk -l
    That's a lowercase L not an I
    Code:
    cat /boot/grub/menu.lst
    Tell us a little bit about your partition layout too, such as which is your /boot / and so forth.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  5. #5
    Linux User bilal_jan's Avatar
    Join Date
    Mar 2008
    Location
    Pakistan
    Posts
    281
    ok the contents of /boot/grub/menu.lst of ubuntu 8.10 are

    title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
    root (hd0,6)/ubuntu/disks
    kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=D870-BC7C loop=/ubuntu/disks/root.disk ro single
    initrd /boot/initrd.img-2.6.24-16-generic

    title Ubuntu 8.04, memtest86+
    root (hd0,6)/ubuntu/disks
    kernel /boot/memtest86+.bin

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title Other operating systems:
    root


    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda1
    title Microsoft Windows XP Professional
    root (hd0,0)
    savedefault
    chainloader +1


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda9.
    title openSUSE 10.3 (on /dev/sda9)
    root (hd0,
    kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF704ZDSNL32N-part9 vga=0x314 devfs=mount,dall resume=/dev/sda8 splash=silent showopts
    initrd /boot/initrd-2.6.22.5-31-default
    savedefault
    boot


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda9.
    title Failsafe -- openSUSE 10.3 (on /dev/sda9)
    root (hd0,
    kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF704ZDSNL32N-part9 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
    initrd /boot/initrd-2.6.22.5-31-default
    savedefault
    boot
    and MikeTbob when i run fdisk -l it gives a very large output could u please tell me a way to copy the oupput from terminal and paste it here (i am using xterm and ctrl+c is not working here )

  6. #6
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Code:
    fdisk -l >fdisk.txt
    This will create a file called fdisk.txt in the current directory, just copy and paste from that or just upload it as an attachment.
    I'll have to see to this in the morning, it's 1AM here and I am going to bed. Anyone feel free to help out if you know the answers.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  7. #7
    Linux User bilal_jan's Avatar
    Join Date
    Mar 2008
    Location
    Pakistan
    Posts
    281
    oh thats great tip man
    heres the output of fdisk -l
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xfd53fd53

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 1275 10241406 7 HPFS/NTFS
    /dev/sda2 1276 9729 67906755 f W95 Ext'd (LBA)
    /dev/sda5 1276 4080 22531131 7 HPFS/NTFS
    /dev/sda6 4081 6885 22531131 b W95 FAT32
    /dev/sda7 6886 8198 10546641 b W95 FAT32
    /dev/sda8 8199 8322 995998+ 82 Linux swap / Solaris
    /dev/sda9 8323 8975 5245191 83 Linux
    /dev/sda10 8976 9729 6056473+ 83 Linux

    Disk /dev/sdb: 20.4 GB, 20416757760 bytes
    16 heads, 63 sectors/track, 39560 cylinders
    Units = cylinders of 1008 * 512 = 516096 bytes
    Disk identifier: 0x1bf31bf2

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 19302 9728176+ 7 HPFS/NTFS
    /dev/sdb2 19303 39560 10209970 f W95 Ext'd (LBA)
    /dev/sdb5 33318 39560 3146440+ 7 HPFS/NTFS
    /dev/sdb6 19303 19505 102249 83 Linux
    /dev/sdb7 19506 32537 6568096+ 83 Linux
    /dev/sdb8 32538 33317 393088+ 82 Linux swap / Solaris

    Partition table entries are not in disk order

  8. #8
    Linux Newbie Ziplock's Avatar
    Join Date
    Jan 2009
    Location
    Adelaide
    Posts
    169
    Hi there,

    I think I know that this problem is, but want to be sure before we go overwriting boot records.

    Was your order of install:

    1) XP then 2) Ubuntu then 3) SUSE?

    I think you have overwritten your XP boot loader with the Ubuntu boot loader on /dev/hda1. It looks like you have then put SUSE's boot loader on /dev/hda. This means that when you choose XP, it goes into the XP partition, and finds another bootloader (Ubuntu) when puts up the second menu. If this is the case, the solution is to boot into XP and reinstate the Windows boot loader on /dev/hda1 (c

    From the web, it looks like the following:

    1) Boot into XP,
    2) Bring up a command prompt
    3) type 'fixmbr'<enter>
    4) Reboot.

    NOTE: This "shouldn't" blat your SUSE boot loader on /dev/hda - only the one on /dev/hda1. SUSE/Ubuntu bootloader can be recovered if it does.

  9. #9
    Linux User bilal_jan's Avatar
    Join Date
    Mar 2008
    Location
    Pakistan
    Posts
    281
    hay Ziplock
    my order of installation is as follows...
    first i installed Xp then Suse and lastly i installed Ubuntu...

  10. #10
    Linux Newbie Ziplock's Avatar
    Join Date
    Jan 2009
    Location
    Adelaide
    Posts
    169
    Hi bilal_jan,

    I think there is another menu.lst somewhere on your system. The reason for this is that I assume you don't boot into Ubuntu in single user mode - the first option in the file you have sent through? (unless you missed a couple of lines at the top?)

    In order to consolidate the two menus, can you post your other menu.lst as well? From what you have said, this is the Debian one.

Posting Permissions

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