LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-14-2010, 12:55 AM   #1
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
root partition is nearly full cannot upgrade fully, solutions?


Dear All,
I must have done something daft.I allowed 7GB for the root partition for a Debian 5 installation and it ran fine for a while but recently it reports it as nearly full and will not fully upgrade. Note that the cylinders overlap by 1 for the subsequent partitions but used the automatic partition tool on the cd. Is there a 'quick' fix or am I better waiting for Deb6 and doing a clean install?

Fred.
 
Old 10-14-2010, 01:15 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
Originally Posted by Fred Caro View Post
Dear All,
I must have done something daft.I allowed 7GB for the root partition for a Debian 5 installation and it ran fine for a while but recently it reports it as nearly full and will not fully upgrade. Note that the cylinders overlap by 1 for the subsequent partitions but used the automatic partition tool on the cd. Is there a 'quick' fix or am I better waiting for Deb6 and doing a clean install?

Fred.
Hello,

I've had some luck using GParted to increase/decrease partitions, also root partition. The only thing I came across is that when the partition you want to resize is not at the beginning of the disk you might encounter problems, like your system being unable to boot.

For example, if I had a root partition at the beginning of the disk, a data partition and a swap partition, first step I took was backup the two partitions (it's always handy to have a backup in case of failure ), delete the swap partition, move/resize the data partition so that space between root and data came available, resize root partition, recreate swap partition (if necessary) and reboot.

Kind regards,

Eric

EDIT: Of course, if you can wait for Debian 6, then you can perform a clean install, changing your partitioning scheme to your likings.

Last edited by EricTRA; 10-14-2010 at 01:17 AM.
 
Old 10-17-2010, 11:57 AM   #3
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Original Poster
Rep: Reputation: 166Reputation: 166
full root

Thanks, but... the positioning of patitions on Gparting (ed) is important perhaps one could do similar on fdisk?

Fred.
 
Old 10-17-2010, 12:25 PM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
Originally Posted by Fred Caro View Post
Thanks, but... the positioning of patitions on Gparting (ed) is important perhaps one could do similar on fdisk?

Fred.
Hi,

I'm sure there has to be a way to do it with fdisk also but I'm not aware of it. I'd have to look into it.

Kind regards,

Eric
 
Old 10-17-2010, 12:47 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
What is the output from
Code:
df -h
Depending on your partition scheme,(if you don't have a separate partition for /var) you can use
Code:
apt-get clean
apt-get clean removes everything except lock files from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. Thus, if you need to reinstall a package APT should retrieve it again.
Also you can delete the rotated logfiles, and remove old kernels.

Kind regards
 
Old 10-17-2010, 01:16 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,603
Blog Entries: 25

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Hi,

Backup first!

The OP could extend the storage by using another hdd. Let us look at '/home'. Create another partition on the second or whatever hdd. Copy the current '/home' content to that new partition on the second/whatever drive. Then mount the new partition contents for new '/home' on the mount point '/home'. If this works then the old '/home' could be deleted to allow the space back to '/'. The OP should use a LiveCD or InstallCD to boot the system. That way the single user mode would allow the management of the partitions and the fstab for the working system.

OP could extend the space for other directories or mounts.
 
Old 10-21-2010, 09:28 AM   #7
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Original Poster
Rep: Reputation: 166Reputation: 166
nearly full root

Guru,
I think the following is a bit of a mess but here is the out put for df -h

patti@debian5:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 327M 286M 25M 93% /
tmpfs 881M 0 881M 0% /lib/init/rw
udev 10M 748K 9.3M 8% /dev
tmpfs 881M 0 881M 0% /dev/shm
/dev/sda9 61G 451M 57G 1% /home
/dev/sda8 373M 11M 343M 3% /tmp
/dev/sda5 4.6G 2.9G 1.5G 66% /usr
/dev/sda6 2.8G 330M 2.3G 13% /var
patti@debian5:~$
 
Old 10-26-2010, 12:54 PM   #8
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Original Poster
Rep: Reputation: 166Reputation: 166
fullish root

Dear Sirs,
I tried the 'apt-get clean' option on a different install of Debian that was minus a 'var' partition and it worked fine, can anyone tell me why this is?

Fred.
 
Old 10-26-2010, 12:59 PM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Because apt-clean will delete the downloaded packages.
Since you have a separate /var partition, this will not affect your / partition.
BTW, did you solved your problem?


Kind regards
 
Old 10-27-2010, 04:17 AM   #10
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Original Poster
Rep: Reputation: 166Reputation: 166
var

repo,
thanks.Your answer does beg the question of why does having a 'var' partition mean that 'apt-get clean' does not affect the root partition?
yes I am more or less sorted and will look at what suggested.

Fred.
 
Old 10-27-2010, 05:15 AM   #11
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
'df' reports on disk partitions. If var is on a separate partition, it's not counted in the results for the root partition (/). Your /var will have been cleaned out (more space available there)

If you have some additional kernels in /boot. it might be time to clean them out to create space.

PS
Your root partition seems nowhere near the specified 7GB
 
  


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
root partition full redhawk1973 Ubuntu 8 03-10-2009 11:07 AM
root partition full laan97ac Mandriva 6 07-23-2007 02:09 PM
Root partition full juleslinux Red Hat 4 01-12-2006 11:00 AM
root ('/') partition is FULL inon^ Linux - Hardware 2 08-08-2005 02:19 PM
Root partition is full, what now? Joe Soap Linux - Newbie 30 03-31-2005 12:38 PM


All times are GMT -5. The time now is 05:40 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration