PDA

View Full Version : How to copy the whole harddisk using Knoppix Live Evaluation



cc
10-17-2003, 12:40 PM
hi

can I copy the whole hard disk over LAN with nfs using
Knoppix Live Evaluation or Knoppix READ ONLY ?

I tried today, but it doesn't work.

has someone any EXPERIENCE in this case ?

kind regards
cc

abp
10-17-2003, 02:48 PM
Try looking at the dd command eg:
man dd

OR


man tar

Eg:


# Device to backup (your harddisk partition)
$BD=/dev/hda1;

# The directory were $BD is mounted on. (mapped too)
$MP=/mnt/backup;

# $BD's filesystem type (eg: ntfs, ext2, cd9660, ext3, fat, ...)
$FT=auto;

# Mounted NFS directory
$NFSD=/mnt/nfs;

# Mount harddisk to backup
mount -t$FT $BD $MP;

# Enter mounted harddisk partition
cd $MP;

# Create a gzipped archive of $MP on $NFSD
# and a textfile contianing a list of the backupped files
tar pczvf $NFSD/backup.tar.gz . 2> $NFSD/backup.txt;

Got carried away :D

abp
10-17-2003, 02:55 PM
Sorry it should look like this:


# Device to backup (your harddisk partition)
BD=/dev/hda1;

# The directory were $BD is mounted on. (mapped too)
MP=/mnt/backup;

# $BD's filesystem type (eg: ntfs, ext2, cd9660, ext3, fat, ...)
FT=auto;

# Mounted NFS directory
NFSD=/mnt/nfs;

# Mount harddisk to backup
mount -t$FT $BD $MP;

# Enter mounted harddisk partition
cd $MP;

# Create a gzipped archive of $MP on $NFSD
# and a textfile contianing a list of the backupped files
tar pczvf $NFSD/backup.tar.gz . 2> $NFSD/backup.txt;

:oops:

cc
10-17-2003, 09:58 PM
and is working with Knoppix Live Evaluation or Knoppix READ ONLY ?

abp
10-17-2003, 10:41 PM
All commands used is 'standard' *nix.

Open a rootshell, because mount needs to be run as root.

Try it.