You are not logged in.
Greetings, everybody ! Let me introduce myself first, i'm Darth Killer, DK for short, i've been using arch-based distros for a while, and started a short while ago using the real arch, the arch way. Always loved the arch style and architecture and tools, except for one thing : the installation. Although i personnally can do it now (and have done it a few times) i still think it should be a second option for experts rather than the only option, even on the main arch distribution. But that's only my opinion, and even so it won't make me run away from arch the slightest.
I'm in the process of rebuilding a new desktop install, and for some reason i'm having an issue i've never had before : my external USB3 mecanical WD Green 2TB disk auto-mounts in read-only. I've always used the MATE desktop, and i've used it in its GTK3 form for several installs of this computer now, as for the kernel i've used the main 4.10 one for several installations too. Yet, it's the first time this has ever happenned to me. Note that none of my USB sticks are affected by this.
I've found several solutions to "patch", like defining udev rules, it but i don't like them, it's like putting some bandaid on a cancer protusion. I want to find the real source of the problem to find a real solution to it. I'll add in annex some documentation i found while researching my problem, as well as output to some commands to give you my environment.
Here's the output of a custom lsblk (with some added comments of my own). Note that both the faulty hard disk, and the Arch livve USB Stick were plugged in in both cases.
DESKTOP - LIVECD ARCH
NAME MOUNTPOINT FSTYPE LABEL SIZE KNAME MODEL MODE OWNER GROUP RO RM
loop0 /run/archiso/sfs/airootfs squashfs 365.4M loop0 brw-rw---- root disk 1 0
sda 111.8G sda KINGSTON SV300S3 brw-rw---- root disk 0 0 ----> SSD ~120G
├─sda1 /mnt/boot ext2 1G sda1 brw-rw---- root disk 0 0
└─sda2 LVM2_member 110.8G sda2 brw-rw---- root disk 0 0
└─volgroup_sys-lv_root /mnt ext4 110.8G dm-4 brw-rw---- root disk 0 0
sdb 931.5G sdb WDC WD1003FZEX-0 brw-rw---- root disk 0 0 ----> HDD WDBlack 1TB
└─sdb1 LVM2_member 931.5G sdb1 brw-rw---- root disk 0 0
├─volgroup_data-lv_swap [SWAP] swap 16G dm-1 brw-rw---- root disk 0 0 ----> Arguably replacable with a swap file
├─volgroup_data-lv_var /mnt/var reiserfs 40G dm-2 brw-rw---- root disk 0 0 ----> thinking about canceling that one
└─volgroup_data-lv_home /mnt/home ext4 875.5G dm-3 brw-rw---- root disk 0 0
sdc 298.1G sdc ST9320320AS brw-rw---- root disk 0 0 ----> HDD ~320G from a former laptop, still unused
├─sdc1 vfat DellUtility 109.8M sdc1 brw-rw---- root disk 0 0
├─sdc2 ntfs PROGRAMS 147.7G sdc2 brw-rw---- root disk 0 0
├─sdc3 1K sdc3 brw-rw---- root disk 0 0
└─sdc5 ntfs DONNEES 150.3G sdc5 brw-rw---- root disk 0 0
sdd 298.1G sdd Hitachi HTS54323 brw-rw---- root disk 0 0 ----> HDD ~320G
└─sdd1 LVM2_member 298.1G sdd1 brw-rw---- root disk 0 0
└─volgroup_vms-lv_vm /mnt/vm ext4 298.1G dm-0 brw-rw---- root disk 0 0 ----> Dedicated for virtual machines
sdi iso9660 ARCH_201703 60.4G sdi STORE N GO brw-rw---- root disk 0 1 ----> Arch LiveUSB Stick
├─sdi1 /run/archiso/bootmnt iso9660 ARCH_201703 476M sdi1 brw-rw---- root disk 0 1
└─sdi2 vfat ARCHISO_EFI 64M sdi2 brw-rw---- root disk 0 1
sdj 1.8T sdj 2105 brw-rw---- root disk 0 0 ----> HDD External WDGreen 2T
└─sdj1 /HDD ntfs Sauvegarde 1.8T sdj1 brw-rw---- root disk 0 0
sr0 1024M sr0 DVDRW SHW-160P6S brw-rw---- root optical 0 1 ----> CD/DVD IDE through PCIe
DESKTOP - INSTALLED
NAME MOUNTPOINT FSTYPE LABEL SIZE KNAME MODEL MODE OWNER GROUP RO RM
sda 111,8G sda KINGSTON SV300S3 brw-rw---- root disk 0 0 ----> SSD ~120G
├─sda1 /boot ext2 1G sda1 brw-rw---- root disk 0 0
└─sda2 LVM2_member 110,8G sda2 brw-rw---- root disk 0 0
└─volgroup_sys-lv_root / ext4 110,8G dm-0 brw-rw---- root disk 0 0
sdb 931,5G sdb WDC WD1003FZEX-0 brw-rw---- root disk 0 0 ----> HDD WDBlack 1TB
└─sdb1 LVM2_member 931,5G sdb1 brw-rw---- root disk 0 0
├─volgroup_data-lv_swap [SWAP] swap 16G dm-1 brw-rw---- root disk 0 0 ----> Arguably replacable by a swap file
├─volgroup_data-lv_var /var reiserfs 40G dm-2 brw-rw---- root disk 0 0 ----> thinking about canceling that one
└─volgroup_data-lv_home /home ext4 875,5G dm-3 brw-rw---- root disk 0 0
sdc 298,1G sdc ST9320320AS brw-rw---- root disk 0 0 ----> HDD ~320G from a former laptop, still unused
├─sdc1 vfat DellUtility 109,8M sdc1 brw-rw---- root disk 0 0
├─sdc2 ntfs PROGRAMS 147,7G sdc2 brw-rw---- root disk 0 0
├─sdc3 1K sdc3 brw-rw---- root disk 0 0
└─sdc5 ntfs DONNEES 150,3G sdc5 brw-rw---- root disk 0 0
sdd 298,1G sdd Hitachi HTS54323 brw-rw---- root disk 0 0 ----> HDD ~320G
└─sdd1 LVM2_member 298,1G sdd1 brw-rw---- root disk 0 0
└─volgroup_vms-lv_vm /vm ext4 298,1G dm-4 brw-rw---- root disk 0 0 ----> Dedicated for virtual machines
sdi 1,8T sdi 2105 brw-rw---- root disk 0 0 ----> HDD External WDGreen 2T
└─sdi1 /run/media/samy/Sauvegarde ntfs Sauvegarde 1,8T sdi1 brw-rw---- root disk 0 0
sdj iso9660 ARCH_201703 60,4G sdj STORE N GO brw-rw---- root disk 0 1 ----> Arch LibeUSB Stick
├─sdj1 /run/media/samy/ARCH_201703 iso9660 ARCH_201703 476M sdj1 brw-rw---- root disk 0 1
└─sdj2 vfat ARCHISO_EFI 64M sdj2 brw-rw---- root disk 0 1
sr0 1024M sr0 DVDRW SHW-160P6S brw-rw---- root optical 0 1 ----> CD/DVD IDE
And here's another command, targeting the faulty hard disk for info while in installed environment
sudo udevadm info -a -p $(sudo udevadm info -q path -n /dev/bus/usb/004/002 )
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:14.0/usb4/4-1':
KERNEL=="4-1"
SUBSYSTEM=="usb"
DRIVER=="usb"
ATTR{authorized}=="1"
ATTR{avoid_reset_quirk}=="0"
ATTR{bConfigurationValue}=="1"
ATTR{bDeviceClass}=="00"
ATTR{bDeviceProtocol}=="00"
ATTR{bDeviceSubClass}=="00"
ATTR{bMaxPacketSize0}=="9"
ATTR{bMaxPower}=="0mA"
ATTR{bNumConfigurations}=="1"
ATTR{bNumInterfaces}==" 1"
ATTR{bcdDevice}=="0001"
ATTR{bmAttributes}=="c0"
ATTR{busnum}=="4"
ATTR{configuration}==""
ATTR{devnum}=="2"
ATTR{devpath}=="1"
ATTR{idProduct}=="5136"
ATTR{idVendor}=="174c"
ATTR{ltm_capable}=="no"
ATTR{manufacturer}=="ASMedia"
ATTR{maxchild}=="0"
ATTR{product}=="AS2105"
ATTR{quirks}=="0x0"
ATTR{removable}=="removable"
ATTR{serial}=="00000000000000000000"
ATTR{speed}=="5000"
ATTR{urbnum}=="1001"
ATTR{version}==" 3.00"
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb4':
KERNELS=="usb4"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{authorized}=="1"
ATTRS{authorized_default}=="1"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{bConfigurationValue}=="1"
ATTRS{bDeviceClass}=="09"
ATTRS{bDeviceProtocol}=="03"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bMaxPacketSize0}=="9"
ATTRS{bMaxPower}=="0mA"
ATTRS{bNumConfigurations}=="1"
ATTRS{bNumInterfaces}==" 1"
ATTRS{bcdDevice}=="0410"
ATTRS{bmAttributes}=="e0"
ATTRS{busnum}=="4"
ATTRS{configuration}==""
ATTRS{devnum}=="1"
ATTRS{devpath}=="0"
ATTRS{idProduct}=="0003"
ATTRS{idVendor}=="1d6b"
ATTRS{interface_authorized_default}=="1"
ATTRS{ltm_capable}=="yes"
ATTRS{manufacturer}=="Linux 4.10.13-1-ARCH xhci-hcd"
ATTRS{maxchild}=="6"
ATTRS{product}=="xHCI Host Controller"
ATTRS{quirks}=="0x0"
ATTRS{removable}=="unknown"
ATTRS{serial}=="0000:00:14.0"
ATTRS{speed}=="5000"
ATTRS{urbnum}=="55"
ATTRS{version}==" 3.00"
looking at parent device '/devices/pci0000:00/0000:00:14.0':
KERNELS=="0000:00:14.0"
SUBSYSTEMS=="pci"
DRIVERS=="xhci_hcd"
ATTRS{broken_parity_status}=="0"
ATTRS{class}=="0x0c0330"
ATTRS{consistent_dma_mask_bits}=="64"
ATTRS{d3cold_allowed}=="1"
ATTRS{device}=="0x8c31"
ATTRS{dma_mask_bits}=="64"
ATTRS{driver_override}=="(null)"
ATTRS{enable}=="1"
ATTRS{irq}=="27"
ATTRS{local_cpulist}=="0-3"
ATTRS{local_cpus}=="f"
ATTRS{msi_bus}=="1"
ATTRS{numa_node}=="-1"
ATTRS{revision}=="0x05"
ATTRS{subsystem_device}=="0x7823"
ATTRS{subsystem_vendor}=="0x1462"
ATTRS{vendor}=="0x8086"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
The same in Arch LiveUSB Stick environment shows the same data except the linux kernel version being 4.9 instead of 4.10, affecting mostnotably ATTRS{bcdDevice} on the device, and ATTRS{manufacturer} on its direct parent.
cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/mapper/volgroup_sys-lv_root
UUID=4f4ac33a-f387-480f-9d58-ef51edc4a9f1 / ext4 rw,discard,relatime,data=ordered 0 1
# /dev/sda1
UUID=87b04e03-7c48-4249-8f5e-2e4cb0b847d7 /boot ext2 rw,relatime,block_validity,barrier,user_xattr,acl 0 2
# /dev/mapper/volgroup_data-lv_var
UUID=6a32d77a-5069-4ed8-a772-e6b604eac200 /var reiserfs rw,relatime 0 2
# /dev/mapper/volgroup_data-lv_home
UUID=2918e9b9-7ef0-4f2c-afd8-771e633da7f6 /home ext4 rw,relatime,data=ordered 0 2
# /dev/mapper/volgroup_vms-lv_vm
UUID=d0daed62-6746-4ff0-b8fa-d7aa8d34b3b5 /vm ext4 rw,relatime,data=ordered 0 2
# /dev/mapper/volgroup_data-lv_swap
UUID=b441e780-3142-46ad-abe5-c0f6576df1a9 none swap defaults 0 0
sudo fdisk -l
Disque /dev/sdb : 931,5 GiB, 1000204886016 octets, 1953525168 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0xa9283080
Périphérique Amorçage Début Fin Secteurs Taille Id Type
/dev/sdb1 2048 1953525167 1953523120 931,5G 8e LVM Linux
Disque /dev/sdc : 298,1 GiB, 320072933376 octets, 625142448 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x98deb064
Périphérique Amorçage Début Fin Secteurs Taille Id Type
/dev/sdc1 63 224909 224847 109,8M de Dell Utility
/dev/sdc2 * 224910 309893849 309668940 147,7G 7 HPFS/NTFS/exFAT
/dev/sdc3 309893850 625137344 315243495 150,3G f Étendue W95 (LBA)
/dev/sdc5 309893913 625137344 315243432 150,3G 7 HPFS/NTFS/exFAT
Disque /dev/sdd : 298,1 GiB, 320072933376 octets, 625142448 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0xec500e2e
Périphérique Amorçage Début Fin Secteurs Taille Id Type
/dev/sdd1 2048 625142447 625140400 298,1G 8e LVM Linux
Disque /dev/sda : 111,8 GiB, 120034123776 octets, 234441648 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0xde6ca156
Périphérique Amorçage Début Fin Secteurs Taille Id Type
/dev/sda1 2048 2099199 2097152 1G 83 Linux
/dev/sda2 2099200 234441647 232342448 110,8G 8e LVM Linux
Disque /dev/mapper/volgroup_sys-lv_root : 110,8 GiB, 118954655744 octets, 232333312 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/mapper/volgroup_data-lv_swap : 16 GiB, 17179869184 octets, 33554432 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
Disque /dev/mapper/volgroup_data-lv_var : 40 GiB, 42949672960 octets, 83886080 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
Disque /dev/mapper/volgroup_data-lv_home : 875,5 GiB, 940069355520 octets, 1836072960 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
Disque /dev/mapper/volgroup_vms-lv_vm : 298,1 GiB, 320067338240 octets, 625131520 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/sdi : 1,8 TiB, 2000398934016 octets, 3907029168 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x000ed17b
Périphérique Amorçage Début Fin Secteurs Taille Id Type
/dev/sdi1 2048 3907028991 3907026944 1,8T 7 HPFS/NTFS/exFAT
mount -l
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=16428956k,nr_inodes=4107239,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/mapper/volgroup_sys-lv_root on / type ext4 (rw,relatime,discard,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=26,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
configfs on /sys/kernel/config type configfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
/dev/sda1 on /boot type ext2 (rw,relatime,block_validity,barrier,user_xattr,acl)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
/dev/mapper/volgroup_data-lv_home on /home type ext4 (rw,relatime,data=ordered)
/dev/mapper/volgroup_data-lv_var on /var type reiserfs (rw,relatime)
/dev/mapper/volgroup_vms-lv_vm on /vm type ext4 (rw,relatime,data=ordered)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=3287252k,mode=700,uid=1000,gid=1000)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sdi1 on /run/media/samy/Sauvegarde type ntfs (ro,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0177,dmask=077,nls=utf8,errors=continue,mft_zone_multiplier=1,uhelper=udisks2) [Sauvegarde]
Last edited by Darth Killer (2017-05-18 13:15:14)
Offline
Install ntfs-3g
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Seriously ? That was it. I guess what this package does (it's not even an AUR one) is installing the proper NTFS drivers ?
Either way, thousands of thanks.
Last edited by Darth Killer (2017-05-18 13:13:43)
Offline
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline