Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
i have tried to install ubuntu after installing windows. grub has overwrote the MBR and now windows will not start up. i opened /boot/grub/menu.lst and found that there is no ...
  1. #1
    Just Joined!
    Join Date
    May 2005
    Posts
    11

    dual boot in ubuntu



    i have tried to install ubuntu after installing windows. grub has overwrote the MBR and now windows will not start up.
    i opened /boot/grub/menu.lst and found that there is no windows line. this is what i typed:
    Code:
    title                      Windows XP Professional
    root                     (hd1,4)
    savedefault          
    chainloader          +1
    map                     (hd1) (hd0)
    map                     (hd0) (hd1)
    these are my fdisk -l results:
    Code:
    Device        Boot          Start                 End           Blocks                     ID          System
    /dev/hda1    *              1                     2386         19165513+           83             Linux
    /dev/hda2                   2387                2491         843412+               5               Extended
    /dev/hda3                   2387                2491         843381                  82          Linux swap / solaris
    
    
    #some crap here
    
    /dev/hdb1                  2                       4998    40138402+                f             W95 Ext'd (LBA)
    /dev/hdb5                  2                       4997    40130338+                7             HPFS/NTFS
    and this is what is in fstab:
    Code:
    #/etc/fstab:static file system information
    #
    #<file system>  <mount point> <type> <options> <dump> <pass>
    
    proc           /proc              proc      defaults
    0         0
    /dev/hda1                                    ext3
    defaults,errors=remount-ro 0
    /dev/hda5                    none      swap     sw
    0         0
    /dev/hdd           /media/cdrom0     auto            udf,iso9660 ro,user,noauto
    0        0 
    /dev/fdo      /media/floppy0           auto            rw,user,noauto 
    0        0
    /dev/sda     /media/usb0             auto              rw,user,noauto
    00
    my windows OS is in the slave hard drive. Ubuntu is on the master hd.
    im a complete newb. if someone is using ubuntu 5.04(what's written on the cd) and has windows as dual boot can you please give me what is written in their menu.lst for windows. i have not slept in 28 hours because of this and i am proud to say that i have learnt more about computers in the past 28 hours because of linux than i did in the past 16 years of life from windows. yay.[/code]

  2. #2
    Linux Engineer psic's Avatar
    Join Date
    Nov 2004
    Location
    Ljubljana, Slovenia
    Posts
    1,205
    Hi. this is how I have windows in my grub menu.lst:
    title Microsoft Windows XP Professional
    root (hd0,0)
    savedefault
    chainloader +1

    I have windows on the first partition of my hda drive. where you have "root (hdX,0)" make sure to start counting with 0 not with 1 (in place of X). so my windows is on hda1, which means I have to have (hd0,0).

    edit: oh, and for fstab:
    /dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=0222 0 0

    *make sure to put an empty line at the end of fstab before you save it.
    Stumbling around the 'net:
    www.cloudyuseful.com

  3. #3
    Just Joined!
    Join Date
    May 2005
    Posts
    11
    well now atleast when i open "computer" it recognises that there is a 41G Hard Drive. It still refuses to start up windows though. for root i wrote

    Code:
    root &#40;hd1,0&#41;
    #i also tried
    root &#40;hd1,4&#41;
    when i open dev, in addition to my hda's i also found hdb hdb1 and hdb5 and hdd. should i try
    root (hd3,0) ?
    and what does the umask=0222 stand for? can it be different for me?

    EDIT:
    This is what i just tried in the terminal
    Code:
    sudo mkdir /mnt/windows
    sudo mount -t ntfs /dev/hdb1 /mnt/windows
    sudo mount -t ntfs /dev/hdb5 /mnt/windows
    it didn't say anything for a while and when i tried it again it said that hdb5 is already mounted there. i opened the mnt folder and found that the windows folder now has a cross on it and is NTFS format, it has exactly the same space free as was in windows. but now when i boot windows it tells me
    Code:
    root &#40;hd1,0&#41;
    Filesystem type uknown, partition type 0xf
    savedefault
    chainloader +1
    or
    Code:
    root &#40;hd1,4&#41;
    Filesystem type uknown, partition type 0x7
    savedefault
    chainloader +1
    [/code]

  4. #4
    Linux Engineer psic's Avatar
    Join Date
    Nov 2004
    Location
    Ljubljana, Slovenia
    Posts
    1,205
    I think you missunderstood. Try root (hd0,0). It should work. Umask is for permissions. Just leave it like it is (if you want to know more about how linux permissions, google it up, they are basically defined with numbers, very simple once you know how it works).

    edit: for the mounting, the code I gave for fstab (for the windows partition) would mount it in /mnt/hda1, I'm used to mounting my partitions this way. make sure you actually HAVE a /mnt/hda1 (if not, you will get an error saying that the mount point does not exist).
    Stumbling around the 'net:
    www.cloudyuseful.com

  5. #5
    Just Joined!
    Join Date
    May 2005
    Posts
    11
    ok i created the dir /mnt/hda1
    and i mounted hdb5 into it
    and then i changed menu.lst to what you gave me exactly and i changed fstab to exactly what you gave me this is what it says
    Code:
    root &#40;hd0,0&#41;
    Filesystem type is ext2fs, partition type 0x83
    save default
    chainloader +1
    
    Error 13&#58; Invalid or unsupported executable format
    [/code]

  6. #6
    Linux Engineer psic's Avatar
    Join Date
    Nov 2004
    Location
    Ljubljana, Slovenia
    Posts
    1,205
    Sorry, I thought you were trying to boot windows and that you had it on your first partition. Where do you have windows? hdaX, X=?
    Stumbling around the 'net:
    www.cloudyuseful.com

  7. #7
    Just Joined!
    Join Date
    Apr 2005
    Posts
    45

    Re: dual boot in ubuntu

    these are my fdisk -l results:
    Code:
    Device        Boot          Start                 End           Blocks                     ID          System
    /dev/hda1    *              1                     2386         19165513+           83             Linux
    /dev/hda2                   2387                2491         843412+               5               Extended
    /dev/hda3                   2387                2491         843381                  82          Linux swap / solaris
    
    
    #some crap here
    
    /dev/hdb1                  2                       4998    40138402+                f             W95 Ext'd &#40;LBA&#41;
    /dev/hdb5                  2                       4997    40130338+                7             HPFS/NTFS
    He has it on hdb5 so hd(1,4) is the correct setting.

  8. #8
    Just Joined!
    Join Date
    May 2005
    Posts
    11
    ok look please you guys hang with me. i actually fell asleep on my pc but now i'm up and feeling a bit refreshed.
    i have linux on the master hard disk which hda and i have windows on the slave hard disk which is hdb.
    i installed linux after windows and it erased the master boot record and so i can't startup linux.
    this is what i wrote now in menu.lst:
    Code:
    title Windows XP Professional
    root &#40;hd1,4&#41;
    savedefault
    chainloader +1
    and this is what i wrote in fstab:
    Code:
    /dev/hdb5 /mnt/hdb5 NTFS noauto,users,exec,ro,umask=0222
    0 0
    #and there's space here one enter like you specified.
    this is what it says when i reboot now
    Code:
    root &#40;hd1,4&#41;
    Filesystem type unknown, partition type 0x7
    savedefault
    chainloader +1
    and a flashing underscore as if it's loading.
    there were a few times when i skip the memory and POST tests where it would ask me where do i want to boot from even before loading grub but i think that's different isn't it?
    when it loads grub after i choose something from that list it gives me the same error...

  9. #9
    Just Joined!
    Join Date
    May 2005
    Posts
    11
    i tried to tag the partition as bootable by writing in the terminal:
    Code:
    sudo parted /dev/hdb5 "set boot 1 on"
    this is what it tells me
    Code:
    Error&#58;  Can't have a partition outside the disk!
    will someone please aid. add me on msn and do it real time or anything.
    ahmadbas@hotmail.com

  10. #10
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    Instead of root for the XP entry, try rootnoverify.

    You also may have to change XP so it is the Master hd.
    Windows likes to be the Master. You can either trick it into thinking it is the Master, people have posted how to do this, or you can just switch hard drives. And edit your menu.lst file accordingly.
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

Page 1 of 2 1 2 LastLast

Posting Permissions

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