Re: Symlinking or hard linking additional storage to /home directories
On Saturday, November 12, 2016 11:45:12 PM David Wright wrote: > I agree with all that, but I avoid making symlinks. If I do a > recursive search of my home directory, there's really no point > in trawling through 300GB of photographs, so they're all under > /home/photos. I put them under /home just to avoid adding > directories to / but they're not users in the normal sense: > I own all the files. Similarly video, sound etc. Just to suggest another alternative, I put all of what I call my "real user data" (that is things like photos, documents, ...) under a different top level directory with subdirectories like the following: /rhk /rhk/photos /rhk/documents ... I do this to, among other things, separate user configuration data (typically hidden in /home/rhk) from "real user data". Before I did that, I used to do some dumb things. One of the things that is easy to do is move my "real user data" to other machines with no worry about messing up user configuration data on such other machines.
Re: Symlinking or hard linking additional storage to /home directories
On Sat 12 Nov 2016 at 19:15:29 (+0100), Nicolas George wrote: > Le duodi 22 brumaire, an CCXXV, Robert Menes a écrit : > > My question is this: which is the better path to take? Symlinking or hard > > linking another drive to ~/Music and ~/Videos? I understand that I > > will need to edit /etc/fstab and all; that's fine. Just curious as to > > whether symlinks or hard links are the way to go. > > You can not do hardlinks across different filesystems, so that part is > settled. > > You could not do hardlinks on directories either, you would have to work > plain file per plain file. That would be a pain. > > You could use bind mounts, but I really do not recommend it. > > I suggest mounting the extra storage somewhere like /data and using > symlinks; that is what I do. I agree with all that, but I avoid making symlinks. If I do a recursive search of my home directory, there's really no point in trawling through 300GB of photographs, so they're all under /home/photos. I put them under /home just to avoid adding directories to / but they're not users in the normal sense: I own all the files. Similarly video, sound etc. Cheers, David.
Re: Symlinking or hard linking additional storage to /home directories
On 11/12/2016 10:09 AM, Robert Menes wrote: > My current desktop setup currently has a Debian installation on a 120GB > SSD, which > is mounted with both the EFI system partition and as / for my rig. I have a > 3TB HDD > which I had mounted as /home during install. > > As my desktop case still has enough space in it, I was contemplating > getting another > pair of 3TB (or maybe even 4TB!) HDDs, and have them be symlinked or hard > linked > (whichever works better) to my ~/Music and ~/Videos folders. This setup is > currently > has only one user on it (my account, aside from root). I want to do this so > that I have > more space for my media, functioning as a backup for a NAS and for keeping > larger > project files for any audio and video work I do. > > My question is this: which is the better path to take? Symlinking or hard > linking another > drive to ~/Music and ~/Videos? I understand that I will need to edit > /etc/fstab and all; > that's fine. Just curious as to whether symlinks or hard links are the way > to go. I mount my drives under /mnt/drivename and symlink into those. In my file server, I bind mount subdirectories under /var/local and /var/cache. I mount Samba client shares under /mnt/sharename and /home/username/sharename, and symlink into those. David
Re: Symlinking or hard linking additional storage to /home directories
On 11/12/2016 08:30 PM, Nicolas George wrote: > Le duodi 22 brumaire, an CCXXV, Lars Nood�n a �crit�: >> What are the disadvantages of bind mounts? > > They require root privileges for any change. > > They are also more expensive than any individual symlink, but it does > not matter much if there are only a few. > > But I can reverse the question: what advantages do you see to bind > mounts in that particular circumstance? It fits with the /etc/fstab approach, and since Robert mentioned /etc/fstab mount comes to mind. Adding the user option there allows a non-root user to mount or unmount the pair of directories. However, as far as technical advantages proper, I don't know. Regards, Lars
Re: Symlinking or hard linking additional storage to /home directories
Le duodi 22 brumaire, an CCXXV, Lars Noodén a écrit : > What are the disadvantages of bind mounts? They require root privileges for any change. They are also more expensive than any individual symlink, but it does not matter much if there are only a few. But I can reverse the question: what advantages do you see to bind mounts in that particular circumstance? signature.asc Description: Digital signature
Re: Symlinking or hard linking additional storage to /home directories
On 11/12/2016 08:15 PM, Nicolas George wrote: [snip] > You could use bind mounts, but I really do not recommend it. [snip] What are the disadvantages of bind mounts? Regards, Lars
Re: Symlinking or hard linking additional storage to /home directories
On 11/12/2016 08:09 PM, Robert Menes wrote: [snip] > My question is this: which is the better path to take? Symlinking or hard > linking another > drive to ~/Music and ~/Videos? [snip] Directories can only be symlinked. But you might be interested in mount instead, especially the --bind option. Regards, Lars
Re: Symlinking or hard linking additional storage to /home directories
Le duodi 22 brumaire, an CCXXV, Robert Menes a écrit : > My question is this: which is the better path to take? Symlinking or hard > linking another drive to ~/Music and ~/Videos? I understand that I > will need to edit /etc/fstab and all; that's fine. Just curious as to > whether symlinks or hard links are the way to go. You can not do hardlinks across different filesystems, so that part is settled. You could not do hardlinks on directories either, you would have to work plain file per plain file. That would be a pain. You could use bind mounts, but I really do not recommend it. I suggest mounting the extra storage somewhere like /data and using symlinks; that is what I do. Regards, -- Nicolas George signature.asc Description: Digital signature
Symlinking or hard linking additional storage to /home directories
Hello everyone, My current desktop setup currently has a Debian installation on a 120GB SSD, which is mounted with both the EFI system partition and as / for my rig. I have a 3TB HDD which I had mounted as /home during install. As my desktop case still has enough space in it, I was contemplating getting another pair of 3TB (or maybe even 4TB!) HDDs, and have them be symlinked or hard linked (whichever works better) to my ~/Music and ~/Videos folders. This setup is currently has only one user on it (my account, aside from root). I want to do this so that I have more space for my media, functioning as a backup for a NAS and for keeping larger project files for any audio and video work I do. My question is this: which is the better path to take? Symlinking or hard linking another drive to ~/Music and ~/Videos? I understand that I will need to edit /etc/fstab and all; that's fine. Just curious as to whether symlinks or hard links are the way to go. Thanks! --Robert -- Nobody's ever lost in life...they're merely taking the scenic route. == Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html == -BEGIN GEEK CODE BLOCK- Version: 3.1.2 GCS/S/M/MU d- s+: a37 C++(+++) UL>$ P++ L+++ E+ W+ N+ o+ K++ w--- O- M !V PS+ PE Y+ PGP(+) t+ 5++ X++ R tv b+++ DI+++ D++(---) G++ e+ h- r++ y+ --END GEEK CODE BLOCK--