Difference between revisions of "Fstab"
(Created page with "Tips and trick for /etc/fstab ---- == Add USB memory stick to fstab == How to mound a memory stick to dedicated folder: * Create folder sudo mkdir /media/sticks/stick_1 * I...") |
|||
| Line 4: | Line 4: | ||
== Add USB memory stick to fstab == | == Add USB memory stick to fstab == | ||
| − | How to | + | How to mount a memory stick to dedicated folder: |
* Create folder | * Create folder | ||
| − | sudo mkdir /media/sticks/stick_1 | + | sudo mkdir /media/sticks/stick_1 |
* Insert memory stick and get device name | * Insert memory stick and get device name | ||
| − | sudo dmesg | + | sudo dmesg |
* Get UUID of memory stick | * Get UUID of memory stick | ||
| − | sudo blkid | grep sda | + | sudo blkid | grep sda |
| − | * Edit /etc/fstab and | + | * Edit /etc/fstab and insert |
| − | sudo nano /etc/fstab | + | sudo nano /etc/fstab |
| − | + | UUID=0C64-D81B /media/stick/stick_1 vfat noauto,user, 0 0 | |
| − | UUID=0C64-D81B /media/stick/stick_1 vfat noauto,user, 0 0 | ||
* After mount memory stick as normal user by | * After mount memory stick as normal user by | ||
| − | mount /media/stick/stick_1 | + | mount /media/stick/stick_1 |
Latest revision as of 07:42, 26 April 2023
Tips and trick for /etc/fstab
Add USB memory stick to fstab[edit]
How to mount a memory stick to dedicated folder:
- Create folder
sudo mkdir /media/sticks/stick_1
- Insert memory stick and get device name
sudo dmesg
- Get UUID of memory stick
sudo blkid | grep sda
- Edit /etc/fstab and insert
sudo nano /etc/fstab UUID=0C64-D81B /media/stick/stick_1 vfat noauto,user, 0 0
- After mount memory stick as normal user by
mount /media/stick/stick_1