You are not logged in.
Pages: 1
I had 3 btrfs file systems(/dev/sd[b-f], /dev/sdg, /dev/sdh) and 2 of
them(/dev/sdg, /dev/sdh) are usb external drives. They were always mounted
automatically at boot time with /etc/fstab, but after completely
reinstalling arch linux(same packages and same config files), those 2
usb storages(/dev/sdg, /dev/sdh) aren't mounted at all at boot time.
I thought it was /etc/fstab problem, but after login I could mount them
with 'sudo mount -a' and when I simply put 'mount -a' in /etc/rc.local,
then they are mounted at boot time automatically. So, it is not the
problem with /etc/fstab.
After some experiment, I decided to change one of two usb connected
btrfs(/dev/sdh) to ext4. After reboot, the two btrfs(one with SATA and one
usb) are mounted at boot time without 'mount -a' in /etc/rc.local, but
the ext4 usb storage isn't and after second reboot, the two usb storages aren't
mounted at all as above, so I must do 'mount -a' after login.
Any ideas?
here is my 'dmesg | grep sdg' and 'dmesg | grep sdh'
[ 2.681904] sd 7:0:0:0: [sdg] Write Protect is off
[ 2.681912] sd 7:0:0:0: [sdg] Mode Sense: 23 00 00 00
[ 2.682618] sd 7:0:0:0: [sdg] No Caching mode page present
[ 2.682767] sd 7:0:0:0: [sdg] Assuming drive cache: write through
[ 2.684847] sd 7:0:0:0: [sdg] No Caching mode page present
[ 2.684966] sd 7:0:0:0: [sdg] Assuming drive cache: write through
[ 2.685552] sdg: unknown partition table
[ 2.687361] sd 7:0:0:0: [sdg] No Caching mode page present
[ 2.687477] sd 7:0:0:0: [sdg] Assuming drive cache: write through
[ 2.687596] sd 7:0:0:0: [sdg] Attached SCSI disk
[ 2.681090] sd 6:0:0:0: [sdh] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[ 2.682104] sd 6:0:0:0: [sdh] Write Protect is off
[ 2.682111] sd 6:0:0:0: [sdh] Mode Sense: 23 00 00 00
[ 2.682932] sd 6:0:0:0: [sdh] No Caching mode page present
[ 2.683051] sd 6:0:0:0: [sdh] Assuming drive cache: write through
[ 2.685179] sd 6:0:0:0: [sdh] No Caching mode page present
[ 2.685293] sd 6:0:0:0: [sdh] Assuming drive cache: write through
[ 2.685636] sdh: unknown partition table
[ 2.687677] sd 6:0:0:0: [sdh] No Caching mode page present
[ 2.687790] sd 6:0:0:0: [sdh] Assuming drive cache: write through
[ 2.687905] sd 6:0:0:0: [sdh] Attached SCSI disk
(Sorry, this time /dev/sdg and /dev/sdh are changed. So /dev/sdg is ext4 and /dev/sdh is btrfs in dmesg messages)
Last edited by kreoso (2012-04-12 21:12:50)
Offline
Welcome to the forums.
So you basically just want your usb disks to be automounted. Have a look at using udev rules for it.
Burninate!
Offline
Thanks, but no. I don't need automount. The two usb storages are always connected and I want them to be mounted at boot time with /etc/fstab. It worked some days ago, but after reinstalling, it doesn't. I wanna know why is it so.
Offline
I had a similar problem before. I think when fstab is called, your USB drives are probably not ready. Have you tried putting "sleep 5s && mount -a" in your rc.local?
Offline
Today, mkinitcpio and udev are upgraded, and then it just works. ![]()
Offline
Pages: 1