Computing.Net > Forums > Linux > Install 2nd hard drive

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Install 2nd hard drive

Reply to Message Icon

Name: thughes7557
Date: February 13, 2003 at 08:22:47 Pacific
OS: RedHat 7.1
CPU/Ram: 733Hz/128Mb
Comment:

I'm a novice to Linux, what that said I need to install a second hard drive to my system (RedHat 7.1). After physically installing the hard drive what must I do to be able to create two filesystems called /app_data and /backup (at 40GBytes apiece) on this new disk. I know I need to partition it, now sure how, and format it, again not sure how. Finally I need to place the filesystems in /etc/fstab.



Sponsored Link
Ads by Google

Response Number 1
Name: givetomeabreak
Date: February 13, 2003 at 10:36:01 Pacific
Reply:

Enter the fdisk utility with the command: Fdisk /dev/hdb

N (create a new partition)

P (primary partition) If you want an extended partition, select E

Partition number (1-4) 1

First cylinder ~ (default)
Last cylinder ~ (imput a number to indicate the size) +3000M

-t (linux partitions are 83 by default and you normally don't need to use this option)

Repeat this to create another partition.

w (write the changes to the partition table)

At the prompt, type: fdisk –l to display the partition information.

You will probably need to reboot before formatting the partitions. After you reboot, open the terminal window....

At the prompt, type:
mke3fs /dev/hdb1 –L app_date
mke3fs /dev/hdb2 -: backup

After the partitions are formatted, type: mkdir /mnt/app_date
mkdir /mnt/backup

Edit the file /etc/fstab to include a line like these examples....


Three examples....

(replace labelname with the name of your new partition)
(type id username to get the uid and gid information.

1. /dev/hdb1 /mnt/labelname ext3 gid=500,umask=002 0 0

2. /dev/hdb1 /mnt/labelname ext3 gid=500,umask=002,exec,dev,suid,rw 1 1

3. /dev/hdb1 /mnt/labelname ext3 uid=500,gid=500,umask=002,exec,dev,suid,rw 1 1

That should get you started.


0

Response Number 2
Name: givetomeabreak
Date: February 13, 2003 at 10:38:22 Pacific
Reply:

"At the prompt, type:
mke3fs /dev/hdb1 –L app_date
mke3fs /dev/hdb2 -: backup"

That was supposed to be ...
mke3fs /dev/hdb2 -L backup


0

Response Number 3
Name: thughes7557
Date: February 13, 2003 at 10:48:36 Pacific
Reply:

BTW I'm installing an IDE 80-Gb hard drive.


0

Response Number 4
Name: givetomeabreak
Date: February 13, 2003 at 10:55:12 Pacific
Reply:

I haven't had any problems with my 80 and 20 gig drives.

Also, the statement to format should read...

mke2fs /dev/hdb1 –L app_date
mke2fs /dev/hdb2 -L backup

If you need ext3, try mke2fs -j



0

Response Number 5
Name: thughes7557
Date: February 13, 2003 at 11:39:21 Pacific
Reply:

I'll use mke2fs to create the filesystems. But I'm puzzled with why I need to create /mnt/backup and /mnt/app_data, what will they be used for? Also, I looked at /etc/fstab and it has an entry for my /oracle filesystem as foll.ows:

LABEL=/oracle /oracle ext2 defaults 1 2

Based on this would my new entries be something like this:

LABEL=/backup /oracle ext2 defaults 1 2
LABEL=/app_data /oracle ext2 defaults 1 2


0

Related Posts

See More



Response Number 6
Name: thughes7557
Date: February 13, 2003 at 13:40:22 Pacific
Reply:

My bad, that should have read LABEL=/backup /backup ext2 defaults 1 2.



0

Sponsored Link
Ads by Google
Reply to Message Icon

Problem installing Aztech... RH linux installation tak...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Install 2nd hard drive

Help Installing 2nd Hard Drive www.computing.net/answers/linux/help-installing-2nd-hard-drive/18633.html

Install 2nd hard drive Redhat 8.0 www.computing.net/answers/linux/install-2nd-hard-drive-redhat-80/18572.html

Installing Suse on 2nd hard drive www.computing.net/answers/linux/installing-suse-on-2nd-hard-drive/12940.html