红联Linux门户
Linux帮助

求助:fdisk无法给移动硬盘分区

发布时间:2014-10-14 19:03:59来源:红联作者:lwjgcc2014
我想给500G的移动硬盘分区,已经分好两个区了,一个244.6G,另一个108G,我想给108G的重新分区,fdisk /dev/sdc2(回车),n(回车),p(回车),分区号默认为1,起始sector 默认,Last sector +5G,然后 w 保存退出的时候出问题了,问题如下:

The partition table has been altered!
Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: 无效的参数.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
我百度了一下,百度关键字:fdisk error 22,人家说:after fdisk之后,执行 kpartx -a /dev/sdc2,但是还不行,求大神帮忙,感激不尽!
文章评论

共有 4 条评论

  1. 邪长空 于 2014-11-02 12:40:08发表:

    我喜欢linux

  2. zkwhite1 于 2014-10-18 13:01:58发表:

    报到

  3. lwjgcc2014 于 2014-10-16 16:35:04发表:

    已经解决了,应该把 fdisk /dev/sdc2 改为 fdisk /dev/sdc 因为是对整个磁盘分区的,而sdc2只是该磁盘上的一个分区而已。玩linux的小伙伴们注意哦,哈哈。

  4. dequeri 于 2014-10-15 08:53:43发表:

    帮顶下