If you have any ide connections left, place the new hard drive as whatever you have available (ie, hdd, maybe?). If not, is there a CDROM or CDRW drive that you can temporarily disconnect?
If not, then you can do a 'tar -cvjf /path/to/tempdir/home.bz2 /home', which will tar / bzip2 anything on /home. 1. Next, place the new hard drive into the PC (and restart). 2. Once everything comes up (possibly with a /home mount error), type fdisk /dev/hd[a-d] (depending on where it is on the ide controllers), and create an ext2 partition. 3. Run mke2fs. 4. Run tune2fs (and add the journal to convert to ext3). 5. Mount the new partition as /home-new (make sure /home-new exists). 6. From within /home, do a 'cp -a * /home-new' (or if you've had to pull out the old /home, do a 'cp /path/to/tempdir/home.bz2 /home-new', then do a 'tar -xvjf home.bz2'. If this places an additional 'home' in the directory path (ie, /home-new/home/*), do a 'cd home' and then a 'mv * ..' . 7. Edit the fstab to mount the new drive as /home, and the old drive as /backup, /archive, or whatever (unless you have no spot for the old drive, in which case don't worry about adding an fstab entry for it). Michael -- Michael Viron Registered Linux User #81978 Senior Systems & Administration Consultant Web Spinners, University of West Florida At 04:04 AM 12/06/2001 -0200, you wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Hi, > >I have to change my HD! It contains only one partition (hdc) which is >/home/user... > >HD are different sizes...any trouble? > >I'm using ext3, now! How can I safely and reliabily copy all and every >files to the new one? > >I was thinking on making a temp directory, put all my stuff there and copy >them back! > >But the HD is plain new...I'm concerned on how I could create a new file >systems (ext3) and format it. > >Any recommendation? > >TIA > >Ricardo Castanho > > > >- -- >Whenever possible mailto:[EMAIL PROTECTED] >========================================================== >Linux user # 102240 => Machine # 96125 => Seti@home user >========================================================== >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.0.6 (GNU/Linux) >Comment: Made with pgp4pine 1.75-6 > >iEYEARECAAYFAjwPCl0ACgkQ9I0k95pf9Xs7JwCfZG1KgrPAlv+ceKzS6RB7372x >g1gAnjrldKQae5BYjPEBTH6eaVLKpCRI >=45AJ >-----END PGP SIGNATURE----- > > > >Want to buy your Pack or Services from MandrakeSoft? >Go to http://www.mandrakestore.com >
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com