HomeОбразованиеRelated VideosMore From: theurbanpenguin

LINUX: Mount USB drives to permanent locations with UUID, fstab and udev

74 ratings | 13753 views
More videos like this on http://www.theurbanpenguin.com : In this tutorial we mount a USB dive to a fixed location using the file-system's UUID mounted in /etc/fstab. To make sure that the fstab is read for new hardware being detected, ie the usb drive being inserted, we create a udev rule to cater for this.
Html code for embedding videos on your blog
Text Comments (11)
Blade (4 months ago)
How can I use /etc/udev so that my USB wifi is always recognized or named wlan0 based solely on the USB port its plugged into? Or even ra0 is tolerable. Its not enough to have its mac address assigned to a wlan0 because if I plug a new USB WiFi card into the same USB port I'm back to square 1 with the long wifi card name. The latest Ubuntu now calls my wireless device wlx00c0ca973847 where it used to be simple like ra0 or wlan0.
Ray Crothers (1 year ago)
Very informative video mate, thank you so much, this has helped me greatly. Just what i wanted to know, I now frequent the "Urban Penguin" Site looking for tutes.
Nurple Truth (2 years ago)
nice vid. verry helpful.
Balu Karthikeyan (3 years ago)
Hi,.. Can i use any pendrive(not a specific one) to get detected automatically and trigger some script. Im using a raspberry pi for timelapse. where the i want to transfer the taken pictures to the pendrive automatically as an event of pendrive inserted. Is it possible,..?
Saquib Baqai (1 year ago)
i am working on something on the same lines, what i have done is i got devmon installed, than i created a entry in bashrc for a script, the script executes the devmon command -> devmon --exec-on-label "VAL_TEST" "cp -rf %d/file.mov /home/pi/Desktop/Media" so what it does is when a USB with label VAL_TEST is inserted it copies certain named (file*.mov) files to desktop folder and over writes the exiting files, its not perfect as i am getting problems with mounting files but it should work for you, let me know if it worked for you.
sushil rawat (3 years ago)
Thank you Sir, you solve my problem
Rasmus Koop (4 years ago)
Bbnm,m nkmm
alex horaczek (4 years ago)
Myles Currie (5 years ago)
This is a great tutorial, just what I was looking for. Very simple.
Tinowinks (6 years ago)
TOO complicated....man..
Rachel211 (6 years ago)
I'm simply trying to use a portable external hard drive. Normally (well with Windows) when I connect hardware it automatically prompts me to install software. Well not with Linux! It recognizes the device but that is all. Could you please help me or direct me to the appropriate channel? I just want to transfer these pictures. I thought I was pretty savvy for an average user. NOT. *sighs*

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.