When I use cp command as
 #cp -r /mnt/home and /home

i got an error at the starting time, I changed it as you mentioned 
#cp -pr /mnt/home/ and /home
 then it is worked

Thank you very much!

Another problem is that the command "#cp -pr /mnt/home /home" is wrong for our 
operation. It should be   "#cp -pr /mnt/home/  /". Otherwise the contents on 
/mnt/home/ is copied to /home/home/ directory.
I hop you got the meaning of it.

--
Thanks,
-Faisal





________________________________
From: Bobinson K B <[email protected]>
To: "This List discusses GNU/Linux & GNU, GPL Software" 
<[email protected]>
Sent: Wed, 26 May, 2010 3:58:43 AM
Subject: Re: [ILUG-Cochin.org] Change home directory

It will be a good idea to use options to preserve user permissions
while doing rsync / cp to avoid chown at a later stage.

-- 

Thanks and Regards,
Bobinson K B

On 26 May 2010 09:32, Siju George <[email protected]> wrote:
> On Wed, May 26, 2010 at 8:39 AM, Faisal Fiza <[email protected]> 
> wrote:
>> Hi,
>>  Im using Debian Lenny 5.0.3. Now my home directory is located on a separate
>> partition(/dev/sda9).
>> I want to install Kubuntu 10.04 on /dev/sda9 , so have to change the Debian
>> lenny home directory to its own root partition. Could you help me!
>>
>
> login as root in Lenny
>
> then type these commands
>
> #umount /home
> #mkdir /mnt/home
> #mount /dev/sda9 /mnt/home
>
> and see if all the files are there in /mnt/home
>
> if things are right type
>
> #rsync -av /mnt/home /home
>
> or if you dont have rsync you can also use
>
> #cp -r /mnt/home /home
>
> # cp /etc/fstab /root/fstab.old
>
> now comment out or remove the line from /etc/fstab that has  '/home' in it.
>
> reboot and login as root and type
>
> #mount
>
> you should not find any partitions mounted as /home
>
> now go and see if all the files are there in /home.
>
> Enjoy Kubuntu ;-)
>
> **You can do without reboot if you know what you are doing and are
> careful but I guess it is safe for you to follow the reboot step so
> you are sure***
>
> --Siju
>
> _______________________________________________
> Indian Libre User Group Cochin Mailing List
> http://www.ilug-cochin.org/mailing-list/
> http://mail.ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
> #[email protected]
>

_______________________________________________
Indian Libre User Group Cochin Mailing List
http://www.ilug-cochin.org/mailing-list/
http://mail.ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
#[email protected]


_______________________________________________
Indian Libre User Group Cochin Mailing List
http://www.ilug-cochin.org/mailing-list/
http://mail.ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
#[email protected]

Reply via email to