首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

fdisk实际操作时,碰到的简单有关问题

2014-05-26 
fdisk实际操作时,碰到的简单问题linux下格式化磁盘----fdisk简单使用?这个文档已经说的很清楚了,但是实际

fdisk实际操作时,碰到的简单问题

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

?

?

这里需要提示,初学这初次操作者,其实很简单,认真的看英文提示,一般情况下肯定说的很清楚了。

?

没有那么难的,加油。

?

?

?

?

热点排行