bj-207:~ # fdisk -l

Disk /dev/sda: 299.4 GB, 299439751168 bytes
255 heads, 63 sectors/track, 36404 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3917    31463271   83  Linux
/dev/sda2            3918        7834    31463302+  83  Linux
/dev/sda3            7835        8879     8393962+  82  Linux swap / Solaris
/dev/sda4            8880       36404   221094562+  83  Linux

Disk /dev/sdb: 9999.2 GB, 9×××20736000 bytes
255 heads, 63 sectors/track, 1215669 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

-------------------------------------------------------------------------------

bj-207:~ # parted /dev/sdb
GNU Parted 1.6.25.1
Copyright (C) 1998 - 2005 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.

Using /dev/sdb

(parted) mklabel gpt

(parted) mkpart primary 0 9999G                                          
(parted) print                                                           
Disk geometry for /dev/sdb: 0kB - 9999GB
Disk label type: gpt
Number  Start   End     Size    File system  Name                  Flags
1       17kB    9999GB  9999GB                                    
(parted) quit                                                            
Information: Don't forget to update /etc/fstab, if necessary.

------------------------------------------------------------------------------------------

bj-207:~ # mkfs.ext3 -F /dev/sdb1
mke2fs 1.38 (30-Jun-2005)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1220608000 inodes, 2441216000 blocks
36161454 blocks (1.48%) reserved for the super user
First data block=0
74500 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
        102400000, 214990848, 512000000, 550731776, 644972544, 1934917632

Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:
done

This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

------------------------------------------------------------------------------------------

bj-207:~ # vim /etc/fstab

添加一行挂载命令:

/dev/sdb1 /data1  ext3 defaults 0 0

--------------------------------------------------------------------------------------

bj-207:~ # mkdir /data1

bj-207:~ # mount -a

挂载完成