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

分区 读取参数错误

分区 读取参数错误

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:

这是您不断得到的错误:

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
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/

分区 读取参数错误

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值