Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. /dev/sdb1 on /media/KINGSTON type vfat (ro,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=cp437‌​,iocharset=utf8,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udi‌​sks)
  2.  
  3. # mount -o remount,rw/dev/sdb1/
  4. Usage: mount -V : print version
  5. mount -h : print this help
  6. mount : list mounted filesystems
  7. mount -l : idem, including volume labels
  8. So far the informational part. Next the mounting.
  9. The command is `mount [-t fstype] something somewhere'.
  10. Details found in /etc/fstab may be omitted.
  11. mount -a [-t|-O] ... : mount all stuff from /etc/fstab
  12. mount device : mount device at the known place
  13. mount directory : mount known device here
  14. mount -t type dev dir : ordinary mount command
  15. Note that one does not really mount a device, one mounts
  16. a filesystem (of the given type) found on the device.
  17. One can also mount an already visible directory tree elsewhere:
  18. mount --bind olddir newdir
  19. or move a subtree:
  20. mount --move olddir newdir
  21. One can change the type of mount containing the directory dir:
  22. mount --make-shared dir
  23. mount --make-slave dir
  24. mount --make-private dir
  25. mount --make-unbindable dir
  26. One can change the type of all the mounts in a mount subtree
  27. containing the directory dir:
  28. mount --make-rshared dir
  29. mount --make-rslave dir
  30. mount --make-rprivate dir
  31. mount --make-runbindable dir
  32. A device can be given by name, say /dev/hda1 or /dev/cdrom,
  33. or by label, using -L label or by uuid, using -U uuid .
  34. Other options: [-nfFrsvw] [-o options] [-p passwdfd].
  35. For many more details, say man 8 mount .
  36.  
  37. # remount
  38. bash: remount: command not found
  39. # mount -t remount,rw/dev/sdb1/
  40. # mount -t remount,rw/dev/sdb1/
  41. #
  42.  
  43. sudo fdisk -l
  44.  
  45. sudo mkdir -p /mnt/usb
  46.  
  47. sudo mount -o uid=$(id -u),gid=$(id -g) /dev/sdb1 /mnt/usb/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement