![]() |
Is it possible to make a system only mount specific uuid's?
I'm not sure if this is the best section to post this question but I am wondering if it is possible to make my system mount only specific uuid's. For instance if I were to make a list of the uuid's of my devices and store it somewhere on my system could I make it so that my system would only mount the devices with those uuid's and ignore any other devices? Let me know if I need to attempt to explain better.
|
Your /etc/fstab would look like this:
Code:
# /etc/fstab: static file system information.Obviously your partitions, mount points and UUIDs are different. You obtain the UUIDs with the blkid command. jlinkels |
Thanks for the reply. Seems to be working for me. :-)
|
You can add noauto to have them NOT auto mount on boot. Probably safer than having a commented / missing entry in /etc/fstab. Unless you add user or group, only root should have the option to mount them. But root has the option to do that even if they are not in the /etc/fstab.
The blkid plus UUID route is definitely the way to go. My desktop flip flops the dev names on my drives because I have an older machine with a mixture if IDE (pata) and SATA drives. And if you boot with a usb stick plugged in, it gets a different /dev/ name than if you plug it in after booting. |
| All times are GMT -5. The time now is 12:19 PM. |