LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-02-2003, 08:14 PM   #1
brandog
LQ Newbie
 
Registered: Mar 2003
Location: Winnipeg
Distribution: RedHat 8.0
Posts: 28

Rep: Reputation: 15
Partitioning problem! Running low on space!


When I set up my redhat 8.0 I used the auto partition tool! I didnt realize at the time that I may run low on space on the 30 GB hard drive! now I'm almost at my limit and I need more space on /dev/hda7/var. Is there a way to allow more space in this partition without deleting any info in this section? Also What happends if I buy a new harddrive with 50GB and I transfer all the info from my 30 GB drive Will that give me more space?
 
Old 04-02-2003, 08:21 PM   #2
Neo22589
LQ Newbie
 
Registered: Mar 2003
Posts: 28

Rep: Reputation: 15
well yah if you do get another 50gb drive you will have more space on linux however....what do u mean? are you gonna add that hdd to linux so you have more storage space or are you gonna totally install linux on that drive and use the 30gb for something else? im not an expert but this is one of the main questions asked before anwsering this question in my opioion...so once you post that answer i am sure someone with much more knowledge about linux will help yah out from there...good luck.

-Neo
 
Old 04-02-2003, 08:23 PM   #3
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
/dev/hda7/var
you know what I think? i think you should check that partition and find out what's taking up all the space. I think that maybe your logs went nuts or maybe your logrotate is not doing its job.
 
Old 04-02-2003, 08:25 PM   #4
brandog
LQ Newbie
 
Registered: Mar 2003
Location: Winnipeg
Distribution: RedHat 8.0
Posts: 28

Original Poster
Rep: Reputation: 15
I will add a 50GB drive if I cant add more space to /dev/hda7/var
only! If there is a way to add more space to the above partitionwithout loosing any info I would rather do that! The 30GB would be removed!
 
Old 04-02-2003, 08:30 PM   #5
brandog
LQ Newbie
 
Registered: Mar 2003
Location: Winnipeg
Distribution: RedHat 8.0
Posts: 28

Original Poster
Rep: Reputation: 15
all my info is on /dev/hda7/var.
If I have it in /dev/hda2/usr , I cant access it from my I.P or domain name! I guess If I found out how to allow the /dev/hda2/usr to be the accessable space for visitors I wouldent have the problem! I also use mysql database! Is this stored on /dev/hda7/var aswell?
 
Old 04-02-2003, 08:49 PM   #6
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
all my info is on /dev/hda7/var.
/home is for that.

No, /usr is not supposed to be space for visitors. It's used to store stuff that everyone seems to use (ie. can share).

So, /var is usually what temporary(?) info for/on visitors is used. I still think you should run 'du' and figure out what's taking up the most space. then, you can figure out whether some space can be recovered, or if you really need more. If you need more, you can do either: add a 50GB drive as a new partition (ie. /var, etc), or transfer everything onto a bigger drive. But the question is, if 30GB's didnt help...will 20 extra solve your /var problem (if you have one) -- if you have real needs, maybe just get a seperate drive solely for /var.

PS. For transfering stuff you will want to read up on 'dd'
 
Old 04-02-2003, 08:57 PM   #7
brandog
LQ Newbie
 
Registered: Mar 2003
Location: Winnipeg
Distribution: RedHat 8.0
Posts: 28

Original Poster
Rep: Reputation: 15
I serve my site from the /var/ location! So I should transfer all the info ie: html files and scripts to /home ? and set the documentRoot in the httpd.conf to read "/home/www/html/"?? Do I also have to change all Script Alias too?
 
Old 04-02-2003, 09:01 PM   #8
brandog
LQ Newbie
 
Registered: Mar 2003
Location: Winnipeg
Distribution: RedHat 8.0
Posts: 28

Original Poster
Rep: Reputation: 15
All my serverd pages is whats taking up the space on /dev/hda7/var
 
Old 04-02-2003, 09:24 PM   #9
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
I'm not sure about the served pages. If you do it from /home, use a seperate directory (eg. /home/apache/), otherwise, you could probably use something like /usr/share/apache/, or I guess /var/... is all right. For security measures I would have hosted it from a seperate chroot'd partition. something like this may be helpful:

http://www.securityfocus.com/infocus/1356

But if you leave it at /var, and are running out of space, you can easily install another HD. As noted above, see 'man dd' and 'man fstab'.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
low disk space email warnings pyroman59 Linux - Software 3 10-19-2005 05:21 PM
Low disk space problem Maverick1182 Linux - Newbie 3 08-07-2005 05:14 AM
Low disk space, problem deleting files gtzpower Linux - Software 1 05-24-2005 10:57 PM
Running a bit low on space zxzx123 Linux - Newbie 3 12-25-2004 09:37 PM
Low disk space??? kevinlyfellow Linux - General 6 11-12-2003 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration