Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As proof I'm still relatively inexperienced, I booted my Ubuntu 8.04 fileserver without two drives that normally reside in a four-bay hot-swap SATA device and then spent two days trying to figure out why I was getting dropped to the shell with instructions to "manually repair filesystem." I finally realized that simply replacing the two missing drives resolved the problem.
Anyway, I have no real need to use the actual hot-swap ability, but I do want to be able to change drives around as needed (with the machine turned off) without different configurations causing a problem on boot up.
Try changing "UUID=xxxxxxxxx /media/sdd1 ext3 defaults,relatime 0 2" to
"/dev/sdd1 /media/sdd1 ext3 defaults,relatime 0 2" and the similar with the other drive. I found this my ubuntu server didn't complain recently when i removed a hdd mounted in this way.
Will this approach bungle the fact that one of the physical drives needs to always be sdd and the other sde? Reversing that will screw me up. How will the system assign the dev names?
I would keep the UUID, but add the noauto option. This will keep it from mounting at boot. Of course, then you may have to manually mount each drive if hal or udev don't take care of it automagically.
I believe you can edit either HAL or udev config files to make it automount if plugged in, but I haven't messed with that.
Thanks! I just want to keep my mount points segregated by UUID so that no physical drive ever pretends to be another ... and without confusing the boot up. I've got 26 letters to work with, right? Up to /dev/sdz1
You know, in this case I think lazy is good, because it's also simple. At my level of expertise, I need to keep things as simple as I can. I appreciate your advice.
No problem. Oh yeah, if you also add the "user" option to fstab you can even mount it as your normal user. Although I think you have to have rw access to the mount point.
I suggest you take a quick read through how to write udev rules: http://www.reactivated.net/writing_udev_rules.html
because one day you'll need a udev rule, and if you don't know about them, or appreciate the concept ... .. .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.