Article 55XDT External HDD: couldn't open device. Permission denied.

External HDD: couldn't open device. Permission denied.

by
oldngray
from LinuxQuestions.org on (#55XDT)
I have an old LaCie 2TB Thunderbolt2 device which had been used by someone else in a RAID configuration. The original 2.5"HDD was removed from the RAID, partitioned and reformatted as HFS and working well in the LaCie enclosure. I removed it and replaced the HDD with a 2.5" SSD which is working well.

I am trying to connect the removed HDD as an external drive to my Linux laptop for backups etc. I have been trying (with my limited knowledge of Linux) to partition it and reformat it to Ext4 but the format continually fails.

Terminal readout from relative portion of parted command:

donmac@donmac-Inspiron-linux:~$ sudo parted -l
[sudo] password for donmac:
Model: ST2000LM 003 HN-M201RAD (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 2000GB 2000GB primary
------
Terminal readout from fdisk command:

donmac@donmac-Inspiron-linux:~$ fdisk /dev/sdb

Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command. w

fdisk: cannot open /dev/sdb: Permission denied
------
An internet page on formatting suggested using "blockdev".
Readout of suggested blockdev command:

donmac@donmac-Inspiron-linux:~$ sudo blockdev -v --setrw /dev/sdb
[sudo] password for donmac:
blockdev: cannot open /dev/sdb: No such file or directory
------
Every attempt to open the device indicates that it cannot be opened. Can anyone assist me with a command or series of commands that will enable the disk to be erased, partitioned and formatted as ext4?

Thanks.latest?d=yIl2AUoC8zA latest?i=ilyA4iCJXAU:OgOdXMykFVo:F7zBnMy latest?i=ilyA4iCJXAU:OgOdXMykFVo:V_sGLiP latest?d=qj6IDK7rITs latest?i=ilyA4iCJXAU:OgOdXMykFVo:gIN9vFwilyA4iCJXAU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments