Why is Knoppix so great?
Here’s an application of backing up your hard drive to a windows shared drive.
I can boot up with a knoppix 5.1.1 livecd, enter knoppix 2 at the boot prompt, wait for it to boot and then mount my windows network drive with mount.cifs like so:
mkdir /mnt/mydrive
mount.cifs //192.168.1.100/my_shared_drive /mnt/mydrive -o user=myuser,pass=mypass
Then I can backup my 10GB drive to a file with:
dd if=/dev/hda of=/mnt/mydrive/myimagefile
Note that I'm mounting a NTFS partition over the network so I can have filesizes greater than 4GB with CIFS.
Also I've set my router up to give fixed IP addresses for each machine so I know what it's IP is without having to login to the router to find out the list of attached devices.
About 90 mins later, voila! An image file of my entire hard drive. How great is that??? CIFS is soooo sweet.
USING KNOPPIX TO MOUNT THE IMAGE FILE PARTITIONS
fdisk -l -u /mnt/mydrive/myimagefile shows me the partition table of my imagefile
-l flag lists the partitions
-u flag gives the partitions in sector sizes
Disk /mnt/mydrive/myimagefile: 0 MB, 0 bytes
240 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
/mnt/mydrive/myimage1 * 63 8195039 4097488+ b W95 FAT32
/mnt/mydrive/myimage2 8195040 19625759 5715360 f W95 Ext'd (LBA)
/mnt/mydrive/myimage5 8195103 12292559 2048728+ b W95 FAT32
63 * 512 = 32256
8195103 * 512 = 4195892736
and if I multiply the start sector by 512, I can mount a partition directly from the image file
mkdir /mnt/part1
mkdir /mnt/part2
mount -t vfat /mnt/mydrive/myimage /mnt/part1 -o loop,offset=32256
mount -t vfat /mnt/mydrive/myimage /mnt/part2 -o loop,offset=4195892736
Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox
$340.00
DELL PowerEdge R730XD 24x 2.5" Server Dual 750W Dual Heatsink - BareBones TESTED
$299.99
CSE-118 Supermicro 1U 3x GPU Server 2.6Ghz 20-C 128GB CX353A 2x1600W PSU Rails
$454.03
Dell Poweredge R640 Server | 2x Xeon Gold 6132 | 128GB | H730P | 8x HDD Trays
$1849.00
Intel Xeon E5-2697A v4 2.6GHz 40MB 16-Core 145W LGA2011-3 SR2K1
$37.00
Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1
$39.99
INTEL Xeon E5-2697 V4 SR2JV 2.30GHZ 18-Core CPU 2697v4 GRADE A CONDITION @24
$49.99
SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 A Grade Processor
$4.79
HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA
$234.98
Dell Precision T7920, 2x Xeon Gold 6148, 128GB Ram, 2TB SSD (2x 1TB NVME) No OS
$1099.00