Linux users have been reporting an error on their systems when they try to re-read the partition table. The error is typically accompanied by the message “Invalid argument.” The problem seems to be with a recent kernel update, as many users have reported that the error crops up after installing or upgrading to version 3.18 of the Linux kernel. While there is no definitive solution yet, some users have found that disabling journaling (a feature of the Linux kernel) resolves the issue. Others are reporting that reverting back to an older version of the Linux kernel fixes the problem. Whatever the solution, it seems that many Linux users are experiencing some sort of issue with their partition table and are looking for a way to fix it. ..


This is the error that you keep getting:

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)

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

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

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:

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