LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-13-2009, 10:21 AM   #16
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899

Why is rsync running?
cp -p should preserve time stamps
see man cp
 
Old 08-13-2009, 10:36 AM   #17
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
OH
maybe thats whats wrong

when I move the /home/grml folder to /home
I'm using a filemanager, cut/paste you know

Don't know why it's giving rsync errors
thats whille starting X

so, can I copy /home/grml to /home and preserve permissions and rsync times
via the cp command?

cp -a or cp -R or cp -p or cp -apR?
 
Old 08-13-2009, 10:40 AM   #18
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
cp -pR

what is rsync copying and why?
 
Old 08-13-2009, 10:44 AM   #19
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
I'm lost

rsync is complaining when I try to startx that the times in /home/grml aren't right
and it says operation not permitted..

don't know why?

my grml folder is
Quote:
2009-08-13 00:15
and original is
Quote:
2009-08-12 08:12
so, the files I placed in /home are more recent and maybe that's why it's freaking out?

how would I change the times back to
Quote:
2009-08-12 08:12
thats when it was made, it's a daily-snapshot download
 
Old 08-13-2009, 10:51 AM   #20
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Do you know why rsync is running?
What is rsync doing, what does it try to backup and/or restore?
Quote:
and it says operation not permitted..
So there is still a problem with the permissions.

Can't you disable rsync, after you know why and what it is doing?


BTW, what did you changed during remastering, only the background?
Is it worth remastering ?

Last edited by repo; 08-13-2009 at 10:53 AM.
 
Old 08-13-2009, 01:18 PM   #21
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Repo, I don't even know what rsync is LOL!

The rsync thing didn't start till I did the chmod, etc on /home/grml

I'm gonna boot it without the /home/grml folder
meaning I'm gonna bootit as normal, with empty /home/grml folder....

can I rsync the running /home/grml folder to remastered /home and use
--omit-directory-times??

is rsync similar to cp?
 
Old 08-13-2009, 01:43 PM   #22
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
The rsync thing didn't start till I did the chmod, etc on /home/grml
It did, but had no errors

I would suggest to find out what rsync is doing.
Seems to me it uses some directory and files to populate /home everytime you start X
You need to find the source files it uses to see what happens,
or try to find the rsync command that is executed.
 
Old 08-13-2009, 01:46 PM   #23
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Of course you are correct Repo

Somehow, grml populates /home/grml at boot via rsync maybe
and puts stuff there?

Cause when I boot up it's got stuff in it
but when I unsquashfs it doesn't

rsync huh?

Repo you wouldn't believe how many scripts are in one 188mb distro!

Happy hunting right?
I'll be back....
 
Old 08-15-2009, 06:50 AM   #24
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Thumbs up

ok
I think I have solved this baby!

To summarize; I am attempting to remaster GRML medium
it's very easy too, once you know the layout...

The issue was that somewhere within grml; the menu automatically is created at boot(I guess) and rsync populates /home/grml with all the files, including .fluxbox folder, .opera folde, etc

I guess it's rsync?

so, to be ablw to remaster from the console, without using Xnest or any desktop, I had to populate /home/grml/ with all my .* files/folders
from my runing usb grml setup.

anyway, so my remasters all were working till the desktop loaded and rsync would complain about timestamps on the folders I had placed in /home/grml

so, first you gotta change the owner from root back to user grml

Code:
chown -R grml:grml /home/grml/*
then you gotta chmod that bitch

Code:
 chmod 4755 /home/grml/*
This is where I was stuck...it boots but rsync complains about timestamps
on everything in /home/grml/*

so...I said Mmmmm.....timestamps?

Google "change file timestamps linux"

Huh...wha?

http://www.rampant-books.com/t_linux...file_touch.htm

ahhhh...

the timestamp i need was

Code:
2009-08-12 08:12
now, the year isn't included, so

Code:
touch -t 08120812 /home/grml/* change filestamp to 08120812
Hell yeah!

so now everything boots and runs great!
I will be submitting the whole easy "How To" and hopefully it'll get thru
Or should I post it in Debian forum?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chown v/s chmod justmovedtolinux Linux - Newbie 3 10-02-2008 06:43 AM
chown and chmod specialized Linux - Hardware 9 04-04-2006 09:26 PM
Chown & Chmod swatward Linux - Newbie 2 03-01-2005 12:57 PM
Log Chmod and Chown FernandoLozano Linux - Security 5 01-10-2005 09:01 AM
Understanding chmod, chown mikemrh9 Linux - Newbie 4 11-19-2004 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:52 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration