LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-15-2005, 03:52 PM   #1
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 45
Repartitioning Debian partition to make room for another distro?


Where does debian store all of it's stuff? I have one partition of WinXP, on of FAT32, one 10GB of Debian, and a swap. My question is could I shrink the debian partition to 5GB, the make another 5GB partiton for another distro?
 
Old 04-15-2005, 04:46 PM   #2
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
Resizing a Linux partition is possible with some tools on certain partitions, but generally I would strongly advise against it..........Your best bet is to backup the Deb partition somewhere, then split it in two (remove the old and make two partitions) and copy the Deb backup back to one of the newly created smaller partitions........

For backing up the Deb installation, you can use the command 'cp -a', or if you have rsync you can use 'rsync -a'...........The "-a" switch is necessary for both as it means to "archive" and is a shortcut for several switches to preserve permissions, timestamps, and symlinks............

 
Old 04-15-2005, 07:38 PM   #3
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
so, how would I copy my debian partition to something? I don't have an external HD or anything, I want to do this, but I don't have something to copy my Debian partiton to. Thoughts?
 
Old 04-15-2005, 10:20 PM   #4
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
How do you make backups?..........If you're not making backups, you should seriously think about doing so......

Do you have a CD-RW burner? Or a DVD-RW burner?...............

Also, how big is your XP partition? Can you resize it small enough to create a temporary backup partition?...........

Do you have a friend that will let you borrow a hard drive to use as a temp backup drive?.........

BTW, what type of Linux partition is Deb installed on.....ext2, ext3, reiserfs? (Just in case you _will_ have to resize the Linux partition)..........
 
Old 04-15-2005, 11:11 PM   #5
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
Debian is on an ext3 partition, no, I haven't been making backups. Yes I have a CD burner, but I don't think 5 GB will fit on an 800MB CD. Other thoughts?
 
Old 04-16-2005, 05:02 AM   #6
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Quote:
Yes I have a CD burner, but I don't think 5 GB will fit on an 800MB CD.
You could use a backup tool such as DAR to create a compressed backup (you may use gzip or bzip2, which has a better compression ratio). Such a tool can split the resulted backup into several slices, so you could burn them on CDs. 5 gigabytes, compressed with the bzip2 algorithm would probably mean something like an 2-2.5 GB archive == 3 CDs.
Just an idea.
 
Old 04-16-2005, 05:43 PM   #7
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
How much room do you have on the XP partition?...........Following along with harken's suggestion of using some sort of backup compression scheme (dar, tar.gz, tar.bz2), will there be enough room if you resize the FAT32 partition XP is installed on and create a temp partition to hold the compressed backup?..........You can always reclaim the space after splitting the 10GB partition........

And you can resize an ext3 partition with GNU Parted.........The Knoppix LiveCD also has QtParted, which is a Linux clone for Partition Magic..............Be aware, though, that qtparted is no longer being developed, but should still work for your purposes.......GNU Parted is still being developed, but it is a command line tool, not a gui tool, and would be the better choice of the two (if you're comfortable using command line tools)..............

When resizing, you can shrink the partition in half, but know that you cannot move it, only resize it, and the current data will stay at the front of the partition when resizing.........This will create free space at the end, only.........

But I only recommend resizing as a last resort.............You may be successful, but if something goes wrong you will lose your Deb installation, unless you have a current backup to replace it with..........

 
Old 04-16-2005, 05:52 PM   #8
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
Another thought is to backup the XP installation to CD using Ghost, and then you can use the whole partition for a temp backup for your Deb installation using the Knoppix LiveCD as a work platform.............It has all the tools needed to make the backup with and then split the 10GB partition...........

 
Old 04-18-2005, 12:45 PM   #9
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
yes, all I want to do is resize the debian partition, so that I can make room to play around with other distros. I have a 30GB HD. 16GB NTFS(XP) 4GB(FAT32 transfer) 10GB Ext3(debian). I gues my question is, if I resize my partition down, will I lose my debian install?
 
Old 04-18-2005, 02:09 PM   #10
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
While in Debian, run the command df -h to see how much space is left on the Deb partition...............This will output the disk usage of all the mounted partitions...................Look for the partition that has the Root Directory (/), and under the column "Use%" it will tell you how much of the partition is used, in percent.......This will give you an idea of how much space is available..........You want it to be less than 50% (40% or less would be better as there will be some fragmentation) to be able to split it in half..............

I haven't used the resize option for these partition tools, but I think they won't let you resize more than the amount of unused blocks which are available, thus keeping the current data intact...........Both the partition tools use the utilities for the applicable filesystem (e2fsprogs in your case) when working with a partition............

 
  


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
no more room in partition! jnev Linux - General 7 09-21-2005 09:58 PM
out of space on partition, need help freeing up room disorderly Linux - Newbie 2 10-18-2004 02:44 PM
Repartitioning / Resizing partitions: partition magic in linux: possible? hamish Linux - Newbie 6 06-07-2004 05:00 PM
Partition check problem when booting with a Debian Distro. ashgrim Linux - Newbie 3 10-22-2003 07:02 PM
Having Trouble repartitioning XP NTFS Partition! Devsforev Linux - Newbie 7 11-28-2002 08:00 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration