Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-25-2008, 05:22 PM   #1
LQ Newbie
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
Mounting Drive

Hello to everyone. This is my first post and question.

I am running a LAMP server. I have an extra drive that I would like to back-up my database to. The drive is internal but I don't know how to see it to set up folders for back-ups. I am not using GUI and would like to know how to mount it to use.

I am using Webmin and phpmyadmin.

Old 11-25-2008, 05:37 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
First you set up a partition on the new drive using the fsdisk command.

Second you format the new partition using the mkfs command. Format the new partition to be the same filesystem type as the database is using.

Third you create a directory to use as a mount point using the mkdir command.

Fourth you mount the new partition on the new mount point using the mount command.


man fdisk
man mkfs
man mkdr
man mount

If you get tangled up in the details of a command then feel free to ask for more detailed instructions.

Steve Stites

P.S. Once you get this working you may want to put a line in /etc/fstab to automatically mount the backup partition every time you boot.

Last edited by jailbait; 11-25-2008 at 05:40 PM.
Old 11-25-2008, 09:26 PM   #3
Registered: Oct 2008
Posts: 100

Rep: Reputation: 15
If your extra drive is the same size as your main drive, then you can also setup a RAID, allowing to automatically mirror all data on the main disk.

the exact details will depend on your system's current disk layout, but you can start out by reading some RAID howto's and the mdadm manuals. It's not overly complicated, but it needs some carefull thinking. And you can test data recovery by replacing any of the two disks with a third one.

Last edited by Tinkster; 10-30-2010 at 06:11 PM.
Old 11-25-2008, 11:10 PM   #4
LQ Newbie
Registered: Nov 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Jailbait thanks for the reply. I have already formatted it with ext3. I guess I just need to make the mount point and mount it.

Salter the drive is bigger than the one I am using, can I still do the RAID? If yes will it reduce the size of the larger one to the smaller one?

Old 11-26-2008, 10:23 PM   #5
Dutch Master
Senior Member
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Yes, you can do RAID 1 (mirroring) with one disk larger then the other and yes, the larger disk is limited to the size of the smaller one. Ideally, you use 2 (or more) equal disks. Use your package manager to install the mdadm package (and dependencies), then use Webmin to setup and build the array. It's the quickest and safest way.


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
fedora 7: autofs is not mounting USB flash drive or DVD ROM drive Hewson Linux - General 3 05-12-2008 09:58 AM
partitioning drive and mounting old home on new drive Peter Shepard Ubuntu 3 10-22-2007 05:10 PM
Help on mounting Hard Disk Drive and CD-ROM drive in Dapper. ussr_1991 Ubuntu 2 08-19-2007 12:33 AM
Mounting split raid drive as normal drive via USB William_Syd Linux - Newbie 2 11-01-2006 08:07 PM
slackware 9.1 mounting problems (cd drive, cd writer drive, win partition (ntfs)) mr.gizm0 Slackware 8 05-11-2004 07:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration