LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-24-2007, 05:28 PM   #1
Archer36
Member
 
Registered: Aug 2004
Posts: 56

Rep: Reputation: 15
Multiple disks?


Hey all, I picked up a few cheap 400gb SATA drives this past friday. One of them is going in my slack box. That box currently serves as my Web, IMAP, SMTP, and file server. Currently I have three disks in the system. Disk 1 is a pata 120gb, disk two is a pata 200gb, and disk three is the 400gb SATA.

Right now I am thinking about using disk one as the system drive. Disk two would be used to store my email files, as well as the apache root, and my shared files. I am unsure of the correct way to get this all done properly. One way I thought about doing it was mounting the drive in /mnt/hdb and placing all my files on the drive, and symbolically linking the folders to the /mnt. So /mnt/hdb/www would be linked by /www, would this be the proper thing to do?

Or should I try to partition the drive for each application? That way /dev/hdb1 would be mounted to /www then /dev/hdb2 would be mounted to /mail and /dev/hdb3 mounted to /files.

The fourth and largest disk would be used strictly for backups. I currently have no backup scripts running, I used to have a crude one I made, but I changed some things and have not brought it back online. My email is of utmost importance to me, as I do a lot of work though it, and all my receipts and stuff are there as well. I would like to have it somehow copy each email I receive to a different computer, so I could switch and not loose anything. However if thats not possible does anyone have any good backup scripts for email that I could run at least once a day if not more?

Thanks,
Archer36
 
Old 11-24-2007, 05:59 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
[One way I thought about doing it was mounting the drive in /mnt/hdb and placing all my files on the drive, and symbolically linking the folders to the /mnt. So /mnt/hdb/www would be linked by /www, would this be the proper thing to do?]No.

If I understand you (you are imprecise), you would create symbolic links in /mnt directory to directories in /mnt/hdb1 ?? The result is that browsing /mnt will show a lot of folders. In other words, /mnt/hdb1/www/ would be accessed from /mnt/www not /www

You create a mountpoint at /mnt/hdb1 and "bind" /mnt/hdb1/www (see mount man page) to a directory created at /www to get that effect.

Code:
mount --rbind /mnt/hdb1/www /www
However, creating directories off root is not good practice. It's better organization to keep user defined directories in user areas. How about:

/usr/share/www or /home/share/www, /home/share/files and /home/share/mail.
If you do not intend others to use them, then better ~/mail ~/files and so on.
You can create symbolic links in your home directory to these too... maybe. If your browser would normally use a hidden directory like .mail, turn that into a symbolic link to /usr/share/mail perhaps? You see the possibilities?
 
  


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
mount multiple dm-crypt disks NordiC Linux - Software 5 02-09-2007 05:50 AM
Cannot detect multiple firewire disks kev66 Linux - Hardware 0 02-08-2006 12:54 AM
How to browse across multiple disks in linux carjumble Linux - Newbie 3 12-24-2003 10:09 PM
Need an advice for: Multiple Disks&Multiple Penguins and a XP :) thesappho Linux - Newbie 1 12-15-2003 03:13 PM
Dealing with multiple disks - 8.1 ashw Slackware 1 01-28-2003 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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