Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
So the x-gvfs-show mount option should be turned off (until such time as its dependencies are updated). And it works! ... ... well ... sort of. Only if you don't use the disc label as the mount point. The sdb# / sdc# ... method works fine, haven't tested the id mounts as these are even more problematic due to my setup - let me explain.
You see, I've got around 6 HDD's inside my PC (in addition to the SSD which hold the OS(s)). Sometimes I upgrade the HDDs to larger discs by copying the data to the new disc, then removing the old one and renaming the new one with the same label. Then I have the same mount point (/mnt/<Partition Label>) for the new disc as it was for the old (superseded) disc. This in turn means all my various symlinks work without modification (and I've got many of those and would be highly inefficient to edit each to refer to a new mount point). I.e. rename the new disc so it "impersonates" the old one which is now obsolete, making all other settings work without issue or need of modifications. If I used the id (as per gnome-disks's default mount point setting) or even the sdb# method, I tend to find that it changes every time I replace a disc - which in effect thus makes the whole idea of not having to edit any symlinks moot. So Label mounting is a necessity for me.
However, when I set the auto mount point to use the Label method, I get a further error just before the login screen at boot time: I'm told (once for each of these discs) that it's not ready and cannot be mounted at this time. Then I'm given the option to Skip / Manual recovery, neither allows me to mount at this time. So it's a situation of S, S, S, S, S, S ... type password, no discs available except the root SSD.
But then: after logging in I can manually mount these discs no problem. I can probably automate this process through a login script, but why should this happen now? It was working fine in 13.04. And further: unfortunately though, it then sets the mount point to /mnt/<username>/<Partition Label> ... which obviously then voids all my symlinks.
Thanks to the idea. Unfortunately it similar to GUID. I.e. a unique identifier for a particular device.
The problem with that (and why I'm not using it) is that my new HDD (by definition) would have a new GUID/UUID. And therefore a new mount point. Which is exactly what I don't want.
Now if it was only this once, I'd accept trying to find and edit all symlinks to point to the new mount point (together with the paths). But I don't want to run through that again in a year's time (when I can afford a larger disc). I suppose I could write a script or program to do this
Another alternative I've been playing around with is using "nested" symlinks. I.e. the default symlinks (spread throughout many folders in home and through shares) point through a single symlink in media to the relevant /mnt/890248976#####...... partition. That way I would only need to edit one single symlink (the one in media). That I'd be happy to do ... though it brings up another issue:
I was on the point of converting all my symlinks to hardlinks because if I don't then sharing them across samba creates a security hole: http://www.samba.org/samba/news/symlink_attack.html
But that brings up other issues, like hardlinks not being able to link to directories (only files) and not able to cross fs boundaries (e.g. one disc in ext4 and another in reiserfs). Not to mention, it would be even more difficult to edit/re-create hardlinks every time the mount point changes.
Perhaps I should just scrap the entire idea and change to fsunion. Though that would mean lots of reformatting and moving files about - at least to begin with (heard of some issues with fsunion though, so a bit scared of it).
Another alternative might be to go with JBOD. Perhaps going with ZFS/BTRFS instead, but the one's not perfectly Linux and the other is mostly still beta (and I've had issues with ZFS on linux like crashes causing corruption - especially when loads are high due to its extreme RAM requirements). Normal RAID is simply not an option - my discs are definitely NOT the same size.
If I go this route (fsunion / JBOD / spanned fs over multiple HDDs) I'd probably be able to get away from the symlinks. Any other alternatives I could try, or reasons to dispel the warnings which are keeping me from using some alternatives?
um, you are changing drives, therefore you have to make the adjustment. this is a USB device, therefor it will NEVER be static, the uuid is the best way to deal with this.
if you have symlinks pointing to the device instead of to a mount point you are doing it wrong. point to the mount point that will NOT change, then you have zero issues with your symlinks.
This isn't a USB disc, it's a HDD connected through a SATA cable direct from one of the mother-board's ports. I.e. I'm swapping an internal HDD for a larger one. If it was a USB it would've been even worse.
Though you're correct (and thanks), I failed to realize that I can actually mount the same drive into multiple locations. So it's immaterial what method its original fstab mounting is pointing to (so I also NOW consider UUID/GUID as the least troublesome). All that's needed is a mount instruction inside rc.local so it mounts that UUID/GUID reference to another point which you can name in the CLI command's switches to anywhere and any name you desire ... and it all works fine! With this I didn't even need to edit any links.
yes sorry for some reason i thought this was a USB device, but even with an internal HDD its the same process for the fstab, use either the /dev/sdX# or the UUID and mount it to the same place as the old drive it replaced.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.