Failed to add partition ‘New Partition’ to device

So i've been trying to partition my extra harddrives through the partition manager but i keep getting this error

Create a new partition (238.47 GiB, ext4) on ‘/dev/sdb’
Job: Create new partition on device ‘/dev/sdb’
Command: sfdisk --force --append /dev/sdb

Failed to add partition ‘New Partition’ to device ‘/dev/sdb’.
Checking that no-one is using this disk right now ... OK

Disk /dev/sdb: 238.49 GiB, 256060514304 bytes, 500118192 sectors
Disk model: Samsung SSD 850 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc7d2cf8d

Old situation:

/dev/sdb2: Start sector 0 out of range.
Failed to add #2 partition: Numerical result out of range

Failed to add partition ‘New Partition’ to device ‘/dev/sdb’.

Create new partition on device ‘/dev/sdb’: Error
Create a new partition (238.47 GiB, ext4) on ‘/dev/sdb’: Error

now is this because i didn't add free space?

use Gparted

thanks and yes i think it was cause i didn't add 1mb of free space but gparted is useful cause it automatically does it :+1:

This maybe a bug or improper settings of the utility.
I suggest the use of GParted, which is known to be more reliable.
Or use sfdisk in commandline (since it seems to be used internally) but using different parameters, like --lock, NOT --force and test (adding -n|--no-act).

Log any messages to find the real issue.

i don't know still new to linux but my drives are locked after i formatted? It says i don't have permission but i'm signed in as admin any fix?

It depends what you are trying to do.
Common issue is to try to edit a partition on a disk that has at least one partition already mounted.

Read your utility messages, they usually tell you what's the problem.

well i'm trying to add a folder to my ssd so i can download m y steam games to it but it says it's locked and only has root permission


sudo chown jacob:jacob /run/media/jacob/SSD

in a terminal and check afterwards to see if you will have write access to the partition.

1 Like

oh thanks that worked gave me write permissions, what exactly does that command do? give ch root perms?

That line changes the ownrship of the mountpoint from root to your user.

For more info: man chown in terminal

oh makes sense thanks for the help

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by