After installing Arch Linux on my Laptop, i configured Nvidia grahics card driver using
Then i set Fingerprint scanner by following
The remaining thing was to auto-mount my External Hard drive so that i could transfer files to and from it smoothly.This can be used for Ubuntu, CentOS and any other Linux distribution with variations only in group names and package to install.This guide is biased on External disk storage with NTFS partition format since it always have problems. First make sure you have usb_storage kernel module loaded.
Since i would like to mount and access my External storage devices using standard non-root account, i have to make sure that i am a member of both wheel, disk and storage system groups.Replace josepy with your username.
sudo gpasswd -a josepy wheel sudo gpasswd -a josepy storage sudo gpasswd -a josepy disk
Additionally, make sure you’re a member of group “users”
sudo gpasswd -a josepy users
Next step is to install ntfs-3g package; which is an open source implementation of Microsoft’s NTFS file system that includes read and write support.
pacman -S ntfs-3g
If you restart your computer now, External storage devices should be mounted without any problem, both NTFS, VFAT and Ext4 format systems.
Mounting NTFS partition(s) automatically and Manually
> Create Mount Point
mkdir -p /mnt/mountpoint chown josepy /mnt/mountpoint
Replace josepy with your username.
The syntax to mount is
mount -t ntfs-3g /dev/your_NTFS_partition /mount_point
Since the NTFS partition format i woud like to mount is /dev/sdb1, minw will look like below:
mount -t ntfs-3g /dev/sdb1 /mnt/mountpoint
The mount command /usr/bin/mount.ntfs will be used.
NTFS partition(s) can be setup to mount automatically by specifying mount rules in static filesystem configuration (fstab) or by the use of udev rules.
The add the line below at the end of the file.
/dev/sdb1 /mnt/mountpoint ntfs-3g uid=josepy,gid=users,umask=0022 0 0
/dev/sdb1 with your device location.
josepy with your username
/mnt/mountpoint with mount point you created before.
umask: Sets file permissions on newly created files.Default umask for root and user is 0022. With this umask,new folders have the directory permissions of 755 and new files have permissions of 644.
uid: The user id number. Specified user will have full access to the partition
gid: Group id of users with full access to partition.
To prevent NTFS entries in /etc/fstab from getting mounted automatically at boot use noauto option.
Mounting USB stick Manually and automatically
mkdir /mnt/usbstick chown josepy /mnt/usbstick
I will then mount it as non-root user,
mount -o gid=users,fmask=113,dmask=002 /dev/sdc1 /mnt/usbstick
If you want non-root users to be able to mount a USB memory stick via fstab, add the following line to your
/dev/sdc1 /mnt/usbstick vfat josepy,noauto,noatime,flush 0 0
Remeber to substitute josepy for your username.
Now any user can mount with
If you would like to format Partition to NTFS, use
mkfs.ntfs -Q -L Movies /dev/sb2