|
Wednesday, 31 March 2010 12:27 |
|
I have a samba share on our backup machine to allow access to Photos/Movies/Music etc from windows machines. To save me having multiple shares I created a symlink from the samba-shared directory to my home directory so I could access it from windows machines etc. This worked perfectly until a recent Ubuntu upgrade broke it (on purpose). See Samba Bug 7014 or Ubuntu bug 542005 for details. To cut a long story short I followed the advice of my mate Tom and instead of using a symlink I mounted my home directory as loopback inside the samba-shared directory, and Bob's your uncle. /etc/fstab now looks like this:
# /etc/fstab: static file system information. # # Use 'blkid -o value -s UUID' to print the universally unique identifier # for a device; this may be used with UUID= as a more robust way to name # devices that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # / was on /dev/sda1 during installation UUID=8abe9e38-a3d6-44c5-a17a-431f89cbb1a3 / ext3 errors=remount-ro 0 1 # /home was on /dev/sda3 during installation UUID=fcdf535f-c39d-45d1-b224-1b0a17c068b4 /home ext4 defaults 0 2 # swap was on /dev/sda5 during installation UUID=e4acdc1a-d483-4f24-9ef1-a85eb947ffc8 none swap sw 0 0 # Main drive for samba shared files & backups (external USB 1TB MyBook Drive) UUID=6a7afc64-59bc-42f1-a8d8-6c5511eaf673 /media/1TBMyBook auto defaults,users,auto 0 1
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
# Mount some directories loopback inside the samba shared directory so we can # access them via samba (fix for Samba bug 7104 requires this) /home/cianer /media/1TBMyBook/shared/cianer none bind 0 0
Tom not only suggested this workaround but also found the correct fstab parameters for me, so I should leave the parting words to him: 
|