Ubuntu server USB mount - Ask Ubuntu
i have configured raspberry pi 2 ubuntu server 16.04.1, working charm.
my issue external hdd not automatically mounted. tried using fstab , uuid, not working. reading on ubuntu server, need usbmount. thing want drive mounted on /media/nas
for now, did schedule cron job mount drive.
any appreciated.
thanks :)
edit:
[ 23.834487] audit: type=1400 audit(1455208086.487:9): apparmor="status" operation="profile_load" profile="unconfined" name="/usr/lib/lxd/lxd-bridge-proxy" pid=887 comm="apparmor_parser" [ 23.842573] audit: type=1400 audit(1455208086.495:10): apparmor="status" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine" pid=888 comm="apparmor_parser" [ 23.842655] audit: type=1400 audit(1455208086.495:11): apparmor="status" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=888 comm="apparmor_parser" [ 24.394638] cgroup: new mount options not match existing superblock, ignored [ 28.213436] ext4-fs error (device mmcblk0p2): ext4_mb_generate_buddy:758: group 1, block bitmap , bg descriptor inconsistent: 1258 vs 1257 free clusters [ 28.237744] jbd2: spotted dirty metadata buffer (dev = mmcblk0p2, blocknr = 0). there's risk of filesystem corruption in case of system crash. [ 29.169243] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup [ 29.169478] ipv6: addrconf(netdev_up): eth0: link not ready [ 30.828279] ipv6: addrconf(netdev_change): eth0: link becomes ready [ 30.829360] smsc95xx 1-1.1:1.0 eth0: link up, 100mbps, full-duplex, lpa 0xcde1
df:
df: /media/nas: transport endpoint not connected filesystem size used avail use% mounted on udev 448m 0 448m 0% /dev tmpfs 93m 8.3m 84m 9% /run /dev/mmcblk0p2 7.0g 3.5g 3.5g 50% / tmpfs 461m 0 461m 0% /dev/shm tmpfs 5.0m 4.0k 5.0m 1% /run/lock tmpfs 461m 0 461m 0% /sys/fs/cgroup /dev/mmcblk0p1 128m 56m 72m 44% /boot/firmware tmpfs 93m 0 93m 0% /run/user/1000
sudo apt-get install usbmount
it creates entries usb devices in /media
, automounts usb devices there.
beware of fat & ntfs drives, may need edit /etc/usbmount/usbmount.conf
file filesystems aren't supported default. commented well, should simple do.
you may need sudo apt-get install ntfs-3g
ntfs support etc.
ext3 , ext4 (for example) should fine.
once installed, can edit lines 12 & 13 of /etc/usbmount/usbmount.conf
, changing mount points /media/nas
etc.
Comments
Post a Comment