I know this may possibly a duplicate but i tried a lot of things to solve this error. There are already two partition and i am trying to create third one
but it shows the following error.
Even i formatted pendrive completely still it shows this error. it happens on ubuntu 14.10 . How to solve it?
The most likely reason for the error message is that there is a directory called
/dev/sdb1
preventing the creation of the device node for accessing that partition.I'm guessing that in the past you accidently created this directory as a mount point under
/dev
. You can check if you have with:If the first character is
d
, you did, and you need to delete or move this directory elsewhere.If you get the error message:
then something is still mounted there. In which case
mount | grep sdb1
to find out what it is, then try again with:It will now be able to create the device file when you next reconnect your flash drive, and should be able to create and format the first partition on that drive.
This is how i solved my problem: