Symlinking between different distros' /homes

I have an Asus Eee 1000 with several distros on;

sda*: Default Xandros - complicated irrelevant partitioning.

sdb1: home (Xandros)
sdb2: / Ubuntu eee

SDHC cards: openSUSE, Mandriva, broken Fedora

Obviously it’s useful to share home directories on such a setup, to the degree permissible. I realise that trying to actually share a /home and username is more trouble than it’s worth, so I’ve ensured that the user IDs are the same across distros, mounted sdb1 in all distros aside from Xandros, and in their home directories set symlinks to the data directories (Documents, Pictures, etc…) on sdb1 to replace the data directories themselves.

This works wonderfully, except that if I try to delete any files on the mounted /home partition through the symlinks, the OSes tell me they can’t move them to the recycle bin, and offer to fully delete them.

Cannot move file to the wastebasket, do you want to delete immediately?

Not a showstopper, but would be nice to fix it. I’ve thought about symlinking the recycle bins, but was concerned that might break stuff (are recycle bins more complicated than normal folders in linux? Do they have indexes and stuff?), and thought I’d seek advice first. Anyone got any ideas?

Could I apply a similar fudge to other directories, like tmp and log, or would that just be silly?

Thanks.

(Mods - hope you don’t feel I’m taking the Mickey posting this here, I realise that it isn’t SUSE specific, but it can certainly be applied by other SUSE users)


mike@linux-kfkt:~> mount
/dev/sdc1 on / type ext2 (rw,noatime,acl,user_xattr)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sdb1 on /mnt/.solid.state type ext3 (rw,noatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
securityfs on /sys/kernel/security type securityfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/proc on /var/lib/ntp/proc type proc (ro)
gvfs-fuse-daemon on /home/mike/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=mike)

mike@linux-kfkt:~> cat /etc/fstab
/dev/disk/by-id/usb-Single_Flash_Reader_058F63356336-0:0-part1 /                    ext2       noatime,acl,user_xattr 1 1
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
/dev/sdb1            /mnt/.solid.state    ext3       defaults,noatime      0 2

linux-kfkt:/home/mike # ls -l
ls: cannot access .gvfs: Permission denied
total 312
-rw-------  1 mike users 12032 Dec 29 15:52 .ICEauthority
drwx------  3 mike users  4096 Dec  9 03:49 .adobe
-rw-------  1 mike users  1023 Dec 27 17:36 .bash_history
-rw-r--r--  1 mike users  1177 Dec  8 01:12 .bashrc
drwx------  7 mike users  4096 Dec 28 12:30 .beagle
drwx------  4 mike users  4096 Dec  9 03:09 .cache
drwx------ 10 mike users  4096 Dec  9 13:56 .config
drwx------  3 mike users  4096 Dec  8 01:13 .dbus
-rw-r--r--  1 mike users    63 Dec 29 15:52 .dmrc
-rw-r--r--  1 mike users  1637 Dec  8 01:12 .emacs
drwxr-xr-x  4 mike users  4096 Dec 29 15:56 .emerald
-rw-------  1 mike users    16 Dec  8 01:14 .esd_auth
drwxr-xr-x  2 mike users  4096 Dec  9 13:48 .fontconfig
drwxr-xr-x  2 mike users  4096 Dec  9 13:48 .fonts
-rw-r--r--  1 mike users   516 Dec 10 02:15 .fonts.conf
drwx------  5 mike users  4096 Dec 29 15:52 .gconf
drwx------  2 mike users  4096 Dec 29 16:11 .gconfd
drwx------  7 mike users  4096 Dec 28 12:27 .gnome2
drwx------  2 mike users  4096 Dec  8 01:13 .gnome2_private
drwxr-xr-x  2 mike users  4096 Dec  8 15:43 .gstreamer-0.10
d?????????  ? ?    ?         ?            ? .gvfs
drwxr-----  2 mike users  4096 Dec  8 01:14 .hplip
-rw-r--r--  1 mike users   861 Dec  8 01:12 .inputrc
drwx------  3 mike users  4096 Dec  9 13:50 .kde
drwx------  4 mike users  4096 Dec  9 13:50 .kde4
drwx------  3 mike users  4096 Dec  8 01:14 .local
drwx------  3 mike users  4096 Dec  9 03:49 .macromedia
drwxr-xr-x  4 mike users  4096 Dec  8 15:48 .mozilla
drwxr-xr-x  3 mike users  4096 Dec 28 12:27 .nautilus
drwx------  3 mike users  4096 Dec 16 01:00 .ooo3
-rw-r--r--  1 mike users  1028 Dec  8 01:12 .profile
drwx------  2 mike users  4096 Dec  8 01:14 .pulse
-rw-------  1 mike users   256 Dec  8 01:14 .pulse-cookie
drwxr-xr-x  2 mike users  4096 Dec 10 10:31 .qt
-rw-------  1 mike users 16091 Dec 29 16:11 .recently-used.xbel
drwxr-xr-x  2 mike users  4096 Dec  9 13:48 .skel
drwx------  4 mike users  4096 Dec 22 11:50 .thumbnails
drwxr-xr-x  4 mike users  4096 Dec  8 01:14 .tomboy
-rw-r--r--  1 mike users  4553 Dec 29 15:53 .tomboy.log
drwxr-xr-x  2 mike users  4096 Dec 28 12:28 .wapi
-rw-r--r--  1 mike users  1940 Dec  8 01:12 .xim.template
-rwxr-xr-x  1 mike users  1446 Dec  8 01:12 .xinitrc.template
-rw-------  1 mike users 10524 Dec 29 15:58 .xsession-errors
-rw-------  1 mike users 53394 Dec 28 12:39 .xsession-errors.old
-rw-r--r--  1 mike users 21667 Dec 27 22:10 .y2log
-rw-r--r--  1 mike users   282 Dec 27 17:46 .y2usersettings
drwxr-xr-x  2 mike users  4096 Dec 27 17:46 Desktop
lrwxrwxrwx  1 mike users    32 Dec 16 01:09 Documents -> /mnt/.solid.state/user/Documents
lrwxrwxrwx  1 mike users    32 Dec 16 01:09 Downloads -> /mnt/.solid.state/user/Downloads
lrwxrwxrwx  1 mike users    28 Dec 16 01:09 Music -> /mnt/.solid.state/user/Music
lrwxrwxrwx  1 mike users    31 Dec 16 01:09 Pictures -> /mnt/.solid.state/user/Pictures
lrwxrwxrwx  1 mike users    29 Dec 16 01:09 Videos -> /mnt/.solid.state/user/Videos
drwxr-xr-x  2 mike users  4096 Dec  8 01:12 bin
drwxr-xr-x  2 mike users  4096 Dec  8 01:12 public_html

> This works wonderfully, except that if I try to delete any files on the mounted /home partition through the symlinks, the OSes tell me they can’t move them to the recycle bin, and offer to fully delete them.

A stab in the dark.

Is it because the underlying “mv” has to copy and delete to “move” a file into the wastebasket when the wastebasket is on a different disk?

Can you successfully put a file in the wastebasket when the file is on the same disk as the wastebasket?

Yep, deleting any old file on the normal filesystem goes to the wastebasket. Creating a symlink to another directory on the same disk, then deleting something through the symlink works similarly.

It just doesn’t like doing it through a symlink to another disk.

:\

I suppose the only other thing I could try would be moving SUSE’s wastebasket onto sdb1. But I don’t think it would like that. :slight_smile: