LinuxQuestions.org
Help answer threads with 0 replies.
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 06-20-2006, 02:39 PM   #1
Brian Sabey
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
Un-Partitioning


I need to un - partition my hard-drive, can anyone tell me how to do this? I tried to install Linux not very successfully and now my Microsoft drive is desperately full and I may loose everything on there.

Many Thanks
 
Old 06-20-2006, 03:12 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Not really sure what you mean by "un-partition" your drive, but I assume you have a drive something like
Code:
/dev/hda1 WinXP
/dev/hda2 /swap
/dev/hda3 /
and want to remove the linux partitions and resize the windows one to give you more space.

Anyway, I typically use GParted Live CD for all my partitioning needs. It will even allow you to resize the ntfs partition. Just download the iso and burn it to CD (remember to Burn from Disc Image or the like, not just burn the iso file to the disc as if it was data). then pop it in the CD-rom and reboot...
 
Old 06-20-2006, 03:23 PM   #3
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
You can run fdisk off either a linux live-cd or from your W$ recovery CD.
Run this and use it to delete any partitions that you don't want.

Then you can either:
- create a single partition in the space you've created, then assign it a filesystem type that W$ will know (NTFS or FAT). Windows will see this as a new hard drive and may offer to format it for you the first time you try to use it (you should say yes). You can then put stuff on it.
OR
- try to resize your W$ partition to give the space back to the single partition. This is potentially more dangerous but can be done with tools like parted or qtparted, which can be found on many linux live-cds. There is also some commercial software called Partition Magic that will do this for you.
 
Old 06-20-2006, 03:29 PM   #4
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
It must have taken me more than 10 minutes to write that - was watching the football.
I agree with pljvaldez - and am getting a copy of that CD for myself (it's only 30MB)
 
Old 06-20-2006, 03:44 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
One more caveat, if you're using grub right now, you might want to leave that partition on your machine as it will have the files needed to boot windows. Otherwise boot with a Dos disk or your windows CD and run fdisk /mbr or fixmbr to restore NTLDR. If you're already using NTLDR from windows, you can just nuke all the linux partitions.
 
  


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
hd partitioning aw76 Linux - Hardware 2 12-20-2005 10:58 PM
Partitioning superdude_876 Slackware 5 10-20-2005 10:28 AM
Partitioning regorbro Linux - General 5 12-05-2004 02:07 PM
Partitioning AGilley007 Mandriva 4 07-01-2004 02:33 AM
Partitioning. Vyeperman Red Hat 9 09-20-2003 04:48 PM

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

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