Specifications
Next, assign the system partition ID before you write the information to the partition
table on the disk and exiti the fdisk program. Figure 49 shows the assignment of the
of the Linux system ID to the partition (hex code 83).
Creating and using file systems on ESS
After you partition the disk as described in “Partitioning ESS disks” on page 87, the
next step is to create a file system. Figure 50 on page 89 shows an example of the
EXT2 Linux file system (which is non journaled) using the mke2fs or mkfs
command.
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-953, default 1): Enter
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-953, default 953): Enter
Using default value 953
Command (m for help): p
Disk /dev/sdb: 64 heads, 32 sectors, 953 cylinders
Units = cylinders of 2048 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 953 975856 83 Linux
Figure 48. Example of primary partition on the disk /dev/sdb
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.
SCSI device sdb: hdwr sector= 512 bytes. Sectors= 1953152 [953 MB] [1.0 GB]
sdb: sdb1
SCSI device sdb: hdwr sector= 512 bytes. Sectors= 1953152 [953 MB] [1.0 GB]
sdb: sdb1
WARNING: If you have created or modified any DOS 6.x partitions, please see the
fdisk manual page for additionalinformation.
Syncing disks.
[root@yahoo /data]#
Figure 49. Example of assignment of Linux system ID to the partition
88 ESS Host Systems Attachment Guide
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|