Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.

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 -: backupAfter the partitions are formatted, type: mkdir /mnt/app_date
mkdir /mnt/backupEdit 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.

"At the prompt, type:
mke3fs /dev/hdb1 –L app_date
mke3fs /dev/hdb2 -: backup"That was supposed to be ...
mke3fs /dev/hdb2 -L backup

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 backupIf you need ext3, try mke2fs -j

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

![]() |
Problem installing Aztech...
|
RH linux installation tak...
|

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