Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Not new to Linux but beginning to think I will always be a command line newbie.
Basically My main OS is Debian Sarge on HDb. I have Etch on HDa. I want to copy my Home directory in Sarge (HDb) to Etch (HDa) and replace the current Home directory in Etch.
Sounds easy and when I first started my RTFM and Googel trip a month ago that is what I thought but all my efforts have failed. I give up. I'm just not going to figure it out so can someone tell me how? My biggest road block seems to be permissions. I keep getting permission denied even though I am root.
I could tell you what I have tried but it's not working so I figure rather then try to fix what isn't working for me to just ask for a how to of all the steps.
Have you tried the obvious ? and tried to copy one to the other?? it might be that you'd need to use an arguement/switch with the cp command to get one to the other or something like that.
Theres a link in my sig that explains how to decypher man pages, but I'd have thought that man cp should tell you what you need to know.
First, be sure you really want to get rid of your Etch home directory, or, better yet, back it up first.
For the following, I am assuming you are currently booted into Sarge and that your /home directory on Etch is not a separate partition, and that / is on /dev/hda1. The following is best done as root.
If you don't already have a temporary mount point, create one. I will assume this is at /mnt/temp. If not, adjust the following accordingly.
mount /dev/hda1 /mnt/temp
rm -rf /mnt/temp/home
cp -a /home /mnt/temp
I think that should do it. If I have made a mistake, let me know what went wrong. Or if /home is on a separate partition, let me know, as I don't think the above will work for that.
First, be sure you really want to get rid of your Etch home directory, or, better yet, back it up first.
, Fresh install, worse case situation will reinstall.
Quote:
For the following, I am assuming you are currently booted into Sarge and that your /home directory on Etch is not a separate partition, and that / is on /dev/hda1.
Yes. Thank you. Will post back when I have had a chance to try it.
IBM put together an excellent tutorial on how to move /home. Highly recommended
Yes, I found a couple of those tutorials in my search but they are for moving to another partition and my attempts to adapt them to replace one Home directory with another never succeeded. Thanks though for trying.
to whatever commandline steps you are taking... as root of course. As far as I know, init 1 gives you the dumbest computer you can possibly have, so nothing should be using anything in the home directory which would give you an error if you try to move or delete it. Other than that, I don't know what to tell ya... it should work.
If that doesn't work, then we'll need to know exactly what you're doing and what the errors are.
Yes, I found a couple of those tutorials in my search but they are for moving to another partition and my attempts to adapt them to replace one Home directory with another never succeeded. Thanks though for trying.
I'm confused, you originally said
Quote:
I want to copy my Home directory in Sarge (HDb) to Etch (HDa) and replace the current Home directory in Etch.
If you just meant that you wanted to switch "/home_etch" and "/home_sarge", then just copy the contents to a temp directory, copy the contents of one "home" directory to it, clear it, then copy the data from the other directory to it. Something like the following ought to do it.
Ok let me explain another way. Right now the OS I use everyday is Sarge on HDb (primary slave.) That is a bit awkward when I'm experimenting with different Linux OSes so I want to switch my everyday OS to HDa. I thought I would use this also as an opportunity to upgrade Debian to Etch. I installed Etch on HDa (Master HD on Primary). When I get my Home directory moved and everything working I will Fdisk Sarge and use HDb for experimenting.
Hope I made it clearer. I was just trying to keep my original post as short as possible. Perhaps I left out to many details. Sorry.
I think that should do it. If I have made a mistake, let me know what went wrong.
For the most part that worked. Had to do one odd thing to get it to work but it worked with only a couple of glitches. One I understand. Mozilla doesn't work because it was opened when copied and parent lock was also copied.
The other is the KDE menu bar at the bottom isn't normal. That may just be a settings problem. It does work. Will spend a week or so on that then if I can't get it I may post back.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.