Wednesday, May 15, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1936  / 2 Years ago, wed, january 12, 2022, 11:07:27

This is the command:



sudo sfdisk -d /dev/sda | sfdisk --force /dev/sdb


It fails because permission is denied and the entire error message looks like this:



/dev/sdb: Permission denied
sfdisk: cannot open /dev/sdb read-write
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.


I already tried formatting the sdb drive with disk utility or even removing the format and leaving it as unallocated space but nothing succeeded.
How should I execute it?
Thank you :)



PS: Ubuntu 12.04 are used


More From » partitioning

 Answers
3

sudo sfdisk -d /dev/sda | sudo sfdisk --force /dev/sdb should fix the ´permission denied'. The 2nd part needs to be with the correct permissions too (the pipe cancels the previous sudo.



The comment about the warning: this warning should only be relevant if you had some old OS installed alongside ubuntu that cares about cylinder boundaries.


[#33867] Thursday, January 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
beateyra

Total Points: 499
Total Questions: 113
Total Answers: 125

Location: Falkland Islands
Member since Mon, Jul 13, 2020
4 Years ago
;