Tag Archives: rsync

rsync & permission denied/operation not permitted & arch linux

I use rsync to sync directories between machines but one of my machines kept screwing up the permissions, I finally get time to track the “Operation not permitted” issue and it turned out to my vfat backup drive not being mounted under the right uid.

Coming from the old school Unix background, I thought updating /etc/fstab would be enough but due to this auto mount system it is done differently ;-)

It turns out you need to change the rules for the auto mount via file /etc/udev/rules.d/11-media-by-label-auto-mount.rules

So what did I need to change? Well it turned out to be simple uid= to match the uid of my normal user (use id xxx, where xxx is your username)

Below are the changes:

ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs",
ENV{mount_options}="$env{mount_options},utf8,
uid=501,gid=100,umask=002"

Building rsync for the pogoplug

I finally managed to get a cross compiler that works with the pogoplug, I first tried various custom build of the GNU C++ cross compiler on the Mac but none of them succeeded in creating binaries that were compatible with my little pink pogoplug.

Anyway, instead of boring you with various evening’s development woos… I will just tell you what I ended up doing which was to use VirtuaBox with ubuntu x86 and use this tar file (eg: bunzip2 it, tar xvf into $HOME)

Then to compile it I first had to setup the makefile for rsync:

# export PATH=$HOME/pogoplug-gcc/bin:$PATH
# CC=arm-none-linux-gnueabi-gcc ./configure --build=arm-linux\
 --host=arm-none-linux-gnueabi --target=arm-linux

Then to build is was easy… I just did…

# CC=arm-none-linux-gnueabi-gcc  make

Next, I found a small USB thumb drive, formatted in ext3 using ubuntu, placed it into the pogoplug, logged into it, remount’ed the drives using:

# mount -o remount exec /tmp/.cemnt/mnt_sdb1

You may need to change the mnt point, use mount to find it..

Now you will be able to use rsync via ssh and use –rsync-path to point to rsync on your ext3 drive.

I required, I make the rsync exe + md5 sum available… just shout!