手机版
你好,游客 登录 注册
背景:
阅读新闻

在Linux操作系统下增加新硬盘的方法

[日期:2007-07-01] 来源:Linux公社  作者:Linuxidc [字体:大 中 小]

13. 检查新硬盘创建信息

[root@web root]# fdisk -l


Disk /dev/hdc: 81.9 GB, 81964302336 bytes

255 heads, 63 sectors/track, 9964 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes


Device Boot Start End Blocks Id System

/dev/hdc1 2 5000 40154467+ 83 Linux

/dev/hdc2 5001 9964 39873330 83 Linux


Disk /dev/hda: 60.0 GB, 60022480896 bytes

255 heads, 63 sectors/track, 7297 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes


Device Boot Start End Blocks Id System

/dev/hda1 * 1 13 104391 83 Linux

/dev/hda2 14 7043 56468475 83 Linux

/dev/hda3 7044 7297 2040255 82 Linux swap


14. 建立新硬盘映射目录

[root@web root]# mkdir -pv /disk1

[root@web root]# mkdir -pv /disk2


15. 格式化新硬盘分区

[root@web root]# mkfs.ext3 /dev/hdc1

mke2fs 1.32 (09-Nov-2002)

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

5020064 inodes, 10038616 blocks

501930 blocks (5.00%) reserved for the super user

First data block=0

307 block groups

32768 blocks per group, 32768 fragments per group

16352 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

4096000, 7962624


Writing inode tables: done

Creating journal (8192 blocks): done

Writing superblocks and filesystem accounting information: done


This filesystem will be automatically checked every 28 mounts or

180 days, whichever comes first. Use tune2fs -c or -i to override.


[root@web root]# mkfs.ext3 /dev/hdc2

mke2fs 1.32 (09-Nov-2002)

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

4987360 inodes, 9968332 blocks

498416 blocks (5.00%) reserved for the super user

First data block=0

305 block groups

32768 blocks per group, 32768 fragments per group

16352 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

4096000, 7962624


Writing inode tables: done

Creating journal (8192 blocks): done

Writing superblocks and filesystem accounting information: done


This filesystem will be automatically checked every 29 mounts or

180 days, whichever comes first. Use tune2fs -c or -i to override.

linux
【内容导航】
第1页:在Linux操作系统下增加新硬盘的方法 第2页:在Linux操作系统下增加新硬盘的方法
第3页:在Linux操作系统下增加新硬盘的方法 第4页:在Linux操作系统下增加新硬盘的方法
第5页:在Linux操作系统下增加新硬盘的方法
本文评论   查看全部评论 (1)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款
第 1 楼
* cts 发表于 2010/6/21 3:36:27
如何解除LINUX崁入式系統硬碟被限制容量