LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-09-2013, 09:47 PM   #1
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,045

Rep: Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977
All owner:group set to 4015:4015 on Slackware trees from 13.37 through current??


For slint I maintain local mirrors of 13.37, 14.0 and current in 32 and 64 bit versions. I just ran following script and now have all files' owner:group set to 4015:4015 in all trees.

What can have happened, locally or remotely?

Code:
bash-4.2# cat maj.sh
#!/bin/bash
rsync -avzPH --del rsync://slackware.mirrors.tds.net/slackware/slackware-13.37 /media/versions
echo "maj 13.37 terminée."
rsync -avzPH --del rsync://slackware.mirrors.tds.net/slackware/slackware64-13.37 /media/versions
echo "maj 64-13.37 terminée."
rsync -avzPH --del rsync://slackware.mirrors.tds.net/slackware/slackware-14.0 /media/versions
echo "maj 14.0 terminée."
rsync -avzPH --del rsync://slackware.mirrors.tds.net/slackware/slackware64-14.0 /media/versions
echo "maj 64-14.0 terminée."
rsync -avzPH --del rsync://ftp.slackware.com/slackware/slackware-current /media/versions
echo "maj current terminée."
rsync -avzPH --del rsync://ftp.slackware.com/slackware/slackware64-current /media/versions
echo "maj 64-current terminée."
bash-4.2#
And the mirror list is empty on http://mirrors.slackware.com/mirrorlist/

Last edited by Didier Spaier; 10-10-2013 at 03:52 AM. Reason: s/user/owner/g
 
Old 10-09-2013, 09:53 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,531

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
the mirror list is empty since it was recently rebuilt from scratch due to hard drive failure and i guess Robby is still working on other thing, but it will be fixed soon
 
Old 10-09-2013, 09:57 PM   #3
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,045

Original Poster
Rep: Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977
Quote:
Originally Posted by willysr View Post
the mirror list is empty since it was recently rebuilt from scratch due to hard drive failure and i guess Robby is still working on other thing, but it will be fixed soon
Thanks for the info, Willy.
 
Old 10-09-2013, 11:12 PM   #4
jtsn
Member
 
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 803

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by Didier Spaier View Post
For slint I maintain local mirrors of 13.37, 14.0 and current in 32 and 64 bit versions. I just ran following script and now have all files' user:group set to 4015:4015 in all trees.
Use -rlpt instead of -a. Also instead of calling rsync multiple times (increasing server load) you can use multiple sources with one rsync call:

Code:
#!/bin/sh
MIRROR=slackware.mirrors.tds.net
SOURCES=${MIRROR}
TARGET=/media/versions

for VERSION in 12.1 12.2
do
        SOURCES="${SOURCES}::slackware/slackware-${VERSION} "
done
for VERSION in 13.0 13.1 13.37 14.0
do
        SOURCES="${SOURCES}::slackware/slackware-${VERSION} "
        SOURCES="${SOURCES}::slackware/slackware64-${VERSION} "
done

rsync -rlpt --delete -P ${SOURCES} ${TARGET}
 
2 members found this post helpful.
Old 10-10-2013, 03:51 AM   #5
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,045

Original Poster
Rep: Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977
It worked, thanks jtsn.

I just kept the -H option to preserve hard links.

Last edited by Didier Spaier; 10-10-2013 at 03:53 AM.
 
Old 10-10-2013, 04:04 AM   #6
GazL
Senior Member
 
Registered: May 2008
Posts: 3,330

Rep: Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885
I run my rsync as a non-root user specifically created for the purpose, so everything ends up being owned by my local user rather than some arbitrary foreign UID:GID
 
1 members found this post helpful.
Old 10-10-2013, 04:52 AM   #7
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,045

Original Poster
Rep: Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977
Quote:
Originally Posted by GazL View Post
I run my rsync as a non-root user specifically created for the purpose, so everything ends up being owned by my local user rather than some arbitrary foreign UID:GID
Yes, omitting -og will allow that.
 
Old 10-10-2013, 12:24 PM   #8
jtsn
Member
 
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 803

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by Didier Spaier View Post
I just kept the -H option to preserve hard links.
Are there hard links on the mirrors?
 
Old 10-10-2013, 12:42 PM   #9
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,045

Original Poster
Rep: Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977
Quote:
Originally Posted by jtsn View Post
Are there hard links on the mirrors?
Yes, here is an example (mirrored from USOSL):
Code:
bash-4.2$ ls -l /media/versions/slackware{,64}-current/usb-and-pxe-installers/
/media/versions/slackware-current/usb-and-pxe-installers/:
total 50096
-rw-r--r-- 2 didier users    31203 mars  21  2011 README_PXE.TXT
-rw-r--r-- 2 didier users     9197 sept. 25 06:33 README_USB.TXT
drwxr-xr-x 2 didier users     4096 juin  26  2007 etherboot
-rw-r--r-- 1 didier users      882 mars  27  2013 pxelinux.cfg_default
-rw-r--r-- 1 didier users 51225600 oct.   2 04:36 usbboot.img
-rw-r--r-- 2 didier users    15697 sept. 25 07:14 usbimg2disk.sh

/media/versions/slackware64-current/usb-and-pxe-installers/:
total 37068
-rw-r--r-- 2 didier users    31203 mars  21  2011 README_PXE.TXT
-rw-r--r-- 2 didier users     9197 sept. 25 06:33 README_USB.TXT
-rw-r--r-- 1 didier users      574 mars  27  2013 pxelinux.cfg_default
-rw-r--r-- 1 didier users 37889024 oct.   2 03:02 usbboot.img
-rw-r--r-- 2 didier users    15697 sept. 25 07:14 usbimg2disk.sh
bash-4.2$
EDIT and there was a hard link in slackware64-current between /isolinux/initrd.img and /EFI/BOOT/initrd.img before the "grubification" of /EFI/BOOT.

Last edited by Didier Spaier; 10-10-2013 at 01:26 PM. Reason: EDIT added
 
Old 10-10-2013, 01:03 PM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,195

Rep: Reputation: Disabled
Only a "ls -i" will show whether there are hard links: The two files' inode numbers will have to be identical.

Eric
 
Old 10-10-2013, 01:08 PM   #11
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,045

Original Poster
Rep: Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977
Code:
bash-4.2$ ls -li /media/versions/slackware{,64}-current/usb-and-pxe-installers/
/media/versions/slackware-current/usb-and-pxe-installers/:
total 50096
33822333 -rw-r--r-- 2 didier users    31203 mars  21  2011 README_PXE.TXT
33823360 -rw-r--r-- 2 didier users     9197 sept. 25 06:33 README_USB.TXT
33822315 drwxr-xr-x 2 didier users     4096 juin  26  2007 etherboot
33822336 -rw-r--r-- 1 didier users      882 mars  27  2013 pxelinux.cfg_default
33822756 -rw-r--r-- 1 didier users 51225600 oct.   2 04:36 usbboot.img
33823417 -rw-r--r-- 2 didier users    15697 sept. 25 07:14 usbimg2disk.sh

/media/versions/slackware64-current/usb-and-pxe-installers/:
total 37068
33822333 -rw-r--r-- 2 didier users    31203 mars  21  2011 README_PXE.TXT
33823360 -rw-r--r-- 2 didier users     9197 sept. 25 06:33 README_USB.TXT
17439012 -rw-r--r-- 1 didier users      574 mars  27  2013 pxelinux.cfg_default
17432645 -rw-r--r-- 1 didier users 37889024 oct.   2 03:02 usbboot.img
33823417 -rw-r--r-- 2 didier users    15697 sept. 25 07:14 usbimg2disk.sh
bash-4.2$
The '2' before the owner shows that it's a hard link too (PV told me, so that _should_be_true_ :-)

PS Eric, though that was not intentional, stuff in that example are mostly your work. Thanks

Last edited by Didier Spaier; 10-10-2013 at 01:20 PM. Reason: PS added.
 
Old 10-10-2013, 02:35 PM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,195

Rep: Reputation: Disabled
Ah, indeed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Trees, B-Trees, B+Trees and H-Trees LXer Syndicated Linux News 0 07-15-2013 02:11 PM
Is PKG_CONFIG_PATH set wrong in slackware64-current?? lumak Slackware 20 09-15-2009 02:07 PM
Mplayer Crashes on Current Video Suddenly on Data DVD Playback mrmike503 Linux - Software 1 11-15-2008 12:22 PM
howto use dcop to set current mixer GerhardMagnus Linux - Desktop 0 11-17-2006 12:34 PM
how to set current VM? Moebius Linux - Software 2 08-24-2004 07:51 AM


All times are GMT -5. The time now is 02:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration