LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Root out of space, and hard drive has none too :/ (https://www.linuxquestions.org/questions/linux-newbie-8/root-out-of-space-and-hard-drive-has-none-too-136484/)

WH16 01-19-2004 04:54 PM

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 :/ :scratch:

I'm using Slackware 9.1

chrisk5527 01-19-2004 05:00 PM

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.

pgreenwood 01-19-2004 05:05 PM

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.

Tinkster 01-19-2004 05:12 PM

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

And clean-up /var and /tmp ;)


Cheers,
Tink


david_ross 01-19-2004 05:24 PM

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

WH16 01-19-2004 05:28 PM

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' ?

chrisk5527 01-19-2004 05:31 PM

ls -s /parition /target/partition

Tinkster 01-19-2004 05:33 PM

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


Cheers,
Tink

WH16 01-19-2004 05:42 PM

Thanks, everyone ;)

chrisk5527 01-19-2004 05:54 PM

Good Luck with everything man.

Bebo 01-19-2004 05:57 PM

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.

WH16 01-19-2004 06:32 PM

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?

Tinkster 01-19-2004 07:45 PM

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

320mb 01-20-2004 05:47 AM

heh, why is your /boot partition 32 megs??
it does'nt need to be that big, 2 maybe 3 megs at most.

Bebo 01-20-2004 06:03 AM

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


All times are GMT -5. The time now is 04:07 AM.