Red HatThis forum is for the discussion of Red Hat 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.
I am using RH9 with RTAI. just recently, I had a problem with " No space left on device" when I wanted to scopy some directories/files.
I then deleted some enough directories, wished to have solved the space problem, but it didn’t. It still says " No space left on device” when I try to scopy files from other machine.
Would some one there give me some advices? Please.
( I only used part of the HD space, not all of the 10GB, can I repartition to increase the space?
)
[root@xg-nist src]# parted
GNU Parted 1.6.3
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Using /dev/hda
Information: The operating system thinks the geometry on /dev/hda is 1229/255/63. Therefore, cylinder 1024 ends at 8032.499M.
(parted) print
Disk geometry for /dev/hda: 0.000-9641.953 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 101.975 primary ext3 boot
2 101.975 3898.586 primary ext3
3 3898.586 4149.602 primary linux-swap
Distribution: Red Hat Enterprise Linux v 2.1, v 3, v 4
Posts: 174
Rep:
My best guess in this situation is that you are going to have to remove some unwanted/un-needed files. Perhaps some logs files in /var/log or temp files in /tmp. I'm assuming that after you reboot, you have the same problem and no file cleaning is performed on the system. Another thing to consider is your log rotate, sometimes,log files fill up fast (depending on server use) and that can be a culprit.
How did it so full in the first place? Use:
cd /;du -h | less
to help detemine where the bulk of your data exists. If your disk is filling up quickly you may want to consider adding additional hard disks. You most likely won't be able to grow your filesystem unless you used LVM during installation. Otherwise, you should be able to add a disk and copy partitions over, like /home, to your new disk. This can be tricky, but I think I wrote something about this which I will have to dig up (because I've done this before).
Another thing...until you free up some space, I think you'll be stuck with some things, you won't be able to do much as you probably already know. The kernel will reserve enough space for the system to run, particularly RAM, but I believe there is some disk space reserved as well.
I had Drama (from AAO) software installed some time ago. When new release is available, I wanted to update, i.e install the new version.
during un-taring the drama.tar, I had the "No space" error.
Yesterday, I managed to delete one user, which gave me some space back.
mce@xg-nist />df -l
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 3826584 3618684 13516 100% /
/dev/hda1 101089 10807 85063 12% /boot
none 30760 0 30760 0% /dev/shm
am I able to delete some of them? Also, is there any command Tool to cleanup the space like Window's Disk Defragmenter?
"you should be able to add a disk and copy partitions over, like /home, to your new disk. This can be tricky, but I think I wrote something about this which I will have to dig up (because I've done this before)."
--- I would be grateful if you can pass this to me. I don't know if "parted command can be used after I login linux as root.
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 3826584 3618684 13516 100% /
Your one and only root partition is full. First thing you could do is examine rpm --query --all --last | less output and uninstall unneeded software packages with rpm --erase or redhat-config-packages. That would free up space. Another thing you can do is add another partition to your system and e.g. mount it on /usr and move everything from /usr onto that new partition. Check out du -h /usr to see how much space is occupied there.
I have the same problem: I cannot move two big iso files from my /tmp directory because this directory is on the / partition which uses 96% of it's allowed space.
I can't copy it anywhere, not even to the partitions which have enough free space.
Thus I would be interested in finding a howto on moving a subfolder from root like "opt" and/or "var" and/or "tmp" to a new partition on the hdb disk. But I don't think that it's as simple as: copy the subdir to the new partion and then adapt the /etc/fstab ?? or is it that simple?? Anybody who can help out?
I have the same problem: I cannot move two big iso files from my /tmp directory because this directory is on the / partition which uses 96% of it's allowed space.
I can't copy it anywhere, not even to the partitions which have enough free space.
Why not? /home and /usr/local have enough free space. Surely you can move the iso files to those partitions, e.g. /home/data.
Quote:
Thus I would be interested in finding a howto on moving a subfolder from root like "opt" and/or "var" and/or "tmp" to a new partition on the hdb disk. But I don't think that it's as simple as: copy the subdir to the new partion and then adapt the /etc/fstab ?? or is it that simple?? Anybody who can help out?
It's simple as that. You enter run-level 1 (or if possible, boot into rescue mode), then cp -a a sub directory onto a new partition, remove the files in the old sub dir, update fstab, mount the new partition, and you're done. What problems do you see?
ok, I could not cp or mv the two files to /mnt/hdb because I got that error "not enough space on disk" but I finally could move the files to /home/public/mkcdRec which gives me now the following situation:
But when I try to copy them from /home/public/mkcdRec to /mnt/hdb I got the following:
root@cthulhu:/home/public# cp -R /home/public/mkcdRec/ /mnt/hdb/
cp: writing `/mnt/hdb/mkcdRec/CDrec-23.12.2004_1': No space left on device
cp: writing `/mnt/hdb/mkcdRec/CDrec-23.12.2004_2': No space left on device
And he only copies about 300MB from the first file, the second is an empty file on the /mnt/hdb
=> Looks strange to me, I don't see why he won't do it.
And about the other part: I didn't know that by just moving the wanted folder to the hdb drive and then adapting the fstab file, that it would work ok. I tought that maybe some programs or scripts wouldn't be able to find those directories anymore or maybe something I don't know about... Anyway, I like it the easy way.
But I still don't see why the copy doesn't work here...
any clues?
[B]ok, I could not cp or mv the two files to /mnt/hdb because I got that error "not enough space on disk" but I finally could move the files to /home/public/mkcdRec which gives me now the following situation:
But when I try to copy them from /home/public/mkcdRec to /mnt/hdb I got the following:
root@cthulhu:/home/public# cp -R /home/public/mkcdRec/ /mnt/hdb/
cp: writing `/mnt/hdb/mkcdRec/CDrec-23.12.2004_1': No space left on device
cp: writing `/mnt/hdb/mkcdRec/CDrec-23.12.2004_2': No space left on device
And he only copies about 300MB from the first file, the second is an empty file on the /mnt/hdb
=> Looks strange to me, I don't see why he won't do it.
Look again in df output. /mnt/hdb is only around 380 MB in size.
Stupid that I missed that...
But it surprises me because hdb is one partition of 6.4GB I did a mkfs on it and assumed that it would enable the whole partition to be available.
Sure you do have parted installed. It's just not in ordinary users' search path, but in root's default search path. Seems you didn't log in as root (use su -l for that) or use full path /sbin/parted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.