Chinaunix首页 | 论坛 | 博客
  • 博客访问: 184294
  • 博文数量: 65
  • 博客积分: 2283
  • 博客等级: 大尉
  • 技术积分: 715
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-18 17:00
文章分类

全部博文(65)

文章存档

2011年(5)

2010年(20)

2009年(24)

2008年(16)

分类: LINUX

2009-01-07 13:53:44

以前没有在LINUX下用过容量大于2TB的盘。结果在顾客面丢人大了,汗哪!
以下是我的详细步聚:
 
[root@localhost ~]# fdisk -l
 
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         637     5116671   83  Linux
/dev/sda2             638        1912    10241437+  83  Linux
/dev/sda3            1913        2932     8193150   83  Linux
/dev/sda4            2933       30401   220644742+   5  Extended
/dev/sda5            2933        3187     2048256   82  Linux swap
/dev/sda6            3188        3442     2048256   83  Linux
/dev/sda7            3443        3633     1534176   83  Linux
/dev/sda8            3634       30401   215013928+  83  Linux
 
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
 
 
Disk /dev/sdb: 2999.9 GB, 2999996907520 bytes
255 heads, 63 sectors/track, 364728 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
[root@localhost ~]# 

[root@localhost ~]# parted /dev/sdb
GNU Parted 1.6.19
Copyright (C) 1998 - 2004 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) p                                                               
Disk geometry for /dev/sdb: 0.000-2861020.000 megabytes
Disk label type: gpt
Minor    Start       End     Filesystem  Name                  Flags
(parted) mkpart primary 0                                                
End? 2861020                                                             
(parted) p                                                               
Disk geometry for /dev/sdb: 0.000-2861020.000 megabytes
Disk label type: gpt
Minor    Start       End     Filesystem  Name                  Flags
1          0.017 2861019.983                                   
(parted)                                                                 
 
[root@localhost ~]# mkfs.ext3 /dev/sdb1
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
366215168 inodes, 732421111 blocks
36621055 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
22352 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
 
Writing inode tables: done                           
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
 
This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@localhost ~]#

[root@localhost ~]# fdisk -l
 
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         637     5116671   83  Linux
/dev/sda2             638        1912    10241437+  83  Linux
/dev/sda3            1913        2932     8193150   83  Linux
/dev/sda4            2933       30401   220644742+   5  Extended
/dev/sda5            2933        3187     2048256   82  Linux swap
/dev/sda6            3188        3442     2048256   83  Linux
/dev/sda7            3443        3633     1534176   83  Linux
/dev/sda8            3634       30401   215013928+  83  Linux
 
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
 
 
Disk /dev/sdb: 2999.9 GB, 2999996907520 bytes
255 heads, 63 sectors/track, 364728 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      267350  2147483647+  ee  EFI GPT
[root@localhost ~]#
[root@localhost ~]# mount -t ext3 /dev/sdb1 /data
[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             4.9G  253M  4.4G   6% /
none                 1005M     0 1005M   0% /dev/shm
/dev/sda8             202G   92M  192G   1% /diska
/dev/sda2             9.7G   55M  9.1G   1% /home
/dev/sda7             1.5G   35M  1.4G   3% /tmp
/dev/sda3             7.7G  2.0G  5.4G  28% /usr
/dev/sda6             2.0G  100M  1.8G   6% /var
/dev/sdb1             2.7T  106M  2.6T   1% /data
阅读(649) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~