LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-10-2008, 07:40 PM   #1
TheOneSYM
LQ Newbie
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 11

Rep: Reputation: 0
How can I remove vista from a ubuntu / vista dual boot!


Hey there. I recently installed ubuntu on a vista system, so now it is dual booting currently. I would like to remove vista from the system and regain all of that disk space for linux if possible. Does anyone know how to do this? Thanks.
 
Old 06-10-2008, 09:32 PM   #2
wowihatevista
Member
 
Registered: Jun 2008
Posts: 55

Rep: Reputation: 15
I would also like to know this... Ill be getting rid of vista very soon, cant wait!!!
 
Old 06-10-2008, 10:21 PM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Couldn't be easier.
- install gparted from System > Admin > Synaptic
- close Synaptic
- select partition editor from System > Admin
- select the Vista partition and format (just that one!) to a linux file system (ext3 or xfs).
- add it to your /etc/fstab file, which is the list of partitions that can be used by Ubuntu/Linux. You open the fstab file for editing by running this command in the terminal (Accesories > terminal):
sudo gedit /etc/fstab
If gparted shows the (former) Vista partition as, say, sda1 you would add this to your fstab (at the bottom):
/dev/sda1 /home/username/Data ext3 relatime 0 2
This is assuming that you picked ext3 for a filesystem when you formatted the partition (substitute as required) and that you want the partition to appear inside a folder called "Data" inside your home directory (again you are free to choose a different filename or even a different location). Remember to create the "Data" folder before doing this. When you are done, open up a terminal and run
sudo mount -a (this mounts all the entries listed in fstab)
and then
sudo chmod -R username.username /home/username/Data
(this is required to make the folder fully accessible for both reading and writing).

Partitions can even be merged but as windows tends to occupy the first partition, it would be rather inconvenient in this case. You would have to move your root partition to the start of the drive first. Not difficult but you'd better know what you are doing. Unless, of course, you have only recently installed and you don't mind reinstalling. There is an option to make Ubuntu take over all of the drive, which would get vista overwritten.

Last edited by jay73; 06-10-2008 at 10:24 PM.
 
Old 06-11-2008, 01:46 AM   #4
ischi
Member
 
Registered: Apr 2008
Location: Tübingen
Distribution: Fedora 9 (Thinkpad T60), Debian 3.1 (Server)
Posts: 51

Rep: Reputation: 15
And not to forget remove the vista entry from the bootmanager eg:
Code:
nano /boot/grub/menu.lst
and remove the lines for Vista eg
Code:
label=vista
rootnoverify=(hdx,x)
chainloader +1
 
Old 06-11-2008, 09:04 PM   #5
TheOneSYM
LQ Newbie
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
thank you for your help. much appreciated!
 
Old 06-24-2008, 04:19 AM   #6
gigsvoo
Member
 
Registered: Nov 2002
Posts: 100

Rep: Reputation: 15
Question

Hi there,

How about I want to move /boot partition into beginning of the drive, how can I do that?

My current list of /dev

Code:
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00095429

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       19477   156447480    7  HPFS/NTFS
/dev/sda2           19478       24321    38909430    5  Extended
/dev/sda5           19478       24116    37262736   83  Linux
/dev/sda6           24117       24321     1646631   82  Linux swap / Solaris
Thanks
 
Old 06-24-2008, 11:31 AM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Quote:
How about I want to move /boot partition into beginning of the drive, how can I do that?
Do you mean just /boot or all of your / partition? I see only one linux partition so I assume all of /. In either case, you would have to copy the data from the Linux partition to the new one. The safe approach is to do so from a livecd or from another Linux OS (if you have more than one installed) or even a different computer.
Of course, your new partition (the NTFS one) should have a linux native file system before it can be used. You can use gparted to do so or even the command line.
Then mount both the original / partition and the new one. From a livecd, that would look something like:
Code:
sudo mkdir /mnt/from
sudo mount /dev/sda5 /mnt/from
sudo mkdir /mnt/to
sudo mount /dev/sda1 /mnt/to
I am using "sudo" throughout just out of habit; most livecds will let you run those commands without it.
Then copy the data:
Code:
cd /mnt/from
sudo cp -ax * /mnt/to/
This part is going to take some time.
When the prompt returns, you still have to edit your /etc/fstab file and your /boot/grub/menu.lst.
Code:
sudo gedit /mnt/from/etc/fstab
and
Code:
sudo gedit /mnt/from/boot/grub/menu.lst
Your / partition is now a different one so you should edit fstab in such a way that / points to the new partition (/dev/sda1) instead of the old one. The same goes for menu.lst.
Unmount both partitions and reboot. Do not delete the original / partition until you are sure that everything is OK. If there is a problem, you can edit your grub/menu.lst to make it point to the original / partition again. That way, you can keep using your system as it was while your are figuring out what went wrong.
 
Old 06-24-2008, 11:42 AM   #8
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
> How about I want to move /boot partition into beginning of the drive, how can I > do that?

Why do you want to do that?

There is no need to do that or move / to /sda1.

And you can install some other distro in /dev/sda1
Consider jfs instead of ext3 or xfs (a bit difficult on Linux).

Best

A. Mani
 
Old 06-24-2008, 12:40 PM   #9
linbux
Member
 
Registered: Jun 2008
Location: tehran-iran
Distribution: opensuse,fedora,mandriva
Posts: 34
Blog Entries: 1

Rep: Reputation: 15
edit menu.lst

i think the simplest way is edit /boot/grub/menu.lst (in su mode by vi tool) and remove vista section from it.
and remove vista partition and replace it via and ext3 partition!
just this!
i believe linux made things easy!
 
Old 05-28-2009, 11:21 PM   #10
haiyun211
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
Hi guys I tried doing what you said and am now locked out of that partition. It would not let me do the chmod step.
 
Old 04-01-2010, 01:21 PM   #11
anibal99
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by jay73 View Post
Couldn't be easier.
- install gparted from System > Admin > Synaptic
- close Synaptic
- select partition editor from System > Admin
- select the Vista partition and format (just that one!) to a linux file system (ext3 or xfs).
- add it to your /etc/fstab file, which is the list of partitions that can be used by Ubuntu/Linux. You open the fstab file for editing by running this command in the terminal (Accesories > terminal):
sudo gedit /etc/fstab
If gparted shows the (former) Vista partition as, say, sda1 you would add this to your fstab (at the bottom):
/dev/sda1 /home/username/Data ext3 relatime 0 2
This is assuming that you picked ext3 for a filesystem when you formatted the partition (substitute as required) and that you want the partition to appear inside a folder called "Data" inside your home directory (again you are free to choose a different filename or even a different location). Remember to create the "Data" folder before doing this. When you are done, open up a terminal and run
sudo mount -a (this mounts all the entries listed in fstab)
and then
sudo chmod -R username.username /home/username/Data
(this is required to make the folder fully accessible for both reading and writing).
Hi,

I was on dualboot (VISTA + Ubuntu 9.10) and I followed above steps to remove VISTA from my PC (Acer Aspire REVO 36000). All went fine, I made sure Vista was removed from its partition until I rebooted...

Now I get the following message:
BOOTMGR IS MISSING (Press Ctrl+Alt+Del to restart)

Obviously I did not follow the steps detailed by ischi i.e. "And not to forget remove the vista entry from the bootmanager" basically because I'm a newby to Ubuntu and did not figured out how to do that.

Does anyone can help me out please? I invested close to a month to get familiar with Ubuntu 9.10, installing updates, soft, etc. and now it is properly finetuned I'm not looking into starting all over (the additional pain is that my PC has no optical drive).

Many thanks in advance and congrats to everyone that is contributing to Ubuntu project, it's really great!!
 
  


Reply

Tags
dual boot



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New install on vista system, want dual boot for vista and fedora. lhelden Linux - Newbie 9 08-21-2008 10:22 AM
Fedora and Vista Dual Boot (vista installed first) firekid1239 Linux - Newbie 10 05-04-2008 09:35 PM
fedora/vista dual boot - partimage: restored vista - vista won't let me log on redmoon zero Linux - General 1 12-31-2007 07:21 PM
how to dual boot vista and ubuntu? bojox Linux - Newbie 2 01-28-2007 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 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