PDA

View Full Version : [ubuntu] Hardy ate Vista



user_cero
August 15th, 2008, 06:36 AM
Greetings. I upgraded my laptop from Gustsy to Hardy. I have Vista installed on the same disk. After upgrading Vista dissappeared from the GRUB. I wish to know how do add Vista to the GRUB menu.

SkonesMickLoud
August 15th, 2008, 06:42 AM
In a terminal, run:


sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.back && gedit /boot/grub/menu.lst

Add this to the bottom:


title "Windows Vista"
root (hdx,y)
chainloader +1

X = Hard drive (If you only have one drive, this will be 0)
Y = Partition. This depends on where you have Vista installed. Grub starts numbering partitions from 0. So, 0 is really the first partition. 1 is really the second...

user_cero
August 15th, 2008, 06:44 AM
Pardon my ignorance but where do i add that? I know is in the menu.lst but how do i get there?

Edit:

I manage to get the code in menu.lst but when i tried loading Vista i got the following error: BOOTMGR is missing.

Can anyone please tell me what does that mean? And, How do i fix it?

hvc123
August 15th, 2008, 07:21 AM
/boot/grub/menu.lst

Living2007
August 15th, 2008, 07:24 AM
sudo gedit /boot/grub/menu.lst

SkonesMickLoud
August 15th, 2008, 07:48 AM
Pardon my ignorance but where do i add that? I know is in the menu.lst but how do i get there?

Edit:

I manage to get the code in menu.lst but when i tried loading Vista i got the following error: BOOTMGR is missing.

Can anyone please tell me what does that mean? And, How do i fix it?

The command for editing the menu.lst. was the first command in my post.

Can you post the output of:


sudo cat /etc/fstab

Just paste that into a terminal, hit enter, and type in your password. Then copy/paste everything here.

It sounds like you've got the Vista partition named wrong.

SkonesMickLoud
August 15th, 2008, 07:50 AM
<snip>

user_cero
August 15th, 2008, 07:55 AM
This is what i got from the code sudo cat /etc/fstab:


# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
# Entry for /dev/sda3 :
UUID=8d52aadb-fc57-4845-ad1f-1fe14b1dc86b / ext3 defaults,errors=remount-ro 0 1
# Entry for /dev/sda5 :
UUID=1ad07877-f6e1-4bf9-9afe-1eeecdc9b9fa none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/sda2 /media/MEDIA ntfs-3g defaults,locale=en_US.UTF-8 0 0
/dev/sda1 /media/windows ntfs-3g defaults,locale=en_US.UTF-8 0 0

SkonesMickLoud
August 15th, 2008, 08:00 AM
This is what i got from the code sudo cat /etc/fstab:


# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
# Entry for /dev/sda3 :
UUID=8d52aadb-fc57-4845-ad1f-1fe14b1dc86b / ext3 defaults,errors=remount-ro 0 1
# Entry for /dev/sda5 :
UUID=1ad07877-f6e1-4bf9-9afe-1eeecdc9b9fa none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/sda2 /media/MEDIA ntfs-3g defaults,locale=en_US.UTF-8 0 0
/dev/sda1 /media/windows ntfs-3g defaults,locale=en_US.UTF-8 0 0

Make sure that:


root (hdx,y)

Says:


root (hd0,0)

In your menu.lst.

user_cero
August 15th, 2008, 08:18 AM
That worked perfectly i had root (hd0,1). Thank you very much for your help.

SkonesMickLoud
August 15th, 2008, 08:24 AM
That worked perfectly i had root (hd0,1). Thank you very much for your help.

No problem. Just remember for future use that grub starts from 0, so:

0=1
1=2
2=3
3=4 and so on.