LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-06-2003, 08:23 PM   #16
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30

>As it turned out, there were 2 problems: 1: cp -Rfa didn't copy all those little hidden config files and folders that are all over your home directory, i.e. the ones whose filenames are .something (how do you copy those, btw?? Other than one at a time, by hand, that is??

--Edited--
This is one of the less important reasons I discouraged you from keeping /home/laura in a separate partition instead of /home. Because we want to keep things simple and /home doesnt have files starting with the dot character.
--/Edited-

>and 2) I forgot that I'd copied all the files in /home over to the new partition as root...and when I tried to boot up as a normal user I didn't have rwx permissions on them, and I think that screwed me over just a little bit...well, now I know!

Are you sure that you used cp -a? -a stands for 'archive' and implicity means -dpR . that should mean copy without dereferencing links, preserve attirbutes (permissions, access/modify time etc) and be recursive. (see cp man page.). That means, even if you ran cp as root, the files at the destination would still be owned by the original file owner.

use this
for i in $('ls' -A ); do cp -a $i /mnt/<wherever>; done

from the directory you want to replicate. Substitute destination.

Mind you, it wont work with files/directories with spaces in their names. You can tweak the script a bit to make it work, if you want to

Last edited by nxny; 02-07-2003 at 12:23 PM.
 
Old 02-07-2003, 10:47 AM   #17
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Original Poster
Rep: Reputation: 30
hmmm...I'm confused, now...should I or shouldn't I have moved /home in its entirety to the new partition? From your earlier post, it would be more of a faux pas to move just /home/laura, instead of /home...(since things work now, I'm not changing it again for awhile at least, but now I'm curious)
 
Old 02-07-2003, 12:25 PM   #18
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Sorry, I got it wrong in my last post. I have edited it.

Are you saying that the dot-files under /home/laura didnt get copied when you did a 'cp -a /home/* /mnt/newfs/' ?

If yes, there is something *seriously* wrong going on here. I just did it to make sure that I'm not going insane and it worked just the way I thought.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition mounting/KDE errors after creating Fat32 Partition BertBert Linux - General 1 07-07-2004 10:59 AM
creating new partition trutnev Linux - Newbie 3 03-14-2004 07:31 AM
strange partition table - boot partition empty etanter Linux - General 0 12-23-2003 09:46 AM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM
Creating boot partition during Slack install bleach Linux - Software 5 11-30-2001 01:05 AM

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

All times are GMT -5. The time now is 05:51 AM.

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