can we copy an installed Linux on a hard disk onto another hard disk

can we copy an installed Linux on a hard disk onto another hard disk

Post by sean ut » Thu, 06 Jul 1995 04:00:00




>Hello.....

>I'm wondering whether we can just copy the whole content of a disk onto another
>disk coz I'll be doing a lot of Linux installation and I'm trying to find a
>way to reduce the time.

>Thanx in advance.



Yes, I have been beating this around all day doing repairs to a crashed (lost
a drive) system.......
try
mount </dev/blah> /mnt
find / -xdev -depth -print|cpio -pdmv /mnt

sean
--
http://www.Northwest.com/index.html  Home of the Portland Linux Users Group
              The mom and pop corner store of the internet...
                503-777-4034 log on to new for an account
$30.00/6 month $50.00/year for shell $45.00/quarter $150.00/year SLIP/PPP

 
 
 

can we copy an installed Linux on a hard disk onto another hard disk

Post by Zarina Mu » Thu, 06 Jul 1995 04:00:00


Hello.....

I'm wondering whether we can just copy the whole content of a disk onto another
disk coz I'll be doing a lot of Linux installation and I'm trying to find a
way to reduce the time.

Thanx in advance.



 
 
 

can we copy an installed Linux on a hard disk onto another hard disk

Post by Jim Ma » Sat, 08 Jul 1995 04:00:00




> >I'm wondering whether we can just copy the whole content of a disk onto another
> >disk coz I'll be doing a lot of Linux installation and I'm trying to find a
> >way to reduce the time.

> Yes, I have been beating this around all day doing repairs to a crashed (lost
> a drive) system.......
> try
> mount </dev/blah> /mnt
> find / -xdev -depth -print|cpio -pdmv /mnt

You can copy one raw device to another:

cp <source raw device> <destination raw device>

This should create a destination disk with the source disks boot
blocks, linux partitions, DOS partitions ;-), swap partitions, ie.
a disk image.

This should work for both IDE and SCSI disks with the same geometry.
It will work for any combination of IDE and SCSI. It should even
work with different size drives with the obvious contraints of
potential inconsistency.

 
 
 

can we copy an installed Linux on a hard disk onto another hard disk

Post by John Bro » Sun, 09 Jul 1995 04:00:00




[...]

Quote:>You can copy one raw device to another:

>cp <source raw device> <destination raw device>

>This should create a destination disk with the source disks boot
>blocks, linux partitions, DOS partitions ;-), swap partitions, ie.
>a disk image.

>This should work for both IDE and SCSI disks with the same geometry.
>It will work for any combination of IDE and SCSI. It should even
>work with different size drives with the obvious contraints of
>potential inconsistency.

I have two IBM 1GB Deskstar XP drives, one IDE and one SCSI.  It sounds
like you are saying that if two partitions are the same size (is even
that necessary?) I will be able to use 'cp' under Linux to copy
everything from one partition to another, NO MATTER WHAT THE FILESYSTEM
ON THE FIRST PARTITION.  This sort of "universal copy" could be very
useful to someone who is experimenting with different file and
operating systems.  Could you verify this, and maybe go into it a bit
deeper?
--
John Brock

 
 
 

1. Replacing Hard Disk - Copying Linux system to new Hard Disk ????

Simple.

1) create a lilo boot disk with lilo, and the kernel on it (email me if you
   need to know how to do this too)

2) install the new drive in the system, create a filesystem on it, and
   mount it on, say, /mnt

3) copy the filesystem over, making sure to preserve permissions, and
   exclude /mnt and /proc.  Some ways to do this are

cp -a -x / /mnt
        note that the -x means only stay on one filesystem, so if you
        normally have more than one filesystem mounted, you'll need to copy
        those over, too.

( cd / ; tar --atime-preserve -l -p --same-owmer -v -cf - / ) | ( cd /mnt ;
tar --atime-preserve -p --same-owner -xf - )
        but all as one line...

4) after veryfying everything looks good, you can remove the old system,
   reboot off of the boot disk, and re-install lilo on the new disk.

--
Windows: I can play Doom!              |RedHat Linux 2.0.31pre-2 i486
Linux: I can be a file server, be a Web|Because reboots are for upgrades!
server, run the accounting package with|http://www.wpi.edu/~rasmusin/pgp.html
twelve terminals AND play Doom!        |for pgp key.        frank sweetser

2. Apple lagging behind?!?!

3. How to lock the bad sectors on the hard disk without reformatting the hard disk !!??

4. Need help configuring a Alpha on a home network

5. Ultra 5 IDE hard disks - can I use any PC hard disk?

6. RPC Question

7. how to copy boot disk to hard disk

8. Does AIX OS support UDI driver model

9. How do I copy a file from floopy disk to hard disk?

10. i am getting the following error while installing LRP onto Hard disk?

11. Neqwbie Advice: Install onto Win95 PC with 2 Hard Disks

12. Install onto PCMCIA hard disk

13. install llinux onto a large hard disk drive???