LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-23-2007, 10:42 AM   #1
RN87
LQ Newbie
 
Registered: Sep 2007
Posts: 6

Rep: Reputation: 0
Want to install WinVista on already Linux desktop


Hi, I'm runing Ubuntu Gutsy (only) on my machine, and I'm booting from GRUB (on /dev/sda)

I already have a formated NTFS partition, I'm going to install Windows Vista on it.

Do I have to update fstab?


And how about GRUB/MBR? Vista will be overwriting it and I want to boot ubuntu!

My fstab:
Code:
$ 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=2eb0074b-c96a-4cbf-9703-69e20535fc09 / reiserfs notail 0 1
/dev/sda1    0 0
# Entry for /dev/sda1 :
UUID=FCF86D0EF86CC90A /media/sda1 ntfs-3g defaults,locale=pt_PT.UTF-8 0 1
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

My menu.lst:
Code:
$ cat /boot/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 change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default         5

## 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 yellow/blue blink-yellow/black

## 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=2eb0074b-c96a-4cbf-9703-69e20535fc09 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## 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=vga=789

## 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 gutsy (development branch), kernel 2.6.22-12-generic
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.22-12-generic root=UUID=2eb0074b-c96a-4cbf-9703-69e20535fc09 ro vga=789
initrd          /boot/initrd.img-2.6.22-12-generic
quiet

title           Ubuntu gutsy (development branch), kernel 2.6.22-12-generic (recovery mode)
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.22-12-generic root=UUID=2eb0074b-c96a-4cbf-9703-69e20535fc09 ro single
initrd          /boot/initrd.img-2.6.22-12-generic

title           Ubuntu gutsy (development branch), memtest86+
root            (hd0,2)
kernel          /boot/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

Last edited by RN87; 09-23-2007 at 11:13 AM.
 
Old 09-24-2007, 05:01 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
I already have a formated NTFS partition, I'm going to install Windows Vista on it.
Vista will overwrite the MBR and you will only be able to boot vista until you run Ubuntu from the cd (or use it to boot the hd installation of Ubuntu) to fix grub. Or, do yourself a favor, and make a boot diskette or cd for Ubuntu before you install vista. Then use that to boot Ubuntu after installing vista, to boot Ubuntu to fix grub (write it to the MBR). While you are in Ubuntu, edit /boot/grub/menu.lst to add an entry for booting winedows.
Quote:
Do I have to update fstab?
If you want the vista partition mounted on boot, you will have to make an entry in /etc/fstab for vista. If you don't want vista partition mounted on boot, don't add it to fstab.
Quote:
And how about GRUB/MBR? Vista will be overwriting it and I want to boot ubuntu!
See first response above.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Install Linux In Windows Desktop???? jojojo Linux - Newbie 17 12-10-2013 12:46 PM
Install Linux & Lock Down Desktop Environment kasperbs Linux - General 5 07-30-2007 10:41 AM
Install linux on formatted laptop hdd using desktop PaulGoold Linux - Newbie 5 08-08-2006 10:03 AM
How to install KDE desktop environment in RH Linux 7.2 sceadu Linux - Software 1 05-16-2003 03:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration