LinuxQuestions.org
Review your favorite Linux distribution.
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 03-05-2011, 01:13 AM   #1
j.davidson
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Rep: Reputation: 0
Question deleting a dual OS <windows 7, i don't want> <Linux I do want>


Hello, I'm new to Linux, I am also a new programmer. I bought a laptop with windows 7 already installed. My teacher helped me out with installing Linux alongside windows. How do I delete windows? Will that automatically restore the partitioned space to Linux or do I have to do that manually? Please someone have patience and explain to me how this works.
Thank you so much.
 
Old 03-05-2011, 01:41 AM   #2
vishnu_sreekumar
Member
 
Registered: Jan 2006
Location: India
Distribution: Ubuntu, RHEL, Debian
Posts: 49

Rep: Reputation: 20
I would suggest you to check with the vendor and see if deleting windows will void your warranty. I'm not a big fan of windows, still I would recommend you to keep the dual boot setup as it is. Because you are a programmer, you may need to test some cross platform support or so.
If you decide to go on with removing windows, you can do that by booting into your Linux install. Boot into your Linux OS and use the fdisk utility to format the partition where windows is installed. You can format the partition using any Linux native filesystem(ext3 or ext4). You can even format that as an NTFS or FAT filesystem. Check the man page for fdisk utility for more details.
To remove the option for Windows 7 from the boot menu, check the manual for your bootloader (grub or grub2). Mention the Linux flavour and version you installed in the reply if you need more specific commands.
 
1 members found this post helpful.
Old 03-05-2011, 11:57 AM   #3
j.davidson
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you so much, you were very helpful!
 
Old 03-05-2011, 01:24 PM   #4
Ignotum Per Ignotius
Member
 
Registered: Sep 2009
Location: Wales, UK
Distribution: Slackware, CrunchBang
Posts: 69
Blog Entries: 4

Rep: Reputation: 42
Quote:
Will that automatically restore the partitioned space to Linux or do I have to do that manually?
I'm not completely sure what you mean by "restore" here... Once you've formatted the new partition (as described above by Vishnu), Linux won't automatically co-opt it and use it for something: yes, it will be mountable and usable in Linux (for example, it should appear as a volume or device in the GNOME desktop, or may be mounted from the command-line), but Linux won't automatically start making use of the free partition (e.g. by using it for swap space or spreading system files onto it) unless you instruct the system to do so by featuring it in your filesystem table (/etc/fstab). If you want your distribution to be spread out onto the freed space, you would have to tell Linux what to do.

So, for example, if you've got a single Linux partition with your operating system and everything else on it, and you wanted to separate out your home partition onto the newly-freed Windows partition, then you'd have to copy any relevant files from the old home directory over to it and add an entry to fstab in order for Linux to mount the new home partition at boot.

I don't know whether this is what you were talking about: forgive me if I've not quite got your drift!

Happy Linuxing!
 
1 members found this post helpful.
Old 03-05-2011, 03:29 PM   #5
j.davidson
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Talking

What I mean by 'restore' is take the space that windows was using and let linux use it. But I'm gonna keep both os for now. Thank you so much!!!!! I really appreciate all the help I've been given!!!
 
Old 03-06-2011, 10:20 AM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,105

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
^ two options... you can boot into linux and use gparted (basically a gui fdisk) to delete the windows partition and create another partition of any supported filesystem (ext2/3/4, reiserfs, ntfs, fat, hpfs,...). the system will look like it has 2 separate drives (1 for system files and 1 for random space).

else you can boot up a live-cd/usb and run gparted. delete the windows partition and drag the boundry of the linux partition to restore the partitioned space to Linux so it looks like 1 big linux drive.
 
1 members found this post helpful.
Old 03-07-2011, 12:18 AM   #7
j.davidson
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Thumbs up Thank you

Hey thanks schneidz! That's exactly the information I was looking for!!!
 
Old 03-07-2011, 12:40 AM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Gparted can remove and copy partitions
If you remove sda1 & sda2 you can copy sda3 & sda 4 moving to sda1 & 2.
You may need a rescue disk to update grub info though.
 
1 members found this post helpful.
Old 03-09-2011, 10:23 PM   #9
j.davidson
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you!
 
Old 03-09-2011, 10:56 PM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You're welcome.
What steps did you take, so others will know?
 
Old 03-14-2011, 04:26 PM   #11
j.davidson
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by vishnu_sreekumar View Post
Because you are a programmer, you may need to test some cross platform support or so.
I'm actually going to keep Windows for now. Emphasis on 'for now'. I'll post whatever steps I take when I decide to do so. Thank you for all the help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Deleting Windows forever, dual-booting Ubuntu and Slackware. lupusarcanus Linux - Newbie 1 12-24-2009 06:58 AM
deleting linux and resizing windows partition mossy464 Linux - General 12 04-23-2008 12:26 PM
Stuck at Grub2 prompt after deleting Linux partition of dual boot alcorta Linux - Software 3 07-08-2005 11:12 PM
Help on deleting linux and installing windows the snucka Linux - Software 16 01-13-2005 04:34 PM
Deleting windows on dual boot i286 Linux - General 5 01-02-2004 08:33 PM


All times are GMT -5. The time now is 08:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration