Customize cd - symlink problem

Post questions about how to make a customized SystemRescueCd, and if you have problems to install new packages. Please read the handbook first.
Linuxuser
Posts: 6
Joined: 09 Sep 2013, 16:49

Customize cd - symlink problem

Postby Linuxuser » 09 Sep 2013, 17:48

I get
/usr/sbin/sysresccd-custom extract

cp: cannot create symbolic link Operation not permitted

and searched the internet:


I tried a lot of flags combinations on the command "cp" when I finally saw a reasonable explanation for what was happening. VFAT (most pendrives uses this one), Fat-16 and (probably) Fat-32 too does not support symbolic links.

In my case, I had no size constraints and I decided to copy the entire file instead of the link. It can be done by using the flag -L: cp -rL source dest.

So without the symlinks a chroot is about to be impossible. And the new image might not work.

gernot
Posts: 1127
Joined: 07 Apr 2010, 16:19

Re: Customize cd - symlink problem

Postby gernot » 09 Sep 2013, 18:26

FAT cant handle links and many flags of a linux filesystem.
Use a ext filesystem as target or your new system will never work.

Gernot

Linuxuser
Posts: 6
Joined: 09 Sep 2013, 16:49

Re: Customize cd - symlink problem

Postby Linuxuser » 09 Sep 2013, 22:38

thanks,

after doing this:

% mkdir -p /mnt/custom/customcd/files/proc
% mkdir -p /mnt/custom/customcd/files/dev
% mkdir -p /mnt/custom/customcd/files/sys
% mount -o bind /proc /mnt/custom/customcd/files/proc
% mount -o bind /dev /mnt/custom/customcd/files/dev
% mount -o bind /sys /mnt/custom/customcd/files/sys
% chroot /mnt/custom/customcd/files /bin/bash
% gcc-config $(gcc-config -c)

i get errors of missing files in /dev
as example urandom, which is indeed not in the chrooted / dev. it would work
if i dont bind
% mount -o bind /dev /mnt/custom/customcd/files/dev
but i dont know if this might have unwanted sideeffects.

Linuxuser
Posts: 6
Joined: 09 Sep 2013, 16:49

Re: Customize cd - symlink problem

Postby Linuxuser » 11 Sep 2013, 22:37

well yesterday i found my 200mb slax iso got it working and found out the internet works and it has adobe flash and kde preinstalled
later i got my hands on a windows rescue cd, while it could not repair windows it could install a new one.

In this sense the problem is solved.


Return to “Customization and installing new packages”

Who is online

Users browsing this forum: No registered users and 2 guests