Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-22-2005, 09:31 AM
|
#1
|
Zenwalk Admin
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258
Rep:
|
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.
|
|
|
06-22-2005, 09:36 AM
|
#2
|
Member
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929
Rep:
|
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 :-)
|
|
|
06-22-2005, 09:37 AM
|
#3
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
06-22-2005, 09:46 AM
|
#4
|
Zenwalk Admin
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258
Original Poster
Rep:
|
Wow!!
Thanks trickykid & rose_bud4201!!
I have to say.....
This is an amazing forum !!!
|
|
|
06-22-2005, 10:15 AM
|
#5
|
Zenwalk Admin
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258
Original Poster
Rep:
|
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.
|
|
|
06-22-2005, 01:42 PM
|
#6
|
Member
Registered: Dec 2002
Distribution: Slackware
Posts: 927
Rep:
|
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.
|
|
|
06-22-2005, 02:44 PM
|
#7
|
Member
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929
Rep:
|
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.
|
|
|
06-22-2005, 03:49 PM
|
#8
|
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625
Rep: 
|
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.
|
|
|
|
03-23-2006, 07:13 PM
|
#9
|
LQ Newbie
Registered: Jan 2005
Location: kitchener Ontario
Distribution: slack-current
Posts: 19
Rep:
|
Thanks for the info
I know this is an old post but it was exactly what I needed
|
|
|
03-24-2006, 02:27 AM
|
#10
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 12:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|