[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Only root can write on USB disk



Le 04/05/2017 à 17:22, Mostafa Shahverdy a écrit :

[10021.791499] usb-storage 3-1:1.0: USB Mass Storage device detected
[10021.793693] scsi host9: usb-storage 3-1:1.0
[10022.814216] scsi 9:0:0:0: Direct-Access     Philips  USB Flash Drive  PMAP PQ: 0 ANSI: 4
[10022.814812] sd 9:0:0:0: Attached scsi generic sg8 type 0
[10030.989808] sd 9:0:0:0: [sdi] 15267823 512-byte logical blocks: (7.82 GB/7.28 GiB)
[10030.992298] sd 9:0:0:0: [sdi] Write Protect is off
[10030.992301] sd 9:0:0:0: [sdi] Mode Sense: 23 00 00 00
[10030.994174] sd 9:0:0:0: [sdi] No Caching mode page found
[10030.994180] sd 9:0:0:0: [sdi] Assuming drive cache: write through
[10031.020946]  sdi:
[10031.029429] sd 9:0:0:0: [sdi] Attached SCSI removable disk
[10031.299766] FAT-fs (sdi): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
(...)
this is my fstab line:

/dev/sdh1 /media/mostafa/flash_h1 auto user,rw,nosuid,nodev,relatime 0 0

The device name /dev/sdh1 does not match the USB device name /dev/sdi.
Using /dev/sd* names in /etc/fstab should be avoided because they are not persistant.


Reply to: