LinuxQuestions.org
Help answer threads with 0 replies.
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 06-22-2005, 09:31 AM   #1
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Rep: Reputation: 31
Adding a second hard drive


Tonight I will be installing a second IDE hard drive.
I am planning on using it to store all of my backup files.

After I install the hardware, how do I go about setting up Slack to mount this drive as it does the first one at startup?

Notes:

OS = Slackware Current 06-19-2005
Kernel = 2.6.11.11
HD = Two IDE Hard Drives

Hotplugging enabled & UDEV being enabled as well

Should be easy enough


Last edited by AxXium; 06-22-2005 at 09:32 AM.
 
Old 06-22-2005, 09:36 AM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Once it's installed, use fdisk (or cfdisk) to create a partition on it.
mkdir another directory under /mnt, say /mnt/storage, and add a line to /etc/fstab:
Quote:
/dev/hdb1 /mnt/storage ext3 defaults 1 2
Assuming there's only one partition and that it's formatted as ext3. Adjust as necessary :-)
 
Old 06-22-2005, 09:37 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
1. cfdisk /dev/hdXX <- where XX is your drive letter and number you just installed to setup the partitioning.

2. mke2fs -j /dev/hdXX <- command to format with journaling, if you use ext3, etc. Run the correct command for whatever type of filesystem you want, mine is only an example.

3. mkdir /directory_name <- the empty directory you want to mount this new drive to.

4. Edit fstab by adding a line like this:

Code:
/dev/hdXX     /mnt/point     fstype    defaults    1   2
/dev/hdXX <- New drive device name.
/mnt/point <- Your empty directory you created to mount to.
fstype <- In my example it would be ext3 cause I formatted it using mke2fs -j
defaults <- All the available options you can set for the mount, defaults is the default used in Slackware
1 2 <- To run fsck on the filesystem with the defaults set.
 
Old 06-22-2005, 09:46 AM   #4
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Original Poster
Rep: Reputation: 31
Wow!!

Thanks trickykid & rose_bud4201!!

I have to say.....


This is an amazing forum !!!
 
Old 06-22-2005, 10:15 AM   #5
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Original Poster
Rep: Reputation: 31
Two more questions......

1. I belive that ext3 has a file size limit of 2GB, is that correct?

2. To use ReiserFS instead I would....

mkreiserfs -j /dev/hdb1

or should I leave the "-j" out because ReiserFS is a journaling filesystem

that part I don't understand.
 
Old 06-22-2005, 01:42 PM   #6
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
the -j flag is to specify creation of an ext3 journal (ie, instead of an ext2 filesystem) - check the mke2fs man page for more.

I don't think there is a -j flag for mkreiserfs - like you said, it would be redundant for reiserfs....

Last edited by Genesee; 06-22-2005 at 01:44 PM.
 
Old 06-22-2005, 02:44 PM   #7
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
The only difference between ext2 and ext3 is the existance of a journal, which is why the command to format a partition with ext2 is "mke2fs" and the command to format a partition with ext3 is "mke2fs -j" - i.e. make me an ext2 filesystem, but give it a journal.
 
Old 06-22-2005, 03:49 PM   #8
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
According to this faq:
Quote:
Q: What is the largest possible size of an ext3 filesystem and of files on ext3?

Ext3 can support files up to 1TB. With a 2.4 kernel the filesystem size is limited by the maximal block device size, which is 2TB. In 2.6 the maximum (32-bit CPU) limit is of block devices is 16TB, but ext3 supports only up to 4TB.
 
Old 03-23-2006, 07:13 PM   #9
slack31337
LQ Newbie
 
Registered: Jan 2005
Location: kitchener Ontario
Distribution: slack-current
Posts: 19

Rep: Reputation: 0
Thanks for the info

I know this is an old post but it was exactly what I needed
 
Old 03-24-2006, 02:27 AM   #10
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Quote:
Originally Posted by slack31337
I know this is an old post but it was exactly what I needed
Congrats on solving the problem, and Thanks for posting back with the feedback, as this will be very helpful to other future readers of the thread who have the same question. As a mod, I would encourage everyone to post a followup if a particular thread has given you the info necessary to resolve a certain problem. It's what LQ is all about, and seeing that a particular solution worked is always helpful to others
 
  


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
Adding in a second hard drive Transition Slackware 3 10-25-2005 05:57 PM
Adding a Hard Drive texmansru47 Slackware 2 12-13-2004 11:19 AM
Adding a hard drive Mack_T Linux - Hardware 10 09-21-2003 11:46 AM
Adding a Hard drive jfisk Linux - General 3 08-08-2003 12:42 AM
adding hard drive jmarsh Linux - Hardware 3 02-27-2003 03:44 PM

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

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