Posted: Sun Jul 24, 2016 16:32 Post subject: Issues copying /etc to USB drive
I'm trying to setup USB storage on my router (Buffalo WZR-HP-AG300H, DD-WRT v24-sp2 01/04/15) std (SVN revision 25760)) so that I can use a bit more storage and additional scripts.
So far so good until I get to the point where I try to copy /etc to the drive so that I'm not doing anything on the routers existing system. That way if I mess something up, I have a readonly copy to fall back on.
Code:
cp -a /etc /mnt/sda1/etc
cp: can't create symlink '/mnt/sda1/etc/etc/TZ': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/cron.d': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/dhcp6c.conf': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/dhcp6s.conf': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/freeradius/sites-enabled/control-socket': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/freeradius/sites-enabled/default': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/freeradius/sites-enabled/inner-tunnel': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/group': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/hosts': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/bt.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/bt1.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/bt2.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/bt3.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/clubbox.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/freegate_dns.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/freegate_http.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/gogobox.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/gtalk2.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/gtalk_file.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/gtalk_file_1.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/gtalk_vista.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/hamachi1.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/hotspot-shield.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/icq_file.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/icq_file_1.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/icq_file_2.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/icq_login.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/pre_icq_login.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/pre_msn_login.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/pre_urlblock.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/pre_yahoo_login.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/qianlong.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/qq_login.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/qq_login_1.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/qq_tcp_file.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/qq_udp_file.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/qqdownload_1.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/qqdownload_2.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/qqdownload_3.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/qqfile.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/qqgame.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/qqlive.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/qqlive2.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/teamviewer.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/teamviewer1.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/thunder5_see.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/thunder5_tcp.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/webmail_163.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/webmail_gmail.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/webmail_hinet.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/webmail_hotmail.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/webmail_pchome.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/webmail_qq.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/webmail_seednet.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/webmail_sina.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/webmail_sohu.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/webmail_tom.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/webmail_url.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/webmail_yahoo.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/webmail_yam.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/yahoo_camera.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/yahoo_file.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/yahoo_login.pat': Operation not permitted
cp: can't preserve ownership of '/mnt/sda1/etc/etc/l7-protocols/protocols/yahoo_voice.pat': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/mtab': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/nocat.conf': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/nvram': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/passwd': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/resolv.conf': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/snmp': Operation not permitted
cp: can't create symlink '/mnt/sda1/etc/etc/xl2tpd/xl2tpd.conf': Operation not permitted
Is there any fixes? _________________ Buffalo WZR-HP-AG300H: DD-WRT v3.0-r32170 std (06/01/17)
Posted: Sun Jul 24, 2016 20:47 Post subject: Root user
Are you logged in as root?
I was able to copy my entire /etc folder to a usb drive. The other way to copy it would be using WinSCP, then just drag the folder over. _________________ Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings
Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.
Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS
Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch