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 ...
- 05-26-2005 #1Just 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:
these are my fdisk -l results:Code:title Windows XP Professional root (hd1,4) savedefault chainloader +1 map (hd1) (hd0) map (hd0) (hd1)
and this is what is in fstab: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
my windows OS is in the slave hard drive. Ubuntu is on the master hd.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
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]
- 05-26-2005 #2
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
- 05-26-2005 #3Just 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
when i open dev, in addition to my hda's i also found hdb hdb1 and hdb5 and hdd. should i tryCode:root (hd1,0) #i also tried root (hd1,4)
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
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 meCode:sudo mkdir /mnt/windows sudo mount -t ntfs /dev/hdb1 /mnt/windows sudo mount -t ntfs /dev/hdb5 /mnt/windows
orCode:root (hd1,0) Filesystem type uknown, partition type 0xf savedefault chainloader +1
[/code]Code:root (hd1,4) Filesystem type uknown, partition type 0x7 savedefault chainloader +1
- 05-26-2005 #4
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
- 05-26-2005 #5Just 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]Code:root (hd0,0) Filesystem type is ext2fs, partition type 0x83 save default chainloader +1 Error 13: Invalid or unsupported executable format
- 05-26-2005 #6
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
- 05-26-2005 #7Just Joined!
- Join Date
- Apr 2005
- Posts
- 45
Re: dual boot in ubuntu
He has it on hdb5 so hd(1,4) is the correct setting.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
- 05-26-2005 #8Just 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:
and this is what i wrote in fstab:Code:title Windows XP Professional root (hd1,4) savedefault chainloader +1
this is what it says when i reboot nowCode:/dev/hdb5 /mnt/hdb5 NTFS noauto,users,exec,ro,umask=0222 0 0 #and there's space here one enter like you specified.
and a flashing underscore as if it's loading.Code:root (hd1,4) Filesystem type unknown, partition type 0x7 savedefault chainloader +1
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...
- 05-26-2005 #9Just Joined!
- Join Date
- May 2005
- Posts
- 11
i tried to tag the partition as bootable by writing in the terminal:
this is what it tells meCode:sudo parted /dev/hdb5 "set boot 1 on"
will someone please aid. add me on msn and do it real time or anything.Code:Error: Can't have a partition outside the disk!
ahmadbas@hotmail.com
- 05-26-2005 #10
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


Reply With Quote
