Results 1 to 5 of 5

Thread: can you boot from flash disk on usb 2 with the CD Image

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jun 2006
    Posts
    1

    can you boot from flash disk on usb 2 with the CD Image

    With the increase of flash disk tech is it possible to boot from a flash stick, and save settings dynamically to it?

    Thank you

  2. #2
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    It can be done, but most BIOS don't support it. Even my HP notebook bios which has "boot from USB drive" right in the modest list of bios boot options does not do it properly.

    I'm not sure of how to exactly build the Knoppix flash drive, but a Knoppix derived distro, Damn Small Linux now has an installer that will make the flash image for you. And it only needs a 64 meg flash device. I would suggest that you try making a DSL flash device to find out if your hardware will really support it before you try getting Knoppix onto a flash device (and you may learn a lot about how the flash device needs to be structured in the process). Use the link above to get started.

  3. #3
    Moderator Moderator
    Join Date
    Mar 2004
    Location
    Menlo Park, California
    Posts
    674

    Re: can you boot from flash disk on usb 2 with the CD Image

    Quote Originally Posted by bin_aries
    With the increase of flash disk tech is it possible to boot from a flash stick, and save settings dynamically to it? Thank you
    Have a look in here: http://www.knoppix.net/forum/viewtop...?p=93758#93758
    Hope this helps,
    Gilles

    PS: I wonder why Harry never mention my link and solution...

  4. #4
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441

    Re: can you boot from flash disk on usb 2 with the CD Image

    Quote Originally Posted by ruymbeke
    PS: I wonder why Harry never mention my link and solution...
    I had forgotten all about it. I had seen it in the past but since I didn't have a flash device large enough for Knoppix and I had determined my target computer wasn't going to boot from flash, I just didn't get to use it and without reinforcement it was forgotten. Sorry.
    ---
    Verifying of md5 checksum and burning a CD at slow speed are important.

  5. #5
    Member registered user
    Join Date
    Jun 2006
    Posts
    59
    To install Knoppix 5.0.1 on a 1G usb pendrive *for testing* you do the following.

    1. stick the device into the computer and hit the power button (note: the computer should be off before attemping this first step)
    2. boot knoppix and download knoppix 5.0.1 image and syslinux-3.11 to a storage device, not the usb stick.
    3. uncompress syslinux-3.11.
    4. open root console and goto syslinux folder, type ./mkdiskimage -4 /dev/sd? 0 64 32 (where ?=your flash device. *all data is now gone*)
    5. reboot (or if you know of someway of updating the system without reboot, do so... I don't)
    {you should now have a /dev/sd?4 device.}
    6. open console and make a new dir on / called... knoppix1 or whatever.
    7. type mount -o loop /path/to/knoppix/image.iso /knoppix1
    8. mount your device.
    9. copy the knoppix folder now found in /knoppix,1 too your device.
    10. copy the boot folder in /knoppix1.
    11. move all the files *except isolinux.bin, delete it* from /boot/isolinux to /.
    12. rename the isolinux.cfg file you just moved to syslinux.cfg.
    13. edit the syslinux.cfg file: add the following to the first line starting with APPEND under DEFAULT linux; fromhd=/dev/sd?4 noeject noprompt.
    14. goto /syslinux-3.11/unix folder.
    15. type ./syslinux /dev/sd?4.
    16. restart machine.
    17. change the bios to boot off usb device and your done.

    I'm wondering if having usb modules in minirt would speed up the initial boot process, something to try for later.

    I also add nofirewire to APPEND as well because i have a port but no device so boot is a sec or two quicker. you might also want to add home=/dev/? where ?=your storage device for your persistent home.

    As far as dynamic storage on the device itself. I tried partitioning 820 for the system image and 150 or so for a persistent home then I passed /dev/sda1 to mkdiskimage. The program started and stopped without error... but all it did was delete the partition. Here is what needs to happen. in the syslinux folder is a readme for usb pendrives, it says Bios is where the problem. untill the fix we must use mkdiskimage. Ideal solution whould be to create a empty home.img when you copy the system over and then have the boot scripts access and load the .img as rw. I don't know enough yet to be messing with the boot scripts and it takes forever to copy the system to disk. Update: looks like the device itself is mounted as read only which is great for security but the home .img on the same device is a risk.

    I read a thread somewhere else that mkdiskimage doesn't work with 2G pendrives... could be the fat16 fs.

    If you have asus a8v board your sound card will not be detected, you will need to type alsaconf. When I try to use the realtek driver it fails to find the sound device... the driver in use is very different, i don't think i like it.

    after a slow initial boot, kde and all the software runs lighting fast, are highly responecive and stable, almost like the toram option. If you cannot afford 1G of ram then this is the best route for performance. As far as security goes... the system is now on a writeable media, I dont know if i like that. on a cd-r it is not going to change.

    Hope this helps, I had lots of fun doing it and now it's easy to show off knoppix to my friends because it's on my keychain! too cool.

Similar Threads

  1. Knoppix boot with no flash disk bootable computer
    By erdemevin in forum Hardware & Booting
    Replies: 0
    Last Post: 02-27-2009, 03:11 PM
  2. 5.0.1 Flash, HD and persistent disk image, Realtek driver
    By Zrebel in forum Hardware & Booting
    Replies: 4
    Last Post: 07-03-2006, 01:47 AM
  3. My USB flash disk can't be a persistant homedir!
    By luke35 in forum Hardware & Booting
    Replies: 1
    Last Post: 02-20-2005, 11:49 PM
  4. Flash disk problem
    By cbrands in forum Hardware & Booting
    Replies: 3
    Last Post: 12-30-2004, 07:53 PM
  5. Auto encrypting USB Flash disk.
    By jj54 in forum General Support
    Replies: 1
    Last Post: 11-09-2004, 08:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Acer Aspire 14

Acer Aspire 14" AI Copilot+PC Laptop Core Ultra 5 226V Gen 4 ARC 16GB 1TB Refurb

$438.51



Dell Latitude 14

Dell Latitude 14" Laptop Computer Intel i7 Up To 32GB RAM 1TB SSD Windows 11 Pro

$429.73



SanDisk Extreme Pro 1TB USB Flash Drive - ‎SDCZ880-1T00-GAM46 picture

SanDisk Extreme Pro 1TB USB Flash Drive - ‎SDCZ880-1T00-GAM46

$169.00



Dell Latitude 14

Dell Latitude 14" Laptop Computer Intel i5 Up To 32GB RAM 1TB SSD Windows 11 Pro

$375.05



1TB Kingston DataTraveler Max DTMAX/1TB USB Type-C Flash Drive picture

1TB Kingston DataTraveler Max DTMAX/1TB USB Type-C Flash Drive

$86.95



Acer Aspire 16 16

Acer Aspire 16 16" Laptop Core Ultra 5 226V S2 16GB RAM 1TB SSD Arc Refurbished

$533.51



Lot of 16 Crucial MX500 1TB SSD 2.5

Lot of 16 Crucial MX500 1TB SSD 2.5" SATA 6Gb/s Internal SSD (CT1000MX500SSD1)

$1489.99



2TB/1TB Mini SSD Expansion Drive forGPDWIN5/ONEXPLAYER3/X2MINI PRO/SuperX/SuperV picture

2TB/1TB Mini SSD Expansion Drive forGPDWIN5/ONEXPLAYER3/X2MINI PRO/SuperX/SuperV

$388.99



Dell 8DN1Y 1TB 7.2K RPM Internal 2.5'' SATA SFF Hard Drive - ST1000NX0443 picture

Dell 8DN1Y 1TB 7.2K RPM Internal 2.5'' SATA SFF Hard Drive - ST1000NX0443

$29.99



External Solid State Drive USB 3.2 Gen2, 1TB SSD External Hard Drive with C to A picture

External Solid State Drive USB 3.2 Gen2, 1TB SSD External Hard Drive with C to A

$100.00