How to clone a HD to pendrive


Forum: HD Install
Topic: How to clone a HD to pendrive
started by: satimis

Posted by satimis on Mar. 16 2006,14:32
Hi folks,

I have DSL 2.2b running on a partition of the HD.  I want to duplicate it on partition-1 of a pendrive which has 800Mb space more than sufficient to take up DSL2.2b.  Since both partitions are of unequal space I can't use "dd" command to do the job.  Therefore I tried using.

# cp -aR /mnt/hda5/8 /mnt/sda1/
Code Sample

........
........
cp: cannot create special file `/mnt/sda1/dev/ttyw6': Operation not permitted
cp: cannot create special file `/mnt/sda1/dev/ttyw7': Operation not permitted
cp: cannot create special file `/mnt/sda1/dev/ttyw8': Operation not permitted
cp: cannot create special file `/mnt/sda1/dev/ttyw9': Operation not permitted
cp: cannot create special file `/mnt/sda1/dev/ttywa': Operation not permitted
cp: cannot create special file `/mnt/sda1/dev/ttywb': Operation not permitted
cp: cannot create special file `/mnt/sda1/dev/ttywc': Operation not permitted
cp: cannot create special file `/mnt/sda1/dev/ttywd': Operation not permitted
cp: cannot create special file `/mnt/sda1/dev/ttywe': Operation not permitted
cp: cannot create special file `/mnt/sda1/dev/ttywf': Operation not permitted
...

I have to force-stop the process.

Is there a way to do the job.  If YES, the what command line shall I use?  TIA

Remark: the DSL on /dev/hda5 was not running.  I ran a LiveCD to do the job.

B.R.
satimis

Posted by pr0f3550r on Mar. 16 2006,19:03
See this, quite related:
< http://damnsmalllinux.org/cgi-bin....80;st=0 >

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.