日期:2014-05-16  浏览次数:20723 次

linux 划分文件系统
linux版本为
引用
[root@hzmc ~]# uname -a
Linux hzmc 2.6.18-53.el5xen #1 SMP Mon Nov 12 03:26:12 EST 2007 i686 i686 i386 GNU/Linux

1、查看主机硬盘划分情况,我们需要在/dev/sdb划分一文件系统,大小在80G左右。
引用
[root@hzmc bin]# fdisk -l

Disk /dev/sda: 154.7 GB, 154750418432 bytes
255 heads, 63 sectors/track, 18814 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         255     2048256   83  Linux
/dev/sda2             256        5992    46082452+  83  Linux
/dev/sda3            5993        8542    20482875   83  Linux
/dev/sda4            8543       18814    82509840    5  Extended
/dev/sda5            8543       11092    20482843+  83  Linux
/dev/sda6           11093       12367    10241406   83  Linux
/dev/sda7           12368       13642    10241406   83  Linux
/dev/sda8           13643       14662     8193118+  83  Linux
/dev/sda9           14663       15044     3068383+  83  Linux
/dev/sda10          15045       15426     3068383+  83  Linux
/dev/sda11          15427       15808     3068383+  83  Linux
/dev/sda12          15809       16063     2048256   82  Linux swap / Solaris
/dev/sda13          16064       16254     1534176   83  Linux
/dev/sda14          16255       16267      104391   83  Linux
/dev/sda15          16268       18814    20458746   8e  Linux LVM

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        2433    19543041   83  Linux
/dev/sdb2  &n