[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A-posteriori use of another HDD for the /home/username



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Osamu Aoki <osamu@debian.org> writes:

> On Fri, Dec 25, 2009 at 11:20:49PM +0100, Merciadri Luca wrote:
>> I re-tried exactly the same thing, but with the same contents on both
>> HDDs (proved with a diff). I had to use 
>> 
>> # cp --recursive --update .[a-zA-Z0-9]* /mnt/mymnttosdc5
>
> The root cause of problem is you used "cp --recursive --update * blh ...".
> Since things may have messed up somewhere, it is better to do it over.
>
> # cd /mnt/mymnttosdc5
> # rm -rf * .*
> rm: cannot remove directory `.'
> rm: cannot remove directory `..'
> # cd
> # cp -a ./ /mnt/mymnttosdc5
> # vim /etc/fstab
> ... set up mount for your new home for next boot
> # mount -t auto /dev/sdc5 /mnt/mymnttosdc5
>
> Check how things are working.
Same. I erased everything, and then re-copied everything. Same result.
>
> Of OK, reboot.
Not applicable.
>
> Check how things are working again.
Not applicable.

>
>> If the only way to make it is to use the symlink, no problem, but the
>> `cd'-related question still remains...
>
> Did you set up fstab.  Read "man 8 mount".
For sure. I should have posted it before, but

==
# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda5       /               ext3    errors=remount-ro 0       1
/dev/sda6       none            swap    sw              0       0
#/dev/sdc5       /home/merciadriluca ext3 errors=remount-ro 0 1
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/scd1       /media/cdrom1   udf,iso9660 user,noauto     0       0
/dev/scd2       /media/cdrom2   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
192.168.0.106:/home/merciadriluca /mnt/nfs/laptop/home/ nfs rw,sync,hard,intr 0 0
192.168.0.107:/home/merciadriluca /mnt/nfs/eee/home/ nfs rw,sync,hard,intr 0 0
==

> Also:
> http://www.debian.org/doc/manuals/debian-reference/ch09.en.html#_optimization_of_filesystem_by_mount_options
> http://www.debian.org/doc/manuals/debian-reference/ch09.en.html#_data_storage_tips
I have read them. Nice.
>
> Osamu
Thanks, Osamu.


I hope my problem is now clear. Do not hesitate to give me any
solution if you find out one.

Waiting for a solution to this unfortunate problem,

Thanks all.
- -- 
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAks10a8ACgkQM0LLzLt8MhzsbwCffwpt/xt/2ITusZiL9zU/I0yH
GxQAoKHssF4UnMZUcmSLhCsD3LYWaYYP
=V/oI
-----END PGP SIGNATURE-----


Reply to: