LinuxQuestions.org
Help answer threads with 0 replies.
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 02-03-2006, 04:52 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
how to redefine the mount table?


Hi!
By typing df -h, I just saw that the / is full.
Code:
df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0t0d0s0      2.4G   2.4G     0K   100%    /
/proc                    0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
fd                       0K     0K     0K     0%    /dev/fd
swap                   275M   176K   275M     1%    /var/run
swap                   275M     0K   275M     0%    /tmp
/dev/dsk/c0t0d0s4      583M   465M    59M    89%    /home
/dev/dsk/c0t0d0s3      379M   272M    68M    80%    /var_old
/dev/md/dsk/d0          28G    27G   796M    98%    /servers
How can I redifine the mounting points so that there is more room for the /? Can I just give the directories under / another mounting point?
My problem is that everything seems to be quite full.

I just became this server and I have to transfer this data to another server. Doing scp for big amount (5GB) of data give error messages. I thought that It might be because the system needs a bit space in order to execute the command and that / being full could be the reason why I get error trying to scp big directories.


Thanks for any suggestion

Last edited by xpucto; 02-03-2006 at 04:54 AM.
 
Old 02-03-2006, 05:32 AM   #2
heleen
LQ Newbie
 
Registered: Apr 2005
Location: Prague
Distribution: ubuntu/debian
Posts: 6

Rep: Reputation: 0
hi there
right: everything seems to be quite full
well.. have you ever tried removing something from your / ? uninstalling some unused packages? deleting something? you certainly need more space on your comp. maybe you should re-partition your disk..
 
Old 02-03-2006, 05:55 AM   #3
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by heleen
hi there
right: everything seems to be quite full
well.. have you ever tried removing something from your / ? uninstalling some unused packages? deleting something? you certainly need more space on your comp. maybe you should re-partition your disk..
Yes. I first thought that there are only system files under / but I finally found a few stuff that I could delete. I just have to inquire myself if I'm allowed to since I'm not the author of all those files...
 
Old 02-04-2006, 01:00 PM   #4
drakebasher
Member
 
Registered: Aug 2004
Location: Proprio Qui
Distribution: Debian
Posts: 85

Rep: Reputation: 16
You won't be able to do anything unless you have root permission. If you have more space on another partition, you can move some of your files there. I'd suggest you first try to find out what's using all of the space. Check first for log files in /var. Unchecked, they can get big and some of them serve no purpose if you aren't having problems. If you have lots of applications, then /usr can get very big. If you have root permissions, you can move /usr like so:

1) copy ('cp -av') all files from present /usr directory to new partition
2) delete all files from present /usr directory
3) edit /etc/fstab to add entry for mounting the new /usr partition to the /usr mount point
4) run 'mount /usr'

This needs to be done in text mode, so you aren't actually running any of the programs in /usr while you are moving them.

Another point: if you try to copy an entire system while it is running, you will get lots of error messages and you will copy lots of stuff you shouldn't. Many files are dynamic: they don't exist when you shut down the system. /proc/ is one example. If you want to just copy the entire system to another hard drive, you may want to do that with a LiveCD or from a temporary minimal Linux.

Last edited by drakebasher; 02-04-2006 at 01:06 PM.
 
Old 02-07-2006, 08:35 AM   #5
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
Finally I just mv /usr/local to /servers

and made a symbolic link.

Is it an "acceptable" way of doing?
What is actually the difference between making symbolic links and redefining the mounting table?
 
Old 02-11-2006, 10:20 AM   #6
drakebasher
Member
 
Registered: Aug 2004
Location: Proprio Qui
Distribution: Debian
Posts: 85

Rep: Reputation: 16
Quote:
Originally Posted by xpucto
Finally I just mv /usr/local to /servers

and made a symbolic link.

Is it an "acceptable" way of doing?
What is actually the difference between making symbolic links and redefining the mounting table?
It's an ugly fix, but I think it will be okay for now. But if /usr/local grows much, you may have a problem again since the /servers partition is pretty full. I think the only "difference" between the symbolic link and the normal way is that it's not intuitive: that is, it may be a problem for the administrator, but probably not for Linux.
 
  


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
Linux, usb-storage... how to mount them and see their partition table Saradas Programming 5 11-12-2008 08:09 AM
redefine $PATH? jcai Linux - General 1 11-04-2004 01:22 PM
Help please to mount windows partitions - device-mapper: error adding target to table Indian_bee Linux - General 3 07-06-2004 07:12 PM
How to import MS ACCESS Table including OLE filed into the MySQL Table ? myunicom Linux - General 1 11-28-2003 11:30 AM
How do i redefine the linux partions? Sabastian Linux - Software 3 06-18-2003 06:18 PM

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

All times are GMT -5. The time now is 08:02 PM.

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