LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-15-2006, 05:14 PM   #1
mfilippa
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Rep: Reputation: 0
Small home server setup question


Hey guys,

I've reached a point where I'm feeling more comfortable with Debian. So far it has been the best distro to learn and use. It wasn't easy and required lots of reading, but now I feel I can get something usable (far better than windoze options).

So far I managed to install succesfully a base system (Sarge, 2.6, no X-Window, PII 128MB, 30GB), with the following partitioning scheme:

Code:
/hda1   /boot    250MB
/hda2   /        10GB
/hda3   /VG1     20GB  (LVM)
          /home  10GB
          /temp  1GB
          /swap  1GB
The problem is that I might install the following components:

- CVS
- Samba
- Software RAID

Initially I thought they would all go to /home, but found out that I was wrong. So what I want to do is move the required folders (/var, /usr, etc) out of / (root) to LVM so I can manage their size.

I am tempted to copy the contents of each directory to their new location, then edit /etc/fstab to reflect the new mount points and reboot. However, I do not know if this is possible or safe.

Is there any HOW-TO, guide or instructions on how to move mount points from one partition to another?

Thanks!
Mariano
 
Old 04-15-2006, 07:42 PM   #2
mfilippa
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I just realized that what I said is plain stupid. I cannot create duplicate directories in Linux...

So the real question is: is there any way to move a directory from one partition to another?
 
Old 04-15-2006, 08:14 PM   #3
kmoffat
Member
 
Registered: Jul 2003
Location: near Seattle
Distribution: Debian/Ubuntu/Suse
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
I'm not sure you need to. The programs you want to install are not large. A 10gig / partition seems adequate.

How about making a new directory (not the same name), copying the contents of the old one to the new one, renaming the old, then renaming the new to the old name, then reboot.
 
Old 04-15-2006, 09:03 PM   #4
mfilippa
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
It is not the program itself. If I need to create a repository for CVS in the /var directory, I need at least 50GB for my data (that is if CVS data is stored in /var... haven't reached that far reading).

I did a bit more of research and found that to move a partition, I would need to do this:

- create new partition with new mount name: e.g. /mnt/var
- mount /dev/hd?? /mnt/var
- copy everything from /var to /mnt/var
- umount /var
- umount /mnt/var
- mount /dev/hd?? /var

Does this work? do I need to edit /etc/fstab to make changes permanent?
 
Old 04-15-2006, 09:10 PM   #5
kmoffat
Member
 
Registered: Jul 2003
Location: near Seattle
Distribution: Debian/Ubuntu/Suse
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
Quote:
Originally Posted by mfilippa

Does this work? do I need to edit /etc/fstab to make changes permanent?
yes. (but I'm not a guru. I did create a large var partition in this manner to hold my website and logs, which were growing exponentially)
 
Old 04-15-2006, 09:11 PM   #6
kmoffat
Member
 
Registered: Jul 2003
Location: near Seattle
Distribution: Debian/Ubuntu/Suse
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
I added the following to my fstab to create a seperate /var/ and /home/ :

/dev/hdb5 /home reiserfs defaults 1 2
/dev/hdb7 /var reiserfs defaults 1 2
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
NIS Client/Server setup... mapping Home Directories trey85stang Linux - Networking 4 01-06-2011 05:29 AM
Home Network Setup Help Linux Server running Windoze XP clients + ADSL router BeaverusIV Linux - Networking 10 04-22-2005 04:07 PM
easy to setup internal mail server for small company nickcol Linux - Software 3 04-21-2005 06:24 PM
Small Business Server setup timmsy Linux - Enterprise 3 03-11-2005 01:47 PM
Newbie setup for home server MasterCephus Linux - Newbie 1 07-21-2004 09:36 AM


All times are GMT -5. The time now is 07:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration