LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-19-2004, 04:54 PM   #1
WH16
LQ Newbie
 
Registered: Jan 2004
Location: NC
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
Root out of space, and hard drive has none too :/


My root ran out of space, and I have no more space on my hard drive. Is there any way possible to resize partitions without losing data?

Code:
/dev/hd1/            /boot        32M    
/dev/hd2/            <swap>    512M  
/dev/hd3/            /               600M      100% used 
/dev/hd5/            /home       4.6G        24% used
/dev/hd6/            /tmp         512M        4% used
/dev/hd7/            /usr          9G           29% used
/dev/hd8/            /usr/local  4.6G       46% used
It's a 20 gig HD. I guess I can move some of that from the '/usr' but I haven't added the 3 gigs of mp3's I have on this machine yet :/ Is there a way to move space without losing anything?

Also, my has only used 8% of Inodes. Is that good, bad, or what? It seems like something ate that space up fast, but I haven't the faintest clue :/

I'm using Slackware 9.1
 
Old 01-19-2004, 05:00 PM   #2
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
You can't resize the partition if an OS is running on it. I would recommend you clean out your "/" partition. If all else falls, but all your essential information to a CD and resize your disk appropriatly. Inodes are spots that files can exist. 1 file = 1 Inode. 8% isn't bad at all.

If you want to try to find files of a certain size to delete, use:

find / -size +1024k -print

This will search your / partition for files over 1MB (1024k).

Good Luck.
 
Old 01-19-2004, 05:05 PM   #3
pgreenwood
LQ Newbie
 
Registered: Nov 2003
Location: Omaha, Nebraska USA
Distribution: Debian and derivatives; dabbled in others
Posts: 26

Rep: Reputation: 1
Re: Root out of space, and hard drive has none too :/

Quote:
Originally posted by WH16
Is there a way to move space without losing anything?
My tool of choice for resizing partitions is GNU parted.

http://www.gnu.org/software/parted/parted.html

There's also qparted which runs in x but I've had better results with console-based GNU parted.

Read the instructions packaged with the application and take your time.
 
Old 01-19-2004, 05:12 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
My suggestion would be to move /opt to /usr,
and just make a symlink in / :)

And clean-up /var and /tmp ;)


Cheers,
Tink

 
Old 01-19-2004, 05:24 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Another useful command for finding where space is being taken up is to run:is
du -hs `ls`

It will give you the total space taken up by each directory. Once you know where which directory is taking up the space you can either move the files, move the directory and symlink it like Tinkster suggested or perhaps move /tmp to your / partition and make what was your /tmp into whatever is taking up the space like /var
 
Old 01-19-2004, 05:28 PM   #6
WH16
LQ Newbie
 
Registered: Jan 2004
Location: NC
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by chrisk5527 Inodes are spots that files can exist. 1 file = 1 Inode. 8% isn't bad at all.
That's the problem. That's the percentage of my root. That's seems odd since I have 100% space of it used.

Btw, I checked for GNU Parted earlier this evening but it seems to be gone :/

And how do I 'symlink' ?

Last edited by WH16; 01-19-2004 at 05:32 PM.
 
Old 01-19-2004, 05:31 PM   #7
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
ls -s /parition /target/partition
 
Old 01-19-2004, 05:33 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You'd probably want to do
init 1
mv /opt /usr
ln -s /usr/opt /opt


Cheers,
Tink
 
Old 01-19-2004, 05:42 PM   #9
WH16
LQ Newbie
 
Registered: Jan 2004
Location: NC
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks, everyone
 
Old 01-19-2004, 05:54 PM   #10
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
Good Luck with everything man.
 
Old 01-19-2004, 05:57 PM   #11
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
Also, if you're using swaret to keep your slackware up-to-date, then you probably have a lot of already installed packages in /var/cache/swaret. Do a swaret --purge to get rid of 'em.
 
Old 01-19-2004, 06:32 PM   #12
WH16
LQ Newbie
 
Registered: Jan 2004
Location: NC
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: 0
The reason why I noticed my root was full was because I couldn't get on start my X server, KDE. I still can't. I ran 'xwmconfig' and switch my XServer to Flubbox. Everything works fine :/ So it has to be an issue with KDE. I do get a message saying a bunch of files in the 'KDE/Libs/' directory are too small or truncuated. What could be the cause of this?
 
Old 01-19-2004, 07:45 PM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Probably ... /opt in Slack is the place where
KDE lives ... if you ran out of space during
and install/upgrade this may well cause odd
phenomena ...


Cheers,
Tink
 
Old 01-20-2004, 05:47 AM   #14
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
heh, why is your /boot partition 32 megs??
it does'nt need to be that big, 2 maybe 3 megs at most.
 
Old 01-20-2004, 06:03 AM   #15
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
No no, 32 megs is ok, if you want to compile and try out other kernels.
 
  


Reply



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
40 Gb hard drive--How much space for XP? oomfoofoo Linux - Laptop and Netbook 6 08-10-2005 01:59 PM
Hard drive space token2004 Linux - Hardware 9 04-06-2005 10:31 AM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM
Hard drive space tied2 Linux - General 1 06-29-2002 06:16 PM
hard drive space, available bbenz3 Linux - General 4 03-22-2002 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:19 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
Open Source Consulting | Domain Registration