External SSD don't work on Linux, but work with Windows. Please help me!

StepWork

New Member
Joined
May 22, 2022
Messages
8
Reaction score
0
Credits
128
Hello I’ve a External SSD, it don't work on Linux, but work with Windows.

It’s a Portable SSD (Moblle SDUD STATA) 16TG USB 3.1 Typ-C connected to USB 3.0 Typ-A

At Gnome Disks and GParted I see it, but I can’t format.
Error: “device udisks-error-quark, 0” and “can't open input/output error”

I have tried it with Debian 11 and Linuxmint 20.2 on different PC’s, no way!
And I have test it on Windows10 (input/output, format) = all works fine.

Any info:
at Disks
Model: General SSD (5.00)
Size: 17 TB (16.777.216.000.000 bytes)

at GParted
File System: Unallocated Size: 15.26 TiB
Partition
Route: Unallocated
Attention: /dev/sdb: unrecognised disk label

-----
root@mypc01:~# cat /proc/partitions
major minor #blocks name

8 0 250059096 sda
8 1 623616 sda1
8 2 624640 sda2
8 3 248809472 sda3
254 0 46874624 dm-0
254 1 34177024 dm-1
254 2 24412160 dm-2
254 3 23437312 dm-3
254 4 31248384 dm-4
254 5 88657920 dm-5
8 16 16384000000 sdb

root@mypc01:~# fdisk -l /dev/sdb
bash: fdisk: orden no encontrada
root@SW-PC-01:~# sudo fdisk -l /dev/sdb
Disco /dev/sdb: 15,26 TiB, 16777216000000 bytes, 4096000000 sectores
Modelo de disco: SSD
Unidades: sectores de 1 * 4096 = 4096 bytes
Tamaño de sector (lógico/físico): 4096 bytes / 4096 bytes
Tamaño de E/S (mínimo/óptimo): 4096 bytes / 4096 bytes
Tipo de etiqueta de disco: dos
Identificador del disco: 0x00000000

Disposit. Inicio Comienzo Final Sectores Tamaño Id Tipo
/dev/sdb1 4294967295 8589934589 4294967295 16T ff BBT
/dev/sdb2 4294967295 8589934589 4294967295 16T ff BBT
/dev/sdb3 4294967295 8589934589 4294967295 16T ff BBT
/dev/sdb4 4294967295 6769896701 2474929407 9,2T ff BBT

root@mypc 01:~# sudo fdisk /dev/sdb

Bienvenido a fdisk (util-linux 2.36.1).
Los cambios solo permanecerán en la memoria, hasta que decida escribirlos.
Tenga cuidado antes de utilizar la orden de escritura.

fdisk: no se puede abrir /dev/sdb: Error de entrada/salida
root@mypc01:~#

----

CAN SOMEONE HELP ME WITH THIS?

OR ARE THERE DISKS THAT DO NOT WORK WITH LINUX?
 


What format is this external drive.
Are you running Gparted as the root user.

In Linux are you the owner of the exteternal drive,
have you write access, ntfs properties do not carry over
to Linux from ntfs partitioned drives.

Check what user and group your drive comes up under.
stat -c "%U %G" /path/to/fileOrDrive
You will see from Gparted where the drive is mounted and other info.
lsusb will show drive information too.

It looks from what you posted /sdb has either no device lable or
it can't be recognised, use Gparted to give the device a label.

Here is how to give ownership to you, and change permissions
on a drive Labelled USBHDD
sudo chown -R theowner:thegroup /yourmountpoint /USBHDD
sudo chmod -R 777 /yourmountpoint/USBHDD

NTFS does not support Linux ownership or permissions, that's why chown or chmod don't work on an ntfs drive. You need to use parameters in the /etc/fstab file to set the permissions,
BACKUP THE /etc/fstab file first.
FIND your drives UUID and follow the below,
there may already be an entry for your drive in /ettc/fstab,
if so put a # in front of it, copy the line, remove the # and
edit it as below but add your drives UUID
Code:
UUID=3FAC12281A1EAB69 /yourmountpoint/USBHDD ntfs uid=1000,gid=1000 0 2
 
Last edited by a moderator:
Have you got ntfs-3g installed on your Linux systems.
sudo apt update && sudo appt install ntfs-3g
sudo reboot
 
It came with exFat. I have formatted it on Win10 to NTFS and tried user on Linux, it gives me the same error.

running Gparted as the root user YES

ntfs-3g installed YES

root@SW-PC-01:~# stat -c "%U %G" /dev/sdb
root disk

root@SW-PC-01:~# sudo gparted
GParted 1.2.0
configuration --enable-libparted-dmraid --enable-online-resize
libparted 3.4
Error de entrada/salida during write on /dev/sdb
root@SW-PC-01:~#

-------------------
GParted 1.2.0

Dispositivo: /dev/sdb
Modelo: General SSD
Serie:
Tamaño del sector: 4096
Sectores totales: 4096000000

Cabezas: 255
Sectores/pista: 9
Cilindros: 1784749

Tabla de particiones: msdos

Partición Tipo Inicio Fin Opciones Nombre de la partición Sistema de archivos Etiqueta Punto de montaje

========================================
Crear Partición primaria #1 (ntfs, 15.26 TiB) en /dev/sdb 00:00:07 ( ERROR )

crear una partición vacía 00:00:00 ( ÉXITO )

ruta: /dev/sdb1 (partición)
inicio: 256
fin: 4095999999
tamaño: 4095999744 (15.26 TiB)
limpiar firmas de sistemas de archivos antiguos en /dev/sdb1 00:00:07 ( ÉXITO )

write 512.00 KiB of zeros at byte offset 0 00:00:00 ( ÉXITO )
write 4.00 KiB of zeros at byte offset 67108864 00:00:00 ( ÉXITO )
write 4.00 KiB of zeros at byte offset 274877906944 00:00:00 ( ÉXITO )
write 512.00 KiB of zeros at byte offset 16777214427136 00:00:00 ( ÉXITO )
write 4.00 KiB of zeros at byte offset 16777214885888 00:00:00 ( ÉXITO )
write 8.00 KiB of zeros at byte offset 16777214943232 00:00:00 ( ÉXITO )
vaciar caché del sistema operativo de /dev/sdb 00:00:07 ( ÉXITO )

mensajes de libparted ( INFO )

Error de entrada/salida during write on /dev/sdb
establecer el tipo de partición en /dev/sdb1 00:00:00 ( ÉXITO )

tipo de partición nuevo: ntfs
crear un sistema de archivos ntfs nuevo 00:00:00 ( ERROR )

mkntfs -Q -v -F -L '' '/dev/sdb1' 00:00:00 ( ERROR )

Cluster size has been automatically set to 4096 bytes.
Creating NTFS volume structures.
Creating root directory (mft record 5)
Error writing to /dev/sdb1: Error de entrada/salida
Error writing non-resident attribute value.
add_attr_sd failed: Error de entrada/salida
Couldn't create root directory: Error de entrada/salida
Failed to fsync device /dev/sdb1: Error de entrada/salida
Warning: Could not close /dev/sdb1: Error de entrada/salida
 
Probably better off leaving it formatted exFat,
and formatting it in Linux using Gparted to ntfs.
What shows up under /etc/fstab for the drive.

The listing below gives access as root with full permissions.
Can you alter your fstab entry accordingly

UUID=3FAC12281A1EAB69 /yourmountpoint/USBHDD ntfs uid=1000,gid=1000 0 2
 
Well that's very strange because I have a 1TB portable SSD and it mounts and I can format it just fine.
happy0006.gif


NTFS and fat32 work just fine...in Linux Mint you can use either the Disk Utility or the USB Stick Formatter. ;)
All Drives ...Internal HDD, SSD, portable Drives and Flash Drives and External Drives all work with Linux and you don't need to format or partition them but it you feel the need as a beginner I would not use Gparted if I were you.
winking0011.gif


In Linux Mint...type USB in the search box and select...USB Stick Formatter. With your portable SSD plugged in...select what you want and format it...it's that simple.
happy0034.gif
 
Tabla de particiones: msdos
It may or may not help, but I would use Gparted to change the partition table from msdos to gpt for a drive that large. This will also destroy any existing partitions, so be sure to save anything important first.

Then create a new NTFS partition with Gparted. Don't forget to click the "Apply" checkmark so your new partition is saved. NTFS is probably the best filesystem to share data between Linux and Windows.
 
Last edited:
To all. Thank you very much for the advice and sorry for not answering you sooner.
 
Well that's very strange because I have a 1TB portable SSD and it mounts and I can format it just fine.
happy0006.gif


NTFS and fat32 work just fine...in Linux Mint you can use either the Disk Utility or the USB Stick Formatter. ;)
All Drives ...Internal HDD, SSD, portable Drives and Flash Drives and External Drives all work with Linux and you don't need to format or partition them but it you feel the need as a beginner I would not use Gparted if I were you.
winking0011.gif


In Linux Mint...type USB in the search box and select...USB Stick Formatter. With your portable SSD plugged in...select what you want and format it...it's that simple.
happy0034.gif
Hello sam444, thanks for the advice (i didn't know about this program), but in this case it didn't help me. I can format the external ssd drive, it does not give an error when finished, it even writes the message "disk formatted successfully". BUT the problem really persists, neither LinuxMint nor Debian and not even Windows will let me open the disk. The disk can't be broken either, I can format it again in Win10 and then it works again in Windows. :(
 
Probably better off leaving it formatted exFat,
and formatting it in Linux using Gparted to ntfs.
What shows up under /etc/fstab for the drive.

The listing below gives access as root with full permissions.
Can you alter your fstab entry accordingly

UUID=3FAC12281A1EAB69 /yourmountpoint/USBHDD ntfs uid=1000,gid=1000 0 2
root@SW:~# /etc/fstab
bash: /etc/fstab: Permiso denegado
root@SW
 
It may or may not help, but I would use Gparted to change the partition table from msdos to gpt for a drive that large. This will also destroy any existing partitions, so be sure to save anything important first.

Then create a new NTFS partition with Gparted. Don't forget to click the "Apply" checkmark so your new partition is saved. NTFS is probably the best filesystem to share data between Linux and Windows.
Same ERROR
root@SW-PC-01:~# sudo gparted
GParted 1.2.0
configuration --enable-libparted-dmraid --enable-online-resize
libparted 3.4
Error de entrada/salida during read on /dev/sdb
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Error de entrada/salida during write on /dev/sdb
Error de entrada/salida during write on /dev/sdb
root@SW-PC-01:~# cat /proc/partitions
major minor #blocks name

8 0 250059096 sda
8 1 623616 sda1
8 2 624640 sda2
8 3 248809472 sda3
254 0 46874624 dm-0
254 1 34177024 dm-1
254 2 24412160 dm-2
254 3 23437312 dm-3
254 4 31248384 dm-4
254 5 88657920 dm-5
8 16 16384000000 sdb
8 17 16383998976 sdb1
root@SW-PC-01:~# sudo fdisk -l /dev/sdb
Disco /dev/sdb: 15,26 TiB, 16777216000000 bytes, 4096000000 sectores
Modelo de disco: SSD
Unidades: sectores de 1 * 4096 = 4096 bytes
Tamaño de sector (lógico/físico): 4096 bytes / 4096 bytes
Tamaño de E/S (mínimo/óptimo): 4096 bytes / 4096 bytes
Tipo de etiqueta de disco: dos
Identificador del disco: 0x1dd70b21

Disposit. Inicio Comienzo Final Sectores Tamaño Id Tipo
/dev/sdb1 256 4095999999 4095999744 15,3T 7 HPFS/NTFS/exFAT
root@SW-PC-01:~# sudo gparted
GParted 1.2.0
configuration --enable-libparted-dmraid --enable-online-resize
libparted 3.4
Error de entrada/salida during write on /dev/sdb
Error de entrada/salida during write on /dev/sdb
Error de entrada/salida during read on /dev/sdb
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Error de entrada/salida during read on /dev/sdb
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Error de entrada/salida during write on /dev/sdb
Error de entrada/salida during read on /dev/sdb
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Error de entrada/salida during write on /dev/sdb
Error de entrada/salida during read on /dev/sdb
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Error de entrada/salida during write on /dev/sdb
Error de entrada/salida during read on /dev/sdb
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
root@SW-PC-01:~#
 
GParted 1.2.0

configuration --enable-libparted-dmraid --enable-online-resize

libparted 3.4

========================================

Dispositivo:/dev/sda
Modelo:ATA SPCC Solid State
Serie:AA000000000000002286
Tamaño del sector:512
Sectores totales:500118192
Cabezas:255
Sectores/pista:2
Cilindros:980623
Tabla de particiones:gpt
ParticiónTipoInicioFinOpcionesNombre de la particiónSistema de archivosEtiquetaPunto de montaje
/dev/sda1Primaria20481249279ext4boot/boot
/dev/sda2Primaria12492802498559boot, espfat32/boot/efi
/dev/sda3Primaria2498560500117503lvmlvm2 pvLVMGroup
========================================

Dispositivo:/dev/sdb
Modelo:General SSD
Serie:
Tamaño del sector:4096
Sectores totales:4096000000
Cabezas:255
Sectores/pista:9
Cilindros:1784749
Tabla de particiones:gpt
ParticiónTipoInicioFinOpcionesNombre de la particiónSistema de archivosEtiquetaPunto de montaje
========================================

Crear Partición primaria #1 (ntfs, 15.26 TiB) en /dev/sdb 00:00:29 ( ERROR )
crear una partición vacía 00:00:11 ( ÉXITO )
ruta: /dev/sdb1 (partición)
inicio: 256
fin: 4095999743
tamaño: 4095999488 (15.26 TiB)
mensajes de libparted ( INFO )
Error de entrada/salida during read on /dev/sdb
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Error de entrada/salida during write on /dev/sdb
limpiar firmas de sistemas de archivos antiguos en /dev/sdb1 00:00:06 ( ÉXITO )
write 512.00 KiB of zeros at byte offset 0 00:00:00 ( ÉXITO )
mensajes de libparted ( INFO )
Error de entrada/salida during read on /dev/sdb
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
write 4.00 KiB of zeros at byte offset 67108864 00:00:00 ( ÉXITO )
write 4.00 KiB of zeros at byte offset 274877906944 00:00:00 ( ÉXITO )
write 512.00 KiB of zeros at byte offset 16777213378560 00:00:00 ( ÉXITO )
write 4.00 KiB of zeros at byte offset 16777213837312 00:00:00 ( ÉXITO )
write 8.00 KiB of zeros at byte offset 16777213894656 00:00:00 ( ÉXITO )
vaciar caché del sistema operativo de /dev/sdb 00:00:02 ( ÉXITO )
mensajes de libparted ( INFO )
Error de entrada/salida during write on /dev/sdb
establecer el tipo de partición en /dev/sdb1 00:00:12 ( ÉXITO )
tipo de partición nuevo: ntfs
mensajes de libparted ( INFO )
Error de entrada/salida during read on /dev/sdb
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Error de entrada/salida during write on /dev/sdb
crear un sistema de archivos ntfs nuevo 00:00:00 ( ERROR )
mkntfs -Q -v -F -L '' '/dev/sdb1' 00:00:00 ( ERROR )
Cluster size has been automatically set to 4096 bytes.
Creating NTFS volume structures.
Creating root directory (mft record 5)
Error writing to /dev/sdb1: Error de entrada/salida
Error writing non-resident attribute value.
add_attr_sd failed: Error de entrada/salida
Couldn't create root directory: Error de entrada/salida
Failed to fsync device /dev/sdb1: Error de entrada/salida
Warning: Could not close /dev/sdb1: Error de entrada/salida
 
ARE THERE DISKS THAT DO NOT WORK WITH LINUX?
Rarely, but it's not impossible. New technologies can take time for Linux to catch up with, if there is anything especially "new" about your SSD.

I see the "Tabla de particiones" now reports gpt.... but the "disk label type" (shown by fdisk below) is a contradiction that says it's still dos. It should say gpt also.
Tipo de etiqueta de disco: dos

I don't speak Spanish and it is hard to understand the reports you are providing. Do you have any type of RAID setup? Or are you trying to setup a RAID configuration? If you are not setting up RAID, there is a setting in BIOS you should check: SATA Controller. The SATA Controller should usually be set to AHCI and not RAID.

[EDIT]: I want to make sure you know why gpt is better for your large hard drive. The dos (or msdos) partition table method has a limit of 2 TB for a partition size, and gpt does not have this low limit. So if you are trying to make a 16 TB partition with msdos partition table, it will give errors. This could be the problem you are having, or what started your troubles.
 
Last edited:
It’s a Portable SSD (Moblle SDUD STATA) 16TG USB 3.1 Typ-C connected to USB 3.0 Typ-A
Is it this one? If so, you need to watch this video.
 
Last edited:
Lets start with the first errors in your post #1

1) At Gnome Disks and GParted I see it, but I can’t format.
Error: “device udisks-error-quark, 0” and “can't open input/output error”

2) Attention: /dev/sdb: unrecognised disk label

Since Linux does not recognize the disk label we need to create one it understands

Code:
sudo parted /dev/sdb
(parted) mklabel gpt
(parted) quit

The above creates a blank table on the hard disk. I used "gpt" since your drive is larger then 2TBs - do not ues msdos since it is limited to 2TBs - Then, you can continue to add new partition using Gparted

----------------------------------

Or alternatively, you can continue to manually create the filesystem on the new partition created with parted, mkfs, and other commands. For example: Here I use the ext4 format

Code:
mkfs -t ext4 -q /dev/sdb1

Then, create a mount point for the new filesystem and mount the new file system: Here I used "backup" for the mount directory

Code:
mkdir /backup
Code:
mount /dev/sdb1 /backup

Ensure that the entry for the new filesystem and hard disk is recorded inside /etc/fstab so that it will mount automatically on system startup.

/dev/sdb1 /backup ext4 defaults 0 2

Where you can modify the parameters according to your need, with explanation below:

/dev/sdb1: Name for the partition
/backup: Mount point
ext4: Filesystem (fs) type
defaults : Mount options
0: Zero indicates to exclude this filesystem from dump command backup.
2: Second indicates the order which fsck filesystem check at boot. Only the root (/) filesystem should be specified with 1, all others should be 2.
 
The reason your 16TB SSD wont work is because it's a fake :eek:...your best option is to chuck it in the bin and buy a genuine well know brand.
happy0006.gif


Here in Australia If I go to my local computer shop or a store like office works, the largest portable SSD is 4TB and costs about $1200.
scared0011.gif

I have a Samsung 1TB portable SSD...I also have three internal SSDs which are 500GB.

One is a Samsung and the other two are Western Digital...all work just fine with Linux...it always pays to buy well know brands.
happy0034.gif
 

Members online


Top