LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-11-2008, 05:25 AM   #1
madfed
Member
 
Registered: Jul 2008
Location: Kampala Uganda
Distribution: Fedora 7& SUSE 11.0
Posts: 48

Rep: Reputation: 15
Mounting a Hard drive to an already existing directory


Hi guys
I have a problem with my E-mail server, its clogged and i need to create more space on it without deleting the existing files, i was thinking of installing a new hard drive in it, my question is, is it possible to mount the new hard drive to an already existing directory lets say /srv or /home and if possible how do i go about it?

The email server is running SUSE10 currently.
 
Old 08-11-2008, 09:32 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,753

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by madfed View Post
Hi guys
I have a problem with my E-mail server, its clogged and i need to create more space on it without deleting the existing files, i was thinking of installing a new hard drive in it, my question is, is it possible to mount the new hard drive to an already existing directory lets say /srv or /home and if possible how do i go about it?

The email server is running SUSE10 currently.
Very possible, but tricky on a running server. The mount point (/srv or /home), is just a directory. You COULD mount your new drive under a new mount point, like /srv1 or /home1, and copy all the files/directories from one to another, like "cp -R /srv /srv1". Problem is, that anything that's open may not copy cleanly.

Best approach would be to take the server into single-user mode, shut down all the services you can, then do the copy as described above. Then modify your fstab file to mount the new drive as /srv or /home as you want, and the old drive as some other mount-point, then reboot the server.
 
Old 08-11-2008, 09:48 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
http://ubuntu.wordpress.com/2006/01/...own-partition/

http://www.gentoo.org/doc/en/article...tioning-p1.xml
 
Old 08-11-2008, 12:47 PM   #4
madfed
Member
 
Registered: Jul 2008
Location: Kampala Uganda
Distribution: Fedora 7& SUSE 11.0
Posts: 48

Original Poster
Rep: Reputation: 15
thanx alot guys, i really appreciate.
 
  


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
mounting existing drive with data martli SUSE / openSUSE 6 11-19-2005 07:48 PM
How to install a new hard drive on to existing system ksgill Linux - Newbie 3 02-07-2005 12:17 AM
Partitioning existing hard drive NickC Linux - Hardware 4 12-09-2003 04:44 AM
Mounting existing directory Mikhail_16 Linux - Newbie 2 11-17-2003 05:06 PM
Add a new hard drive to existing RH 7.2 guanyu Linux - Software 1 02-27-2002 10:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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