LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 750|回复: 2

如何创建文件系统

[复制链接]
发表于 2005-10-9 16:27:57 | 显示全部楼层 |阅读模式
我想创建一个16M的ext2文件系统,该怎么去做呢??
发表于 2005-10-9 16:42:51 | 显示全部楼层
你可以用fdisk创建一个16M的分区,然后用mkfs.ext2来格式化这个分区
回复 支持 反对

使用道具 举报

发表于 2005-10-9 17:32:55 | 显示全部楼层
IDE:
#fdisk /dev/hda
Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add 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   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)
#mke2fs -j /dev/hda(n)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表