linux下格式化磁盘----fdisk简单使用
这个文档已经说的很清楚了,但是实际操作时,还是会碰到问题的。
the factory default fs is vfat and for obvious reasons I wanted to
format it to ext3 (leaving a 15GB fat partition for emergency).
I proceeded the following way:
- 'sudo fdisk /dev/sdc'
- 'd' to delete the only partition
- 'n' to create the two partitions mentioned above
- 'w' to write the changes to disk
and here I got the problem, this is the message:
--------------------------------------------------------------------------------------
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device
or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
这里提示我们要reboot
--------------------------------------------------------------------------------------
if I commit the 'w' command with the disk unmounted: he immediately
says "Calling ioctl()..." and then before saying "warning..." he
mounts the device.
anyway, if I call the 'p' command in fdisk I get the new partition
table:
-----------------------------------------------------------------------
如果没有reboot
>>mkfs -t ext3 -c /dev/hda8
提示如下:
mke2fs 1.35 (28-Feb-2004)
mkfs.ext3: Device size reported to be zero. Invalid partition specified, or
partition table wasn't reread after running fdisk, due to
a modified partition being busy and in use. You may need to reboot
to re-read your partition table.
这里就是没有读到有效的分配盘,也明确提示我们要重启了。
>>reboot
重启登陆后,再次执行
>>mkfs -t ext3 -c /dev/hda8
提示信息如下:
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
85440 inodes, 170682 blocks
8534 blocks (5.00%) reserved for the super user
First data block=0
6 block groups
32768 blocks per group, 32768 fragments per group
14240 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840
Checking for bad blocks (read-only test): done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
>>mount /dev/hda8 /tmp/hda8
>>df -Th
……省略
/dev/hda8 ext3 657M 17M 607M 3% /tmp/hda8
这里需要提示,初学这初次操作者,其实很简单,认真的看英文提示,一般情况下肯定说的很清楚了。
没有那么难的,加油。
分享到:
相关推荐
fdisk教程fdisk教程fdisk教程fdisk教程fdisk教程fdisk教程fdisk教程fdisk教程fdisk教程fdisk教程
提供linux下完整的fdisk功能,下载编译 install即可!
Fdisk摸拟学习程序,Fdisk摸拟程序,Fdisk程序,Fdisk练习软件,Fdisk,Fdisk练习工具
fdisk移植和编译,嵌入式下的编译过程!
分区命令FDISK图文详解
fdisk的详细介绍能帮助新手全面的理解和使用FDISK分区添加硬盘
学习linux下fdisk命令
本图解教程专门针对初学者而设计的!里面包含了使用Fdisk的全部基本图片,看完本书,你一定可以掌握Fdisk的使用方法。
redhat linux 下如何使用 fdisk 的详细说明,很好的技术参考文档。
Fdisk模拟学习程序(绿色).rar Fdisk模拟学习程序(绿色).rar Fdisk模拟学习程序(绿色).rar
windows的fdisk程序, 不会用fdisk的可以下下练练看啊,呵呵,不多说了。。。 硬盘分区完全模拟程序。 非常好,是模拟程序,不会真的分硬盘, 真正想学电脑的同志,我想新硬盘分区是一定要会的 同志们可别错过。更...
实例解说Linux中fdisk分区使用方法实例解说Linux中fdisk分区使用方法
FDISK使用介绍 对硬盘进行分区、格式化,是每个硬盘都必须经过的步骤。在这里我就来具体讲解一下怎样使用FDISK进行硬盘分区。 FDISK程序是DOS和Windows系统自带的分区软件,虽然其功能比不上有些软件,但用它分区...
fdisk_使用详解
实例解说Linux中fdisk分区使用方法
Fdisk模拟程序Fdisk模拟程序
gnu fdisk linux 源码.巴士得很!!!
linux下swap分区和Fdisk文档
Linux中fdisk分区使用方法
linux下fdisk命令详解.pdflinux下fdisk命令详解.pdf