Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Dualbooting Problem

  1. #1
    Join Date
    Apr 2009
    Beans
    21
    Distro
    Ubuntu 10.04 Lucid Lynx

    Dualbooting Problem

    I have a 500GB hard disk, divided in 2 250GB partitions. I was dual-booting WinXP and Vista with Windows Vista's default bootloader... I installed Ubuntu 8.10 x86 (the CD version) over Windows XP and installed GRUB in (at??) /dev/sda (not sda1). So now GRUB can't find Vista, and I have no idea how to add it to the menu.lst...
    The Ubuntu installation works great , but I don't really know my way around the OS.

  2. #2
    Join Date
    Sep 2008
    Location
    Philadelphia, PA
    Beans
    5,193
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Dualbooting Problem

    Quote Originally Posted by TRouBLe32 View Post
    I have a 500GB hard disk, divided in 2 250GB partitions. I was dual-booting WinXP and Vista with Windows Vista's default bootloader... I installed Ubuntu 8.10 x86 (the CD version) over Windows XP and installed GRUB in (at??) /dev/sda (not sda1). So now GRUB can't find Vista, and I have no idea how to add it to the menu.lst...
    The Ubuntu installation works great , but I don't really know my way around the OS.
    Open a terminal and use this command
    Code:
    sudo fdisk -l
    BTW that is a lowercase L, post the output here and also post the contents of your menu.lst file located at /boot/grub/menu.lst

    sudo fdisk -l will show your partitions and file system on each.
    Last edited by presence1960; April 8th, 2009 at 05:55 PM. Reason: add info
    Multi-boot: Arch linux, Ubuntu 12.04, Windows 7 & Windows 8

  3. #3
    Join Date
    Apr 2009
    Beans
    21
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Dualbooting Problem

    Code:
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x56f056f0
    I have a second SATA disk on the machine, i can give the rest of the data if it's helpfull...

  4. #4
    Join Date
    Oct 2008
    Location
    hd0,sda5
    Beans
    291
    Distro
    Ubuntu Gnome 14.10 Utopic Unicorn

    Re: Dualbooting Problem

    Code:
    title		Windows Vista
    root		(hd0,0)
    makeactive
    chainloader	+1
    should be added to your menu.lst under first Ubuntu entry, the root will either be (hd0,0) or (hd0,1), put in whichever your Ubuntu does not have.

    edit: to access the file:

    Code:
    sudo gedit /boot/grub/menu.lst
    edit2: oh, you may have to give your windows partition the "boot" flag, you can do this with System > Administration > Partition Editor, if it's not installed, you can install it with:

    Code:
    sudo apt-get install gparted
    Last edited by Jakey_TheSnake; April 8th, 2009 at 06:16 PM.
    Asus P8Z77-V LX + i5 3570K + XFX Radeon HD 7950 @ 950/1150 (3GB GDDR5) + 8GB RAM + 256GB 840Evo + 2TB & 1TB HDD. Ubuntu 14.10
    Asus G73JH - i7 720QM + ATI mHD 5870 (1GB GDDR5) + 16GB RAM. Ubuntu 10.04 - old build, from when I was active '08-11

  5. #5
    Join Date
    Sep 2008
    Location
    Philadelphia, PA
    Beans
    5,193
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Dualbooting Problem

    Quote Originally Posted by TRouBLe32 View Post
    Code:
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x56f056f0
    I have a second SATA disk on the machine, i can give the rest of the data if it's helpfull...
    you are missing info here is my sudo fdisk -l output
    Code:
    raz@raz-desktop ~ $ sudo fdisk -l
    [sudo] password for raz: 
    
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xa7a57e45
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1       16840   135267268+  83  Linux
    /dev/sda2           16841       18389    12442342+  83  Linux
    /dev/sda3           18390       19457     8578710    7  HPFS/NTFS
    
    Disk /dev/sdb: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x0000d179
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *           1        2611    20972826    7  HPFS/NTFS
    /dev/sdb2            2612        4569    15727635   83  Linux
    /dev/sdb3            4570       29879   203302575   83  Linux
    /dev/sdb4           29880       30401     4192965   82  Linux swap / Solaris
    as you can see I have 2 HDD and they are listed. This is the info I need to put in the exact modification for your windows entry in menu.lst. Don't go blindly trying (hdx,y) combos especially if your windows and Linux are on separate HDDs. Post the full output of sudo fdisk -l so we can be right the first time!
    Last edited by presence1960; April 8th, 2009 at 06:21 PM.
    Multi-boot: Arch linux, Ubuntu 12.04, Windows 7 & Windows 8

  6. #6
    Join Date
    Oct 2008
    Location
    hd0,sda5
    Beans
    291
    Distro
    Ubuntu Gnome 14.10 Utopic Unicorn

    Re: Dualbooting Problem

    Ah, didn't see he had separate HDDs, good spot. Listen to the guy above! ^

    Edit: if he has Ubuntu just on one HDD, and Vista just on the other then the two should be (hd0,0) or (hd1,0) surely?

    He'd be able to find out the (hdx,y) combo using gparted anyway though, right? You've made me unsure now >_>
    Last edited by Jakey_TheSnake; April 8th, 2009 at 06:30 PM.
    Asus P8Z77-V LX + i5 3570K + XFX Radeon HD 7950 @ 950/1150 (3GB GDDR5) + 8GB RAM + 256GB 840Evo + 2TB & 1TB HDD. Ubuntu 14.10
    Asus G73JH - i7 720QM + ATI mHD 5870 (1GB GDDR5) + 16GB RAM. Ubuntu 10.04 - old build, from when I was active '08-11

  7. #7
    Join Date
    Apr 2009
    Beans
    21
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Dualbooting Problem

    OK, heres is the full results from the hard disk.
    Code:
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x56f056f0
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1       30595   245754306    7  HPFS/NTFS
    /dev/sda2           30596       60801   242629695   83  Linux
    I selected the wrong text before.
    Also, i installed gparted but i'm not sure which of the two partitions should have the boot flag on..

    From Gparted:
    /dev/sda1 is Vista
    /dev/sda2 is Ubuntu
    Last edited by TRouBLe32; April 8th, 2009 at 06:38 PM.

  8. #8
    Join Date
    Sep 2008
    Location
    Philadelphia, PA
    Beans
    5,193
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Dualbooting Problem

    I have to take my daughter to MCDonald's for lunch- Ipromised her. Will be back later. Please go ahead and post the full output of
    sudo disk -l
    Someone here will surely help you by the time I get back. If not I will check this thread for you and get right on it when I return.
    Multi-boot: Arch linux, Ubuntu 12.04, Windows 7 & Windows 8

  9. #9
    Join Date
    Sep 2008
    Location
    Philadelphia, PA
    Beans
    5,193
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Dualbooting Problem

    Quote Originally Posted by TRouBLe32 View Post
    OK, heres is the full results from the hard disk.
    Code:
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x56f056f0
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1       30595   245754306    7  HPFS/NTFS
    /dev/sda2           30596       60801   242629695   83  Linux
    I selected the wrong text before.
    Also, i installed gparted but i'm not sure which of the two partitions should have the boot flag on..
    if you look at the output windows already has a boot flag - note the (*).

    change your windows entry in menu.lst to:

    title Microsoft Windows Vista
    root (hd0,0)
    savedefault
    chainloader +1
    Multi-boot: Arch linux, Ubuntu 12.04, Windows 7 & Windows 8

  10. #10
    Join Date
    Sep 2008
    Location
    Philadelphia, PA
    Beans
    5,193
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Dualbooting Problem

    Quote Originally Posted by presence1960 View Post
    if you look at the output windows already has a boot flag - note the (*).

    change your windows entry in menu.lst to:
    Code:
    title		Microsoft Windows Vista
    root		(hd0,0)
    savedefault
    chainloader	+1
    that looks better i think
    Multi-boot: Arch linux, Ubuntu 12.04, Windows 7 & Windows 8

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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