On Sat, Mar 16, 2002 at 06:06:16PM +0530, Dr . Sharukh K . R . Pavri . wrote:
> My hdd was giving a problem and it's still within the warranty period,so I
> decided to get it changed. My present disk geomerty is as follows:
>
> hda1 /
> hda5 /home
> hda6 swap.
>
> I attached a second hdd as primary slave and created hdb1, hdb5 & hdb6. I
> then tar bzipped my home directory copied the file over to hdb5 and untarred
> it. so far so good. Then what I did was, mounted hdb1 on /mnt/floppy and did
>
> dd if=/devhda1 of=/dev/hdb1
>
> it then ran for some time and then said some_no_of_records in
> some_no_of_records out (or somethingl like that records in was the same as
> records out). No error messages were thrown.
>
> now when I run df -h I am shown the size of both hda1 and hdb1 as the same
> (2.1 G) but when I cd into /mnt/floppy (where I have mounted /dev/hdb1) I
> cannot see any files at all !! Why is this happening ?
>
> Would it be better to tar bzip / , copy it over and then untar it in
> /dev/hdb1 ?
>
---end quoted text---
To make a replica of existing directory to another hard disk,
after making the partitions, and mkfs, all that is needed is
#cp -a <sourcedir> <destdir>
All files, dirs, links and fifos with original ownerships and
permissions would be copied.
You may use "cp -dpR" as well.
There is no need for "dd".
HTH
Bish
--
:
####[ Linux One Stanza Tip (LOST) ]###########################
Sub : Additional consoles LOST #017
To add more consoles to the default 6, edit /etc/inittab. To
lines looking like this:
6:23:respawn:/sbin/getty tty6 | Do not cross 11 because
| the last free tty is
... append something like: | needed by X. Anyway,
7:23:respawn:/sbin/getty tty7 | for most boxes, 10 is
8:23:respawn:/sbin/getty tty8 | good enough
####<[EMAIL PROTECTED]>###################################
:
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help