You are not logged in.

#1 2014-06-07 19:04:29

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

[Solved]Moving arch out of VM: rsync fails to create symlinks

I have a virtualbox VM hosted on win8.1, with an arch guest I want to move to physical hardware. Following the instructions here I have created a shared folder and executed the rsync command. The files come through fine (and I see them on my mounted partition), but there seems to be a problem with symlinks. An example looks like this:

rsync: symlink "/media/sf_R_DRIVE/linux/usr/lib/xorg/modules/extensions/libglx.so" -> "libglx.xorg" failed: Read-only file system (30)

I tried copying it both to an ext4 partition and into my ramdisk (ntfs). I'm mounting the ext4 partition with paragon's driver for windows. Are the instructions still usable? Can I just safely ignore those symlink errors?

edit: also, for some reason, the process seems to randomly stall with all activity stopping. Restarting leads to it continuing to copy for a while, only to stall again after a while. It stalls both on symlink errors and normal files...

Last edited by Soukyuu (2014-06-19 21:30:37)


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#2 2014-06-19 02:47:03

Minsc
Member
Registered: 2012-07-16
Posts: 95

Re: [Solved]Moving arch out of VM: rsync fails to create symlinks

The symlinks will fail as the destination link will be invalid. If you think about it, rsync will copy every file's info - so the syminks on the VM will still be referring to files on the VM, not the dest.

You can add -L (I think??) to rsync to prevent this.

edit: words.

Last edited by Minsc (2014-06-19 02:47:49)

Offline

#3 2014-06-19 21:28:42

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: [Solved]Moving arch out of VM: rsync fails to create symlinks

Hmm, I guess the info on the wiki  might need updating then. In the end I have created a raw disk image with vboxmanage (see here for example.)  and then used it to transfer the installation to the SSD, using the command on the wiki.


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#4 2016-07-19 04:11:48

gb96
Member
Registered: 2016-07-19
Posts: 1

Re: [Solved]Moving arch out of VM: rsync fails to create symlinks

Oh, just had this problem and tried the -L option for rsync.  Don't do it!  -L causes rsync to copy the destination (referant) of a symlink instead of the link itself.  Seems to work in many cases, however sometimes symlinks are circular as in /usr/bin/X11 -> .
When rsync -L tries to copy /usr/bin/X11 it expands it out in an infinite loop as in /usr/bin/X11/X11/X11/X11/X11 and so on until you kill it or run out of disk space on the destination filesystem.

Offline

#5 2016-07-19 05:19:52

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: [Solved]Moving arch out of VM: rsync fails to create symlinks

Welcome to the forums gb96.... We tend to leave the dead to rest in peace around here: https://wiki.archlinux.org/index.php/Fo … bumping.22

Closing.

Offline

Board footer

Powered by FluxBB