Here is a short account of my (rather trivial) procedure for running Knoppix off an unmodified NTFS partition, with extra storage.
In case partitions can't be shrinked or deleted, this is a non-invasive way of adapting the PC to Linux. I have just used it on a new Toshiba Satellite R830, w/640GB disk.
1. Boot from USB. (In this case, external SSD-disk on USB3, very fast)
2. Copy KNOPPIX over to main NTFS partition.
3. Setup a new, large image file on the NTFS partition with ext4, mount it as /store.
4. Copy over /store from backup to the new "partition".
Here's what I did run:
All the indirection is of course not optimal, but with a Sandy Bridge I5-2410, I think I can live with it. Here's a snapshot of top while copying the filesCode:# fdisk -l Device Boot Start End Blocks Id System /dev/sda1 * 1 192 1536000 27 Unknown /dev/sda2 192 76169 610284544 7 HPFS/NTFS /dev/sda3 76169 77826 13309952 17 Hidden HPFS/NTFS # mount /media/sda2 # rsync -ax /mnt-system/KNOPPIX /media/sda2 & # dd if=/dev/zero of=/media/sda2/store.img bs=1M count=60000 & 60000+0 records in 60000+0 records out 62914560000 bytes (63 GB) copied, 682.558 s, 92.2 MB/s # losetup /dev/loop6 /media/sda2/store.img # mkfs.ext4 /dev/loop6 # losetup -d /dev/loop6 # mkdir /store # mount -o loop=/dev/loop6 /media/sda2/store.img /store # mount /media/sdb2 # rsync -ax /media/sdb2/local/ /store &
After starting from HD, I can manually mount this new image file, or I can add the commands to rc.local.Code:PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5071 root 20 0 2668 1184 664 S 22 0.0 14:26.44 mount.ntfs 21056 root 20 0 7668 4704 840 R 19 0.1 2:20.18 rsync 21058 root 20 0 19144 1916 620 R 19 0.0 2:21.09 rsync
This /store can be used also for remastering, but to be as failsafe as possible, I would recommend repeating the procedure for another similar image for that purpose. Maybe I'll come back with a detailed exposition of remastering on "foreign land" like NTFS.
Normally, it should be enough just to enter knoppix{64} and the usual boot options to run from NTFS - that image should be found first and used. But, of course, using the fromhd=/dev/sda2 makes it even more foolproof.


Reply With Quote
