LinuxQuestions.org
Review your favorite Linux distribution.
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 03-22-2005, 04:03 AM   #1
dsptech
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Question Need a "Pros" help with drive partitions


I am quickly running out of disk space on my root partition.
I have an 80GB hard drive dedicated to my Linux install.
It is divided into three separate ext3 partitions, /, /swap, and /home.
The drive is a Serial ATA drive.
The partitions are named sdb1 (/), sdb2 (/swap), and sbb3 (/home)
The root partition is 10GB, swap is 1GB, and home take up the remainder.

I would like to shrink my home partition to free up space for my root partition.
I think another 10GB would be good.
I have tried booting from the CD and running qtparted.
Qtparted will not allow resizing of any of the partitions.
Yes, they were unmounted.
I'm not sure if this is a limitation of qtparted or if it is a problem accessing serial ata based drives.

I do not want to re-install linux.
I have allot of software installed and am quite happy with my setup the way it is.
My install is perfectly tweaked and I would hate to start over.

Is there any software packages out there that would work with ext3 partitions?
They could be Windows based as I run a separate drive with a WinXP install.
I hope someone here has some solid suggestions.

Debian Unstable
Kernel 2.6.10
KDE 3.4
Promise PDC20376 (FastTrack 376) SATA controller
80GB Sata HD
ext3 partitions
 
Old 03-22-2005, 04:27 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,188

Rep: Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131
Try parted.
 
Old 03-22-2005, 04:28 AM   #3
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
If you wanted to move around your partitions, you should consider using LVM in the future. Otherwise, here are the limitations.

http://www.gnu.org/software/parted/
 
Old 03-22-2005, 12:36 PM   #4
dsptech
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Thoreau
If you wanted to move around your partitions, you should consider using LVM in the future. Otherwise, here are the limitations.

http://www.gnu.org/software/parted/
Well it looks like parted isn't going to help if the start of the partitions can't be changed.
If I understand this correctly, even if I could reduce the size of my /home partition I wouldn't be able to move it down to make room to enlarge my / partition.
Even if I was to clone the entire drive to a larger one the / partition would be the same size with the extra space after my /home partition.

Is there any way of imaging, copying, etc. to get around this?
There must be some trick to getting this done.
 
Old 03-22-2005, 01:02 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Perhaps you could shrink ~/ and then make new paritions and mount
points for /usr and /opt or whatever's filling /
 
Old 06-06-2005, 08:51 PM   #6
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
Maybe you wanna consider changing the way you use the root partition, instead of going through all this. My debian sarge with full kde and lots of multimedia software takes ~2.5GB (/ plus /usr, 1000MB + 2.5GB, see below). Notice /tmp and /var don't have a separate fs. The entire disk is 80GB.

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 2.8G 1018M 1.9G 36% /
tmpfs 252M 0 252M 0% /dev/shm
/dev/hda6 56G 27G 30G 48% /backup
/dev/hda5 12G 6.0G 5.3G 53% /home
/dev/hda3 4.7G 1.5G 3.2G 32% /usr
tmpfs 10M 748K 9.3M 8% /dev

Maybe its worth auditing the root partition and figuring out what's taking all this space. If you don't do that, you risk adding more 10GB and end up filling it up again. 10GB is a huge root fs.

Anyway, if you really wanna do this, google for "system rescue cd", and partimage. Partimage is a great software to clone and backup your partitions, and rescue cd is the perfect tool to run it. Running these tools from cd will keep you from mounting/unmounting problems.

Good luck!
 
Old 06-06-2005, 09:28 PM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Just an idea of a partitioning scheme that works for me:
Code:
mingdao@james:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             957M   84M  874M   9% /
/dev/sda1              95M   39M   56M  42% /boot
/dev/sda3             3.8G  2.2G  1.7G  57% /usr
/dev/sda5              58G   21G   38G  35% /home
/dev/sda6             957M   63M  895M   7% /var
/dev/sda7             4.7G  549M  4.2G  12% /opt
/dev/sda8             957M   45M  913M   5% /tmp
/dev/sda9             5.6G   33M  5.5G   1% /test
I didn't re-read the thread, but you can always backup
your data, maybe only ~/ and configs under /etc are what
you'd need, then repartition and reinstall. I had to do that
once because my / is small and I forgot to make an /opt so
when I built K3B if overfilled / and wouldn't install.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 04:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Mandrake 10.0 Laptop Won't Boot Past "Activating Swap Partitions"? Aaron Josephson Linux - Software 0 06-26-2004 08:02 PM
I deleted partitions on one hdd and now get "kernel panic..." on other. Any ideas? rose_bud4201 Slackware 18 06-12-2004 11:17 AM

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

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