You are not logged in.

#1 2023-11-12 10:02:26

ahtson
Member
Registered: 2023-09-23
Posts: 9

[SOLVED] Can't mount external storage device

Device can be detected in /dev:

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0   1.8T  0 disk 
├─sda1        8:1    0    16M  0 part 
└─sda2        8:2    0   1.8T  0 part 
nvme0n1     259:0    0 476.9G  0 disk 
├─nvme0n1p1 259:1    0   512M  0 part /boot
└─nvme0n1p2 259:2    0 476.4G  0 part /

Here's the output of udiskie:
Gtk-Message: 12:59:50.831: Failed to load module "appmenu-gtk-module"
failed to mount /org/freedesktop/UDisks2/block_devices/sda2: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error mounting /dev/sda2 at /run/media/ahtson/MyHDD: wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or helper program, or other error

Here's what dmesg says:

[ 3248.931907] sd 3:0:0:0: [sda] Attached SCSI disk
[ 3559.736537] usb 4-2: USB disconnect, device number 3
[ 3559.754420] sd 3:0:0:0: [sda] Synchronizing SCSI cache
[ 3559.881432] sd 3:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 3564.437474] usb 4-2: new SuperSpeed USB device number 4 using xhci_hcd
[ 3564.450118] usb 4-2: New USB device found, idVendor=125f, idProduct=a64a, bcdDevice=94.02
[ 3564.450127] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3564.450137] usb 4-2: Product: HV620S
[ 3564.450141] usb 4-2: Manufacturer: ADATA
[ 3564.450143] usb 4-2: SerialNumber: 4272059F403A
[ 3564.454530] scsi host3: uas
[ 3564.455063] scsi 3:0:0:0: Direct-Access     ADATA    HV620S           9402 PQ: 0 ANSI: 6
[ 3567.208017] sd 3:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 3567.208020] sd 3:0:0:0: [sda] 4096-byte physical blocks
[ 3567.208152] sd 3:0:0:0: [sda] Write Protect is off
[ 3567.208153] sd 3:0:0:0: [sda] Mode Sense: 53 00 00 08
[ 3567.208386] sd 3:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 3567.208589] sd 3:0:0:0: [sda] Preferred minimum I/O size 4096 bytes
[ 3567.208590] sd 3:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of preferred minimum block size (4096 bytes)
[ 3567.246773]  sda: sda1 sda2
[ 3567.247082] sd 3:0:0:0: [sda] Attached SCSI disk
[ 3570.229576] ntfs3: sda2: It is recommened to use chkdsk.
[ 3570.377217] ntfs3: sda2: volume is dirty and "force" flag is not set!
[ 3579.914587] ntfs3: sda2: It is recommened to use chkdsk.
[ 3580.232952] ntfs3: sda2: volume is dirty and "force" flag is not set!

Last edited by ahtson (2023-11-12 18:58:42)

Offline

#2 2023-11-12 13:56:32

teckk
Member
Registered: 2013-02-21
Posts: 585

Re: [SOLVED] Can't mount external storage device

Go find a windows machine. Plug it in and let windows fix it. That is the best thing that you can do for a NTFS volumn.

Don't unplug a NTFS drive before it's completely umounted. I would manually mount-unmount a NTFS drive. NTFS is picky.

Offline

#3 2023-11-12 14:56:34

ahtson
Member
Registered: 2023-09-23
Posts: 9

Re: [SOLVED] Can't mount external storage device

Is there a particular utility I should use? I've tried checking it on the Windows machine and it mounted fine, but it still doesn't mount on Arch

Last edited by ahtson (2023-11-12 15:27:45)

Offline

#4 2023-11-12 15:28:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,065

Re: [SOLVED] Can't mount external storage device

[ 3570.229576] ntfs3: sda2: It is recommened to use chkdsk.

Offline

#5 2023-11-12 18:58:26

ahtson
Member
Registered: 2023-09-23
Posts: 9

Re: [SOLVED] Can't mount external storage device

Thanks, it worked. But I still wonder if it's possible to use chkdsk without having an access to the Windows machine. Could you possibly run it with wine?

Offline

#6 2023-11-12 19:32:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,065

Re: [SOLVED] Can't mount external storage device

Probably not.
You can also try ntfsfix from the ntfs-3g package, but chkdsk is the better choice,

why woul you use ntfs if you're not also using windows?

Offline

#7 2023-11-12 20:55:13

ahtson
Member
Registered: 2023-09-23
Posts: 9

Re: [SOLVED] Can't mount external storage device

No, ntfsfix expicitly says that "the volume is dirty" and I should use chkdsk instead.
I use ntfs for the time being because it's my external HDD I've bought recently. I'll probably convert my it from NTFS to FAT32 or ext.

Offline

#8 2023-11-13 13:42:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,234

Re: [SOLVED] Can't mount external storage device

you can tell ntfsfix with the -d flag to clear the dirty bit, regardless of the consequences

Offline

Board footer

Powered by FluxBB