LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-28-2008, 11:56 AM   #1
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
How to partition my HDD without losing any data?


Dear all,

I have Debian on an 80 GB HDD - the only HDD that I have. Now, I have around 20 GB of free space on this. I want to partition this 20 GB and make it a primary partition so that I am able to install other Operating Systems. How do I do that? Please help.
 
Old 03-28-2008, 12:03 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
Do you mean you have 20GB of free space on the drive outside of the Debian partition or the drive is a single 80GB partition with 20GB free space in it?

If it's the first one, just use GParted to partition the free space. If not, you may try to use GParted to shrink the partition, but that depends on the file system. I've never tried shrinking a linux partition before (just Windows XP), so I'm not too sure about reliability.

Either way, I'd make a backup of anything important before I did anything. Oh, keep testdisk handy on a live CD to fix your partition table in the event that it doesn't work.
 
Old 03-28-2008, 01:55 PM   #3
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Thanks. The HDD is a single 80 GB disk. My Linux and some data take around 60 GB of it, and the rest is free. I want to take 10 GB out of this and make it a primary partition so that I can install an OS like Windows on that.
 
Old 03-28-2008, 02:02 PM   #4
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Ok. The Gparted SW shows that my drive /dev/sda is a read-only memory. Because of this, I am not able to perform any operations on the disk. What to do ?
 
Old 03-28-2008, 03:05 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
You'll have to do it from a LiveCD because right now the filesystem is mounted. You can't shrink a partition while it is in use.
 
  


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
Re-partition without losing data goodtogo Linux - Software 4 06-22-2007 08:20 AM
HDD partition lost. xandros DVD + me = lost data lein Linux - General 18 05-22-2007 05:47 AM
Losing my head with hdd mocho Linux - Hardware 4 12-26-2005 10:53 PM
resize existing partition w/o losing data rebelscum Slackware 8 07-21-2005 05:44 PM
How to resize the Mandrake partition without losing all my data? Cezaro Mandriva 2 09-28-2004 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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