下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、实验:使用fdisk创建简单磁盘分区试验:用法创建容易磁盘分区 试验要求: /dev/sdb8 100m /dev/sdb9 100m root fdisk -l /dev/sdb 查看当前磁盘分区状况 disk /dev/sdb: 21.5 gb, 21474836480 bytes 255 heads, 63 sectors/ack, 2610 cylinders units = cylinders of 16065 * 512 = 8225280 bytes sector size (logical/physical): 512 bytes / 512 bytes i/o size (m
2、inimum/optimal): 512 bytes / 512 bytes disk entifier: 0xe7a49488 device boot start end blocks id system /dev/sdb1 1 65 522081 83 linux /dev/sdb2 66 2610 20442712+ 5 extend /dev/sdb5 66 79 112423+ 8e linux lvm /dev/sdb6 80 93 112423+ fd linux raid autodetect /dev/sdb7 94 107 112423+ fd linux raid aut
3、odetect root fdisk /dev/sdb warning: dos-compatible mode is depreed. it s strongly recommended to switch off the mode (command c ) and change display units to sectors (command u ). command (m for help): m 显示全部可选项 command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibi
4、lity flag d delete a partition l list known partition types m print this menu n a 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 id u change display/entry units v veri
5、fy the partition table w table to disk and it x extra futionality (experts only) command (m for help): n command action l logical (5 or over) p primary partition (1-4) l 这里挑选l 表示要创建一个额外的规律分区 first cylinder (108-2610, default 108): using default value 108 last cylinder, +cylinders or +sizek,m,g (108-
6、2610, default 2610): +100m 这里指定新分区的大小是100m command (m for help): w 指定大小后,选w回车保存分区操作后退出 the partition table has been altered! root partprobe 用法此更新分区表,假如出错,需要重启来胜利更新分区表 root fdisk -l /dev/sdb 再次查看硬盘分区状况就可以看到新分区/dev/sdb8,但是此时还不行以用法,由于还没有指定文件系统格式,和挂载 disk /dev/sdb: 21.5 gb, 21474836480 bytes 255 heads,
7、63 sectors/track, 2610 cylinders units = cylinders of 16065 * 512 = 8225280 bytes sector size (logical/physical): 512 bytes / 512 bytes i/o size (minimum/optimal): 512 bytes / 512 bytes disk identifier: 0xe7a49488 device boot start end blocks id system /dev/sdb1 1 65 522081 83 linux /dev/sdb2 66 261
8、0 20442712+ 5 extended /dev/sdb5 66 79 112423+ 8e linux lvm /dev/sdb6 80 93 112423+ fd linux raid autodetect /dev/sdb7 94 107 112423+ fd linux raid autodetect /dev/sdb8 108 121 112423+ 83 linux 重复以上步骤,再新建另一个分区/dev/sdb9 root fdisk -l /dev/sdb disk /dev/sdb: 21.5 gb, 21474836480 bytes 255 heads, 63 se
9、ctors/track, 2610 cylinders units = cylinders of 16065 * 512 = 8225280 bytes sector size (logical/physical): 512 bytes / 512 bytes i/o size (minimum/optimal): 512 bytes / 512 bytes disk identifier: 0xe7a49488 device boot start end blocks id system /dev/sdb1 1 65 522081 83 linux /dev/sdb2 66 2610 204
10、42712+ 5 extended /dev/sdb5 66 79 112423+ 8e linux lvm /dev/sdb6 80 93 112423+ fd linux raid autodetect /dev/sdb7 94 107 112423+ fd linux raid autodetect /dev/sdb8 108 121 112423+ 83 linux /dev/sdb9 122 135 112423+ 83 linux 此时,/dev/sdb8 /dev/sdb9还无法用法,由于还没有指定文件系统类型,和挂载 root mount /dev/sdb8 /mnt 由于还没
11、有指定文件系统格式, 所以挂载会失败,无法识别 -t ext4 /dev/sdb8 用ext4格式格式化分区 1.41.12 (17-may-2010) filesystem label= os type: linux block size=1024 (log=0) fragment size=1024 (log=0) stride=0 blocks, stripe width=0 blocks 28112 inodes, 112420 blocks 5621 blocks (5.00%) reserved for the per user first data block=1 maximum
12、 filesystem blocks=67371008 14 block groups 8192 blocks per group, 8192 fragments per group 2008 inodes per group superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729 writing inode tables: done creating journal (4096 blocks): done writing superblocks and filesystem accounting infoation: done this filesystem will be automa
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年深圳市福田区荔园教育集团附属幼儿园公开招聘短期教师备考题库含答案详解
- 中国电建集团贵州工程有限公司2026届秋季招聘150人备考题库及完整答案详解一套
- 2025年新疆晨玖建设工程有限责任公司市场化选聘工作人员备考题库及1套完整答案详解
- 简约企业年终工作总结汇报模板
- 中国人民人寿保险股份有限公司重庆市分公司2026年度校园招聘备考题库及参考答案详解1套
- 2025年复旦大学附属华东医院《老年医学与保健》专职编辑招聘备考题库带答案详解
- 2025年重庆两江新区民心佳园小学校物业项目经理招聘备考题库及一套完整答案详解
- 2025年浙江省经济建设投资有限公司招聘备考题库完整答案详解
- 2025年关于公开招聘派遣至莆田市城厢区交通运输局非在编工作人员的备考题库及完整答案详解一套
- 2025年中南大学湘雅基础医学院非事业编制人员招聘备考题库及答案详解参考
- 2025年通信基础知识题库附答案
- 2026广西融资担保集团校园招聘10人历年真题汇编带答案解析
- 2025年gmp综合知识培训试题及答案
- 2025年质量手册宣贯培训试卷及答案
- 2025秋苏教版(2024)小学科学二年级第一学期期末质量检测卷附答案
- 黑龙江省哈尔滨市2025-2026学年九年级上学期期中语文试题(含答案及解析)
- 购物中心应急预案流程图
- 离婚协议(2026年版本)
- 安全员c证考试真题库及答案
- 舟山事业编考试题及答案
- 2025年中小学生趣味百科知识竞赛题库及答案
评论
0/150
提交评论