The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Triple booth windows7, vista,ubuntu 9.04

    Discussion in 'Linux Compatibility and Software' started by dtechlogic, Jun 22, 2009.

  1. dtechlogic

    dtechlogic Notebook Consultant

    Reputations:
    1
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    30
    Hi Guys,

    I am running Vista, Windows 7, and ubuntu 9.04. Vista and ubuntu was runing nicely. after installing windows 7 i could not bring back ubuntu i try ot recreate grub and nothing. i keep getting an error. i try reinstalling ubuntu to see if grup will take over windows MBR and no luck. So anyone has windows 7, vista, and ubuntu running need your advice on how to fix this problem. or to get them running together. i don't mind reinstallingi everything again. Please Advice I need help badly. I :confused:
     
  2. paper_wastage

    paper_wastage Beat this 7x7x7 Cube

    Reputations:
    486
    Messages:
    2,596
    Likes Received:
    24
    Trophy Points:
    56
  3. ivar

    ivar Notebook Deity

    Reputations:
    432
    Messages:
    1,410
    Likes Received:
    0
    Trophy Points:
    55
    What is your partition table now exactly? I had similar problem with 9.04.
     
  4. brncao

    brncao Notebook Evangelist

    Reputations:
    541
    Messages:
    570
    Likes Received:
    5
    Trophy Points:
    31
    I created a small (around 30mb) grub partition that holds all the boot information to boot into other OS. This is like a safe haven for grub so it doesn't get tampered with no matter how much you wreck the other OS (assuming you don't wreck this boot partition). This is so that uninstalling or reformatting a distro will not remove the grub bootloader with it or else you get an error 22 message at startup, and should the MBR be overwritten by say Windows, you can easily restore it.

    Install Windows Vista and Windows 7 first (depending how you want to prioritize your Windows OS on the hard disk). Shrink the volume in disk management before each install because I don't recall Windows letting you resize the partition manually during installation. Next install Ubuntu and while you're at it, create a small /boot partition (remember its location!). At the last page click "advanced." You want to install the bootloader to where your grub partition (/boot) is. Next you wait until Ubuntu finishes the installation then reboots.

    If I recall you won't see the grub menu yet because it's not in the MBR. Boot from the LiveCD. In the terminal enter the following:

    grub
    root (hd 0,0)
    setup (hd0)
    quit

    *replace 0,0 to where your grub partition is located.

    I find this very convenient as I can simply edit the menu.lst to add, remove, or modify the bootloader menu.
     
  5. dtechlogic

    dtechlogic Notebook Consultant

    Reputations:
    1
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    30
    I Remember i got the freaking error 22. I really messed up the whole Ubuntu os. I did a fresh installation and i am still getting error 22. I am did a new fresh installation and i am getting error 22. Will it be safe i reinstall all the Operating system going with window vista and 7 first then ubuntu 3rd.
     
  6. paper_wastage

    paper_wastage Beat this 7x7x7 Cube

    Reputations:
    486
    Messages:
    2,596
    Likes Received:
    24
    Trophy Points:
    56
    i would install vista first (because if you install windows 7 first on a non-partitioned HDD, it'll install it's bootloader on a second partition... you can't lose another partition because you have and need 4)

    then windows 7

    then ubuntu

    then grub on the last partition
     
  7. dtechlogic

    dtechlogic Notebook Consultant

    Reputations:
    1
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    30
    Okay let see if i install vista then 7. you create three partition for ubuntu you crate "/" home and swap. What do i call the partition were i install Grub. That's were i am lost at this moment. Would i need 4 partition for Linux and how do i install grup by itself. Maybe i am just really lost.
     
  8. brncao

    brncao Notebook Evangelist

    Reputations:
    541
    Messages:
    570
    Likes Received:
    5
    Trophy Points:
    31
    If you're planning on sticking with 3 OS then here's how I would set it up. Both Windows 7 and Vista must be on primary partitions (Windows will install it as primary automatically). Ubuntu (which is "/") can be installed on either primary or logical partition. If you're going to install more than one distro besides Ubuntu, place them all as "logical." If not, primary should be fine. Now you'll need to create an extended partition. Inside of the extended partition, create three logical partitions, one for Swap, one for /Home, and one for /boot. Remember where the /boot is located (/dev/sda#). I mounted all of them as ext3.

    At the end of the step click "advanced." Install the bootloader to where the /boot partition is. Now you should have grub setup correctly inside /boot. What's left is to get MBR to direct its attention to this partition where grub is. Read my post above on how to do this.
     
  9. dtechlogic

    dtechlogic Notebook Consultant

    Reputations:
    1
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    30
    This is what i have. I have Three HDD one for 500GB and one for 160GB and one for 120GB. The 160GB that's were i have my windows vista running and on the 500GB i have windows running on a partition of 120GB and my 120GB that's were i have Ubuntu install on a partitiion of 60GB. So what will be the recommended way to install since i am have three HDD. different size.
     
  10. brncao

    brncao Notebook Evangelist

    Reputations:
    541
    Messages:
    570
    Likes Received:
    5
    Trophy Points:
    31
    Oh I thought you had only one. Well this is actually a lot better. Your OS setup is fine. Swap and /home can probably go on the 120gb drive where your Ubuntu is. /boot can go anywhere. Lot's of choices because of all that space.

    Your first SATA drive is labeled as sda#, second as sdb#, third as sdc#, etc (if IDE it's "hd" rather than "sd"). In grub speak this is equivalent to (hd0,#), (hd1,#), (hd2,#) respectively. The "#" is the partition number starting from left to right. Grub starts on 0 and Linux starts on 1. If you install grub on your third drive on the 4th primary partition then it would be /dev/sdc4 or (hd2,3). Logical partitions begins at sdc5 if you want it as logical.
     
  11. dtechlogic

    dtechlogic Notebook Consultant

    Reputations:
    1
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    30
    To much info. and i am learning. This weekend will be date i am going to test it out and start installing it.
     
  12. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    PS........that notebook of yours (9261) is a MONSTER :D
     
  13. dtechlogic

    dtechlogic Notebook Consultant

    Reputations:
    1
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    30
    yeah, it stay most of the time at home but i like it. So far is working for its purpose. Anyways Keep it coming with the advice.
     
  14. dtechlogic

    dtechlogic Notebook Consultant

    Reputations:
    1
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    30
    Updates, isntalled Windows XP, Vista next Windows 7 and Ubuntu
     
  15. brncao

    brncao Notebook Evangelist

    Reputations:
    541
    Messages:
    570
    Likes Received:
    5
    Trophy Points:
    31
    Congrats. Hope you enjoy your new system. You can add a background pic to your grub bootloader too if you want.
     
  16. dtechlogic

    dtechlogic Notebook Consultant

    Reputations:
    1
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    30
    What are the method to get that done to add the picture. Instruction will be welcome.
     
  17. paper_wastage

    paper_wastage Beat this 7x7x7 Cube

    Reputations:
    486
    Messages:
    2,596
    Likes Received:
    24
    Trophy Points:
    56
  18. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
  19. dtechlogic

    dtechlogic Notebook Consultant

    Reputations:
    1
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    30
    Okay, Here is my setting i have Install Windows xp, Vista, Windows 7, Then Inistall Ubuntu. i have create 4 partitions. \, swap, home, and Boot. During the installation i choose The Bood \dev\Sdb6 which is 2GB for Grub and which i called boot. After finish installing it i still get MS MBR. so i when into Vista and lauhcn EasyBCD and and pointed to the partition were Grub was install nothing came up. So any other solution.
     
  20. paper_wastage

    paper_wastage Beat this 7x7x7 Cube

    Reputations:
    486
    Messages:
    2,596
    Likes Received:
    24
    Trophy Points:
    56
    it's a virus? noooooo.... //me quickly goes to reformat everything

    you didn't install grub correctly when you installed ubuntu last...

    try http://ubuntuforums.org/showthread.php?t=224351
     
  21. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    lol yes a virus of the brain, not the computer... ;)
     
  22. dtechlogic

    dtechlogic Notebook Consultant

    Reputations:
    1
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    30
    Anyone good at reading this information on what it says

    ============================= Boot Info Summary: ==============================

    => Windows is installed in the MBR of /dev/sda
    => Windows is installed in the MBR of /dev/sdb
    => Windows is installed in the MBR of /dev/sdc

    sda1: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows Vista
    Boot sector info: No errors found in the Boot Parameter Block.
    Boot file info: Grub0.97 in the file /NST/nst_linux.mbr looks at
    sector 212770045 of the same hard drive for the stage2
    file. A stage2 file is at this location on /dev/sdb.
    Stage2 looks on partition #6 for /grub/menu.lst.
    Operating System: Windows Vista
    Boot files/dirs: /NST/menu.lst /bootmgr /Boot/BCD
    /Windows/System32/winload.exe /ntldr /ntdetect.com

    sdb1: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows Vista
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System: Windows Vista
    Boot files/dirs: /Windows/System32/winload.exe

    sdb2: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows Vista
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files/dirs:

    sdb3: _________________________________________________________________________

    File system: Extended Partition
    Boot sector type: -
    Boot sector info:

    sdb5: _________________________________________________________________________

    File system: swap
    Boot sector type: -
    Boot sector info:

    sdb6: _________________________________________________________________________

    File system: ext3
    Boot sector type: Grub
    Boot sector info: Grub0.97 is installed in the boot sector of sdb6 and
    looks at sector 212770045 of the same hard drive for
    the stage2 file. A stage2 file is at this location on
    /dev/sdb. Stage2 looks on partition #6 for
    /grub/menu.lst.
    Operating System:
    Boot files/dirs: /grub/menu.lst

    sdb7: _________________________________________________________________________

    File system: ext3
    Boot sector type: -
    Boot sector info:
    Operating System: Ubuntu 8.10
    Boot files/dirs: /etc/fstab

    sdb8: _________________________________________________________________________

    File system: ext3
    Boot sector type: -
    Boot sector info:
    Operating System:
    Boot files/dirs:

    sdc1: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows XP
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System: Windows XP
    Boot files/dirs:

    sdc2: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows Vista
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files/dirs:

    =========================== Drive/Partition Info: =============================

    Drive: sda ___________________ _____________________________________________________

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0xa57d9f63

    Partition Boot Start End Size Id System

    /dev/sda1 * 2,048 312,578,047 312,576,000 7 HPFS/NTFS


    Drive: sdb ___________________ _____________________________________________________

    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x991cb155

    Partition Boot Start End Size Id System

    /dev/sdb1 2,048 206,735,359 206,733,312 7 HPFS/NTFS
    /dev/sdb2 288,655,920 976,768,064 688,112,145 7 HPFS/NTFS
    /dev/sdb3 206,740,485 288,655,919 81,915,435 5 Extended
    /dev/sdb5 206,740,548 210,869,189 4,128,642 82 Linux swap / Solaris
    /dev/sdb6 * 210,869,253 214,805,114 3,935,862 83 Linux
    /dev/sdb7 214,805,178 244,782,404 29,977,227 83 Linux
    /dev/sdb8 244,782,468 288,655,919 43,873,452 83 Linux


    Drive: sdc ___________________ _____________________________________________________

    Disk /dev/sdc: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x141ea6f1

    Partition Boot Start End Size Id System

    /dev/sdc1 2,048 122,879,999 122,877,952 7 HPFS/NTFS
    /dev/sdc2 122,882,048 234,438,655 111,556,608 7 HPFS/NTFS


    blkid -c /dev/null: ____________________________________________________________

    /dev/sda1: UUid='38A49641A4960194' LABEL="Vista" TYPE="ntfs"
    /dev/sdb1: UUid='66C2441BC243EDBD' LABEL="Windows 7" TYPE="ntfs"
    /dev/sdb2: UUid='D6728F92728F7651' LABEL="DATA" TYPE="ntfs"
    /dev/sdb5: UUid='9d0eb5a8-d834-4248-9e86-628e1c1b3f94' TYPE="swap"
    /dev/sdb6: UUid='949cd821-cd1a-4719-8308-ed44c3d76ecb' TYPE="ext3"
    /dev/sdb7: UUid='6a3bb5d3-6e8f-4cc2-87b4-6f9146b5d528' SEC_TYPE="ext2" TYPE="ext3"
    /dev/sdb8: UUid='02e84709-22fe-4e8f-b94f-6c355c68199f' SEC_TYPE="ext2" TYPE="ext3"
    /dev/sdc1: UUid='4A305D04305CF901' LABEL="xp" TYPE="ntfs"
    /dev/sdc2: UUid='0E008E8A008E788B' LABEL="MAME" TYPE="ntfs"
    /dev/loop0: TYPE="squashfs"

    =============================== "mount" output: ===============================

    /proc on /proc type proc (rw)
    sysfs on /sys type sysfs (rw)
    tmpfs on /lib/modules/2.6.27-7-generic/volatile type tmpfs (rw,mode=0755)
    tmpfs on /lib/modules/2.6.27-7-generic/volatile type tmpfs (rw,mode=0755)
    tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
    varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
    varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
    udev on /dev type tmpfs (rw,mode=0755)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
    rootfs on / type rootfs (rw)
    fusectl on /sys/fs/fuse/connections type fusectl (rw)
    /dev/scd0 on /cdrom type iso9660 (ro,noatime)
    /dev/loop0 on /rofs type squashfs (ro,noatime)
    tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
    gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu)
    /dev/sdb6 on /media/disk type ext3 (rw,nosuid,nodev,uhelper=hal)


    ============================== sda1/NST/menu.lst: ==============================

    # NeoSmart NeoGrub Bootloader Configuration File

    #

    # This is the NeoGrub configuration file, and should be located at C:\NST\menu.lst

    # Please see the EasyBCD Documentation for information on how to create/modify entries:

    # http://neosmart.net/wiki/display/EBCD/



    timeout 0

    default 0



    title /boot/grub/menu.lst

    fallback 1

    find --set-root --ignore-floppies /boot/grub/menu.lst

    configfile /boot/grub/menu.lst



    title /grub/menu.lst

    fallback 2

    find --set-root --ignore-floppies /grub/menu.lst

    configfile /grub/menu.lst



    title /boot/grub.conf

    find --set-root --ignore-floppies /boot/grub.conf

    configfile /boot/grub.conf



    # All your boot are belong to NeoSmart!
    ============================= sdb6/grub/menu.lst: =============================

    # menu.lst - See: grub(8), info grub, update-grub(8)
    # grub-install(8), grub-floppy(8),
    # grub-md5-crypt, /usr/share/doc/grub
    # and /usr/share/doc/grub-doc/.

    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not use 'savedefault' or your
    # array will desync and will not let you boot your system.
    default 0

    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout 10

    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    #hiddenmenu

    # Pretty colours
    #color cyan/blue white/blue

    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line) and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret

    #
    # examples
    #
    # title Windows 95/98/NT/2000
    # root (hd0,0)
    # makeactive
    # chainloader +1
    #
    # title Linux
    # root (hd0,1)
    # kernel /vmlinuz root=/dev/hda2 ro
    #

    #
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below

    ## DO NOT UNCOMMENT THEM, Just edit them to your needs

    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ## kopt_2_6_8=root=/dev/hdc1 ro
    ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=UUID=6a3bb5d3-6e8f-4cc2-87b4-6f9146b5d528 ro

    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=949cd821-cd1a-4719-8308-ed44c3d76ecb

    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ## alternative=false
    # alternative=true

    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ## lockalternative=false
    # lockalternative=false

    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash

    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false
    ## lockold=true
    # lockold=false

    ## Xen hypervisor options to use with the default Xen boot option
    # xenhopt=

    ## Xen Linux kernel options to use with the default Xen boot option
    # xenkopt=console=tty0

    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ## altoptions=(recovery) single
    # altoptions=(recovery mode) single

    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ## howmany=7
    # howmany=all

    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ## memtest86=false
    # memtest86=true

    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false

    ## should update-grub add savedefault to the default options
    ## can be true or false
    # savedefault=false

    ## ## End Default Options ##

    title Ubuntu 8.10, kernel 2.6.27-7-generic
    uuid 949cd821-cd1a-4719-8308-ed44c3d76ecb
    kernel /vmlinuz-2.6.27-7-generic root=UUID=6a3bb5d3-6e8f-4cc2-87b4-6f9146b5d528 ro quiet splash
    initrd /initrd.img-2.6.27-7-generic
    quiet

    title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
    uuid 949cd821-cd1a-4719-8308-ed44c3d76ecb
    kernel /vmlinuz-2.6.27-7-generic root=UUID=6a3bb5d3-6e8f-4cc2-87b4-6f9146b5d528 ro single
    initrd /initrd.img-2.6.27-7-generic

    title Ubuntu 8.10, memtest86+
    uuid 949cd821-cd1a-4719-8308-ed44c3d76ecb
    kernel /memtest86+.bin
    quiet

    ### 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 Windows Vista/Longhorn (loader)
    root (hd0,0)
    savedefault
    chainloader +1


    =================== sdb6: Location of files loaded by Grub: ===================


    108.9GB: grub/menu.lst
    108.9GB: grub/stage2
    108.0GB: initrd.img-2.6.27-7-generic
    108.0GB: vmlinuz-2.6.27-7-generic

    =============================== sdb7/etc/fstab: ===============================

    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/sdb7
    UUID=6a3bb5d3-6e8f-4cc2-87b4-6f9146b5d528 / ext3 relatime,errors=remount-ro 0 1
    # /dev/sdb6
    UUID=949cd821-cd1a-4719-8308-ed44c3d76ecb /boot ext3 relatime 0 2
    # /dev/sdb8
    UUID=02e84709-22fe-4e8f-b94f-6c355c68199f /home ext3 relatime 0 2
    # /dev/sdb5
    UUID=9d0eb5a8-d834-4248-9e86-628e1c1b3f94 none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
     
    Last edited by a moderator: May 7, 2015