Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hi all,
I ran out of disk space in root /
others have a lot of spaces
/ root nearly out
/home 50%
/windows/c 40%
/windows/d 10%
/windows/e 10%
... etc ...
How to have other space in / root
my machine has dual systems
1 - winxp
2 - linux opensuse 10.1
Is that your partition scheme? What does your /etc/fstab look like?
Some possible points of interest include:
/tmp - are there old temp files you don't need?
/var/log - how large are the system and message log files? They can get big fast if you don't adjust the logrotate config.
/usr/local/src and /usr/src - do you install any programs or drivers from source code, or download and compile new kernels? The source tree directories can be pretty big.
One way to fix this would be to put one or more of these directories on it's own partition or disk. There are several threads here with instructions for doing that.
most of the files you mentioned are small size except
/home = 1.5 g.b and /usr = 2.1 g.b
Could I moved them to e: drive for example, I did but it skipped some files.
Could you pls tell me how to move them correctly ?
... thanx
Mohammed Hammam
From your first post it appears /home is a separate partition already. If so don't move it. If you want to move /usr you should use an empty partition or disk. It looks like you want to move it to one that's already being used by Windows. I would be careful doing that (in fact, I just wouldn't do it) because it would be too easy to accidentally delete something from it while in Windows. And also when it mounts as /usr any Windows files on that partition would appear in /usr.
When you do identify an empty partition/disk to move it to, here's the procedure:
1) mount the partition (need to know device name, such as hda4)
2) format it for the appropriate filesystem (ext3, reiser ...)
NOTE: Windows will not read a partition formatted as ext3, reiser, etc and will readjust drive letters.
3) as root, COPY the contents of the directory to the mounted partition
4) as root, RENAME the original directory. (mv /usr /usr-old)
5) as root, mkdir /usr (a brand new empty one)
6) as root, edit /etc/fstab adding a line to mount the new partition to /usr following the line for / as a guide (need to know device name again)
7) mount the new partition to make sure it appears in /usr
Only after determining that the /usr directory is functioning properly should you delete the old.
I hope this helps. If you have any questions about the procedure ask before you try. You could accidentally delete the directory.
1st thank you for your help. 2nd Could you pls give me an example to how :
1 - mount partion
2 - format it in run mode
3 - copy
4 - by which editor
... feed me back pls
... thanx
Mohammed Hammam
I'd forgotten to mention before, the first mounting is just to check for anything that needs to be moved or backed up before formatting. A partition/disk is recommended to be unmounted when formatting.
imaginary partition=hda2:
1. mount /dev/hda2 /mnt/hda2
It may be necessary to specify the existing filesystem: vfat for fat32 or ntfs for NTFS
mount -t vfat /dev/hda2 /mnt/hda2
NOTE: An NTFS partition cannot be written to without a third party driver.
2. formatting as ext3: /sbin/mkfs.ext3 /dev/hda1
and wait for it to finish
3. cp -r /usr/* /mnt/hda2
4. I like Midnight Commander which is easy to use and can run from a console, but any text editor will do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.