Professional Documents
Culture Documents
Slave
Master
Slave
Note: SCSI disks are labeled /dev/sda, /dev/sdb, /dev/sdc etc... to represent the first, second, third,... SCSI hard drive devices but not the SCSI ID. SCSI hard drive partitions are represented by an additional number. i.e. First drive first partition, /dev/sda1, second partition, /dev/sda2,... Other SCSI devices such as tape backup are labeled /dev/st0 for the first, /dev/st1 for the second and so forth. See YoLinux SCSI tutorial for more info.
Start 1
End Blocks Id System 2654 20064208+ 5 Extended (Write and save partition table)
p Partition number (1-4): 1 First cylinder (1-4865, default 1): 1 Last cylinder or +size or +sizeM or +sizeK (1-4865, default 4865): 4865 Command (m for help): t Partition number (1-4): 1 Hex code (type L to list codes): 83 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [root]# mkfs -t ext3 /dev/hdb1 mke2fs 1.27 (8-Mar-2002) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 2508352 inodes, 5016052 blocks 250802 blocks (5.00%) reserved for the super user First data block=0 154 block groups 32768 blocks per group, 32768 fragments per group 16288 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 34 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. [root]# mkdir /opt2 [root]# mount -t ext3 /dev/hdb1 /opt2
Note: A computer system may have multiple drives with primary partitions but only one primary partition may be active on one drive only. The active primary partition is used for booting the system and is referenced by the Master Boot Record (MBR). Each hard drive may only have a maximum of four primary partitions. One may only boot an OS from a primary partition. Extended partitions allow one to place up to 24 partitions on a single drive. The above example shows the addition of a drive as one whole extended partition used to extend the storage space of the system. It was not created to hold additional operating systems as this would require a primary partition. Primary partitions can be used to extend the storage space of the system as well. It is not precluded from such a function but it will then limit you to four partitions for that hard drive.
File: /etc/fstab
Enter the drive into the fstab file so that it is recognized and mounted upon system boot. File:/etc/fstab Red Hat 8.0 LABEL=/ LABEL=/boot none none none /dev/hda2 /dev/hdb1 /dev/cdrom /dev/fd0 / /boot /dev/pts /proc /dev/shm swap /opt2 /mnt/cdrom /mnt/floppy ext3 defaults 11 ext3 defaults 12 devpts gid=5,mode=620 0 0 proc defaults 00 tmpfs defaults 00 swap defaults 00 ext3 defaults 12 iso9660 noauto,owner,kudzu,ro 0 0 auto noauto,owner,kudzu 0 0
The digits "1 2" refer to whether the mount point should be backed up when the dump command is used and disk integrity checks using fsck. The "1" states that it should be backed up when the dump command is issued (0=no). The "2" refers to the order in which "fsck" should check the mount points. The digit "1" identifies the root ("/") of the filesystem. All others should be "2". (0=no check)