User:Kjkiser2/Linux USBKey Instructions

From WolfTech
Jump to navigation Jump to search

Mounting a USB Key Without Using the Root Account Each Time

  1. If you already have files on the USB key, please back them up before hand. You never know what might happen.
  2. To mount the USB key you need to find out which drive it will be loaded as. Normally, this is /dev/sda1. To make sure, log in with the root account and create the folder /mnt/usbkey; and then type the following command:
  3. >mount -tvfat -uomask=0000 /dev/sda1 /mnt/usbkey
  4. If it does not mount the usb key, use sdb1 and so on until you find the correct drive assignment.
  5. Now, edit /etc/fstab using vi and add the following line at the bottom:
  6. /dev/sda1 /mnt/usbstick vfat user,rw,noauto,umask=0 0 0
    • Note: Make sure to use the correct drive letter assignment.
  7. Now, once you login with your normal user account you'll be able to mount and unmount the usb key without having to be logged in with the root account.
  8. mount /mnt/usbkey
  9. umount /mnt/usbkey