LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
 
Search this Thread
Old 01-21-2008, 04:23 PM   #1
Adam555
Member
 
Registered: Nov 2003
Distribution: BackTrack2 (based on Slax)
Posts: 43

Rep: Reputation: 15
How to auto mount a 2nd hdd


Hi,

I have installed a 2nd hhd in my Ubuntu box but I don't know how to auto mount it - I know something do with etc\fstab ??

Any ideas anyone?
 
Old 01-21-2008, 04:51 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,825

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Now that you have the new disk installed, the next step is to partition and format t he disk.

Decide how many partitions you want. If you want more that four, my suggestion would
be to make one primary (for part of the disk) and one extended for the rest of the
disk. Them you can make up to 15 logical partitions inside the extended partition.

For this example, let's use two partitions; one for data files and one for music.

Remember, this is just an example.

Use your favorite partitioning tool to make two partitions of equal size to take up the entire disk. Then use the mkfs command to format both partitions.

Now make two mount points to mount the partitions. Something like 'mkdir /mnt/data'
for the data partition, and 'mkdir /mnt/music' for the music partition.

Now to edit /etc/fstab. Make two entries, one for each partition. So, if the new disk
is hdb, and the partitions are hdb1 and hdb2, your entries in fstab would be:
/dev/hdb1 /mnt/data ext2 (mount parameters) 1 2
/dev/hdb2 /mnt/music ext2 (mount paramters) 1 2

where (mount parambers) are like the parameters for other partitions in fstab, and 1 2
(if I remember correctly) refer to boot order.

The partitions should automount on next boot.
~
 
Old 01-22-2008, 02:56 AM   #3
roy_lt_69
Member
 
Registered: Aug 2006
Location: Vancouver, BC, Canada
Distribution: Slackware, Bodhi, Mepis, AntiX, Mint
Posts: 172

Rep: Reputation: 21
Quote:
Originally Posted by bigrigdriver
where (mount parambers) are like the parameters for other partitions in fstab, and 1 2
(if I remember correctly) refer to boot order.
I believe the "1 2" in the above post refers to fs that can be dumped (the 1) and the 2 refers to the order of fs checks, where the root fs should be 1 and others should be 2 or zero if no check to be performed.

Last edited by roy_lt_69; 01-22-2008 at 03:02 AM.
 
  


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
Set up rsync to mirror mount on Windows Server to mount point on 2nd internal drive MoMule Linux - Server 4 04-13-2007 09:34 PM
XP on 1 HDD,Linux on 2nd HDD,remove ,other won't launch Dark Templar Linux - Newbie 3 05-07-2006 11:03 AM
How to format & mount 2nd hdd after FedCor1 has been installed on 1st hdd? clay394 Fedora 1 05-18-2004 01:50 PM
autofs enabled in kernel but auto.mount and auto.master are NOT in /etc! Alybyzrp Linux - General 0 11-11-2003 12:26 PM
/boot duplicate (2nd hdd wont mount) dsiguy Linux - General 4 09-25-2003 01:46 PM


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