-
Knoppix to Compact Flash (CF)
The plan:
I would like to write a script that will install an uncompressed Knoppix system to a CF or even a USB stick of about 4 - 8 Gig (these are quite cheap now). The reason comes down to speed; I need something that runs relatively quick and silent (read - No HD). I am not too sure how much faster an uncompressed version would run but I assume I'll get a bit more speed from it. Also, after it is installed, the automatic HW detection would no longer need to run as all HW drivers and configuration would be saved (installed) on to the CF.
I can not use a "standard" HD install as there are too many writes to the file system for a CF (/var/log, etc.) and there can be no swap file. The final product here is a remastered version of KnoppMyth, a MythTv version of Knoppix which is really cool.
My Questions:
1 - How do I get knoppix installed "uncompressed" but with the unionfs and RAMDisk still working?
2 - I would still like to be able to allocate a portion (partition) of the CF as the users "persistent" home directory.
3 - I would also like to have a script that will allow the use of apt-get or yum to install / update programs on the otherwise RO filesystem. How could I do this?
The "Other" Option:
One other option is to do a remote boot (PXE) of a standard Linux kernel and that actually works really well (and really cool) for a wired network interface but... If the box I am booting is using wireless, that will not work because the MB has no idea how to get to the network. The way around this might be to have a minimal Knoppix kernel on the CF. This kernel would only load up the wireless USB module then mount the rest of the file system over NFS to the "boot server".
If I went with this option I would want to understand how to use the local 1 Gig RAMDrive efficiently. It would obviously run the kernel but with the rest of the files system on the nework how could I use this as a cache?
Any and all ideas and suggestions are welcome and appreciated!
Thanks,
TJ
-
running uncompressed knoppix
With the flash drive in get the location or whatever the name of the media is you want to run from then use the knoppix tohd command and just send it to your flash drive then when you reboot you have to use the cd but if you copy the boot files over to your flash drive it should work from there too.. else you can always use knoppix fromhd="/media/knoppix/" this is how my current systems work. its easier than a real install for real HD installs I still use Debian.
-
If I do a tohd to the CF and run it, then things like /var/logs will constantly be writing to the CF and wear it out pretty fast. I suppose I could do a ramdisk and unionfs the /var directory..
-
Senior Member
registered user

Originally Posted by
tjscientist
If I do a tohd to the CF and run it, then things like /var/logs will constantly be writing to the CF and wear it out pretty fast. I suppose I could do a ramdisk and unionfs the /var directory..
Flash based storage devices have one weakness. After repeated write operations, sectors on the flash drive will begin to fail. By "repeated" I mean 100,000 write operations or so. This sounds like a lot but for some applications (Linux or Windows swap partition or swap file, log files, Web browser cache,etc) you can hit this limit after a few months of usage.
Your best bet is to install the compressed read-only knoppix files from the DVD over to your FAT32 flash drive partition and then use SYSLINUX to make it a bootable device. You can then use a persistent home on a flash drive partition or can manually back up files over to the device. This is known as a "poormans install". It is normally associated with a hard drive installation but can also be done to a USB thumb drive or other flash memory device/card. In fact, the folks at Damn Small Linux (based on an older version of KNOPPIX) have automated this process with an install script called "USB Install", but you can also use it on other flash drives besides USB based ones.
The advantage to this approach is the drive will not quickly wear out due to repeated writes because most of KNOPPIX logging is done by default to your RAM disk and not to your storage device.
An alternative approach is to format your device with a partition type JFFS file system and then install Linux on this partition. This file system is designed to work with flash based storage devices and it maximizes the life of the device by refusing to write to the same spot on your drive over-and-over again. The concept is also known as "wear-leveling".
Similar Threads
-
By Courage in forum Hardware & Booting
Replies: 4
Last Post: 08-12-2005, 12:48 PM
-
By monckywrench in forum Ideas
Replies: 4
Last Post: 04-20-2005, 06:46 PM
-
By drews in forum Customising & Remastering
Replies: 3
Last Post: 08-30-2004, 05:20 PM
-
By diablo266 in forum General Support
Replies: 1
Last Post: 03-28-2004, 05:05 AM
-
By amontefusco in forum Laptops
Replies: 4
Last Post: 12-09-2003, 09:46 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot
$100.00

Samsung 860 EVO 250GB SSD MZ-76E250 2.5" SATA III Solid State Drive -
$36.99

Western Digital Blue 3D NAND 500GB Internal 2.5" SSD - WDS500G2B0A
$49.99

Intel Solid-State Drive DC S3500 Series 240GB Internal 2.5" (SSDSC2BB240G4P) SSD
$29.99

Netac 2TB 1TB 512GB 256GB Internal SSD 2.5inch SATAIII Solid State Drive lot
$549.00

Fanxiang 256GB 512GB 1TB 2TB 4TB SSD Lot 2.5'' SATA Internal Solid State Drive
$42.99

2 PACK 128 GB SSD M.2 2280 SATA Solid State Drive Major Brands, Samsung, LiteON
$28.00

Fanxiang 1/2/5/10Pcs 2.5'' SATA SSD Lot 1TB 2TB 4TB 512GB 256GB TLC Internal SSD
$129.99

Samsung 250GB SSD 850 EVO 2.5" Internal Solid State Drive MZ7LN250 MZ-75E250
$25.99

Netac 120GB 256GB 1TB 2TB Internal SSD 2.5'' SATAIII 6Gb/s Solid State Drive lot
$75.99