P
P
Pavel K2019-01-24 00:14:01
linux
Pavel K, 2019-01-24 00:14:01

What is the reason that after each connection of the HDD to Windows, the disk stops being mounted by Linux?

Greetings!
There is a zero WD hard drive, formatted in NTFS (I tried it both with Windows and with Linux), which sometimes
needs to be connected to a machine with Windows 10 (as a remote via USB). After safely extracting from Windows and connecting to Linux (in my case Mint) after mounting (mounting "sudo mount -t ntfs-3g /dev/sdi1 /mnt/FrontUSB", similar behavior via fstab)
when trying to navigate to the directory, it gives an error " bash: cd: FrontUSB: Transfer endpoint not connected"
In dmesg

spoiler
[1756588.000559] usb 1-1.3: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[1756588.034733] usb 1-1.3: Product: USB 2.0 Drive
[1756588.039450] usb 1-1.3: Manufacturer: PI-288
[1756588.079610] usb 1-1.3: SerialNumber: 100709000343
[1756588.125612] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[1756588.165889] scsi host10: usb-storage 1-1.3:1.0
[1756590.360015] scsi 10:0:0:0: Direct-Access PI-288 USB 2.0 Drive PQ: 0 ANSI: 4
[1756590.410291] sd 10:0:0:0: Attached scsi generic sg2 type 0
[1756590.417223] sd 10:0:0:0: [sdi] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[1756590.452362] sd 10:0:0:0: [sdi] Write Protect is off
[1756590.490992] sd 10:0:0:0: [sdi] Mode Sense: 38 00 00 00
[1756590.499247] sd 10:0:0:0: [sdi] No Caching mode page found
[1756590.528434] sd 10:0:0:0: [sdi] Assuming drive cache: write through
[1756590.611106] sdi: sdi1
[1756590.637368] sd 10:0:0:0: [sdi] Attached SCSI disk

fdisk -l
spoiler
/dev/sdi1 2048 625141759 625139712 298,1G 7 HPFS/NTFS/exFAT

On Windows, as usual, it is determined and enters the folder, transfers files, etc. If you format it again in NTFS, then it is mounted on the disk, everything is OK until the first connection to the machine with Windows.
Tell me, please, what kind of garbage and how to solve? Checked different disks - similarly.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
Y
Yan, 2019-01-24
@Slayer_nn

turn off fast startup in windows

A
Alexey Skobkin, 2019-01-24
@skobkin

As a one-time solution (per boot) - ntfsck this partition. You don't really need to format.

J
jcmvbkbc, 2019-01-24
@jcmvbkbc

In dmesg...

In this piece, only the identification of the hardware of the screw and the reading of the partition table. Mount attempts are not visible. After mount nothing new appears?

R
rPman, 2019-01-24
@rPman

If you use hibernation in windows, then this can cause a million problems, because the data may not be flushed to the disk (by the way, they should be, but not guaranteed), which means that the disks are in an inconsistent state, this is how to pull out a USB flash drive without selecting the appropriate item in the disk menu / in tray.
If there are no performance issues with this disk from under windows, you can disable disk caching (the hardware cache will remain on the disk itself, in 90% of cases it is enough).
Device properties (for example, in the disk manager) policy tab (write caching policy) disable caching.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question