Repartitioning Debian partition to make room for another distro?
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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............
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?
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?
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.
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..........
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...........
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?
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............
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.