Device Boot Start End Blocks > /dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 89 610470 82 Linux swap
/dev/sda3 90 1044 7671037+ 83 Linux
Disk /dev/sdb: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks > /dev/sdb1 1 261 2096451 5 Extended
/dev/sdb5 1 74 594342 83 Linux
/dev/sdb6 75 136 497983+ 83 Linux
/dev/sdb7 137 173 297171 83 Linux
/dev/sdb8 174 186 104391 83 Linux
/dev/sdb9 187 199 104391 83 Linux
/dev/sdb10 200 206 56196 83 Linux
/dev/sdb11 207 213 56196 83 Linux
/dev/sdb12 214 220 56196 83 Linux
/dev/sdb13 221 223 24066 83 Linux
Disk /dev/sdc: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks > /dev/sdc1 1 261 2096451 5 Extended
/dev/sdc5 1 7 56164+ 83 Linux
/dev/sdc6 8 20 104391 83 Linux
/dev/sdc7 21 27 56196 83 Linux
/dev/sdc8 28 30 24066 83 Linux
/dev/sdc9 31 33 24066 83 Linux
Disk /dev/sdd: 100 MB, 100663296 bytes 4 heads, 48 sectors/track, 1024 cylinders Units = cylinders of 192 * 512 = 98304 bytes
Disk /dev/sdd doesn't contain a valid partition table
[root@mylinux etc]#
[root@mylinux etc]# iscsi-device /dev/sdd
/dev/sdd is an iSCSI device
[root@mylinux etc]#
5.分区并创建文件系统
[root@mylinux etc]# fdisk /dev/sdd
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system > u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1024, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1024, default 1024):
Using default value 1024
Command (m for help): w
The partition table has been>
Calling ioctl() to re-read partition table.
Syncing disks.
[root@mylinux etc]# fdisk -l /dev/sdd
Disk /dev/sdd: 100 MB, 100663296 bytes
4 heads, 48 sectors/track, 1024 cylinders
Units = cylinders of 192 * 512 = 98304 bytes
Device Boot Start End Blocks > /dev/sdd1 1 1024 98280 83 Linux [root@mylinux etc]# mkfs -t ext3 /dev/sdd1
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block>
Fragment> 24576 inodes, 98280 blocks
4914 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
12 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729
This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@mylinux etc]#
6.读写测试 [root@mylinux etc]# mount /dev/sdd1 /openfiler
[root@mylinux etc]# df -h