LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-19-2006, 01:05 PM   #1
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Rep: Reputation: 30
Cool disk space


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

... thanx
Mohammed Hammam
 
Old 06-19-2006, 02:20 PM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
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.
 
Old 06-19-2006, 04:05 PM   #3
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
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
 
Old 06-19-2006, 05:12 PM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
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.
 
Old 06-19-2006, 05:52 PM   #5
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
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
 
Old 06-19-2006, 06:24 PM   #6
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
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.
 
Old 06-19-2006, 06:45 PM   #7
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
imaginary partion = hdc7

linux-9tgg:/ # mount -t vfat /dev/hdc7 /mnt/hdc7
mount: mount point /mnt/hdc7 does not exist
linux-9tgg:/ #

I got the above error
I got this error in first step, pls correct
 
Old 06-26-2006, 07:52 AM   #8
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
Thank you dracolich
the issue has been resolved
... thanx
Mohammed Hammam
 
  


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
What to do when you are out of disk space? dracflamloc Linux - General 3 02-10-2006 04:07 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
Somehow all my disk space keeps getting used AbbZer0 Linux - Newbie 8 02-27-2004 01:47 AM
Disk space wastage 73 GB Hard disk rajgopalhg Linux - Hardware 2 10-18-2002 03:41 PM
Not Enough Disk Space mainyeti Linux - Software 2 07-30-2001 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 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