当前位置:   article > 正文

分区 读取参数错误_如何修复“警告:重新读取分区表失败,错误22:参数无效”在Linux上错误...

warning: re-reading the partition table failed with error 22: invalid argume
分区 读取参数错误

分区 读取参数错误

If you are getting the following error while trying to change the default fat32 partition on a new drive to another linux partition type, I might have the answer for you.

如果在尝试将新驱动器上的默认fat32分区更改为另一Linux分区类型时遇到以下错误,我可能会为您提供答案。

This is the error that you keep getting:

这是您不断得到的错误:

  1. WARNING: Re-reading the partition table failed with error 22: Invalid argument.
  2. The kernel still uses the old table.
  3. The new table will be used at the next reboot.
  4. Syncing disks.
  1. WARNING: Re-reading the partition table failed with error 22: Invalid argument.
  2. The kernel still uses the old table.
  3. The new table will be used at the next reboot.
  4. Syncing disks.

Here’s the way to fix it, noting that this will wipe your drive. Start up fdisk for the appropriate drive (may not be /dev/sde for you)

这是修复它的方法,请注意这会擦掉您的驱动器。 为适当的驱动器启动fdisk(对于您而言,它可能不是/ dev / sde)

fdisk /dev/sde

Then use the “o” option, which according to the menu is:

然后使用“ o”选项,根据菜单,该选项为:

   o   create a new empty DOS partition table

Now write the changes to disk with “w”, and then open up fdisk again. Now you can create your partition.

现在,使用“ w”将更改写入磁盘,然后再次打开fdisk。 现在,您可以创建分区了。

Don’t forget to actually create the filesystem for your new partition, which can be done with “mkfs”. You can also use the shortcut method like this:

不要忘了为新分区实际创建文件系统,这可以通过“ mkfs”完成。 您也可以使用以下快捷方式:

mkfs.reiserfs /dev/sde1
mkfs.reiserfs /dev/sde1

The nice thing is that the shortcut is easy to type with command line completion.

令人高兴的是,快捷方式很容易通过命令行完成键入。

翻译自: https://www.howtogeek.com/168158/how-to-fix-warning-re-reading-the-partition-table-failed-with-error-22-invalid-argument-error-on-linux/

分区 读取参数错误

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/384779
推荐阅读
相关标签
  

闽ICP备14008679号