Results 1 to 5 of 5

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

  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
  •  


Dell OptiPlex 3080 Core i5-10500T 2.30GHz 8GB RAM 256GB SSD picture

Dell OptiPlex 3080 Core i5-10500T 2.30GHz 8GB RAM 256GB SSD

$149.99



Apple Macbook Pro 13

Apple Macbook Pro 13" A2338 M1 8-core CPU, 8-core GPU, 16GB, 1TB Logic Board

$295.00



Clear Touch Interactive Module CTI PCMOD PC55 ST i5 6core,8GB DDR4,256GB SSD NEW picture

Clear Touch Interactive Module CTI PCMOD PC55 ST i5 6core,8GB DDR4,256GB SSD NEW

$225.00



NEW Intel Core Ultra 7 265T 20-core 5.3GHz LGA1851 CPU Processor SRQCS 8P+12E picture

NEW Intel Core Ultra 7 265T 20-core 5.3GHz LGA1851 CPU Processor SRQCS 8P+12E

$269.99



(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray picture

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray

$174.99



Intel Core i9-9900KF 8-Core 3.60GHz LGA1151 CPU 16MB Cache BX80684 picture

Intel Core i9-9900KF 8-Core 3.60GHz LGA1151 CPU 16MB Cache BX80684

$163.00



HP EliteBook 840 G8: Core i5-1135G7 / 16GB RAM / 256GB SSD / 14” / Windows 11 picture

HP EliteBook 840 G8: Core i5-1135G7 / 16GB RAM / 256GB SSD / 14” / Windows 11

$215.00



AMD Ryzen 7 9800X3D 8-Core 16-Thread AM5 Zen 5 Desktop Processor NEW picture

AMD Ryzen 7 9800X3D 8-Core 16-Thread AM5 Zen 5 Desktop Processor NEW

$395.00



Intel Xeon Gold 6242 SR8FY 2.8GHz 22MB 16-Core 32 Thread FCLGA3647 CPU Processor picture

Intel Xeon Gold 6242 SR8FY 2.8GHz 22MB 16-Core 32 Thread FCLGA3647 CPU Processor

$59.48



Dell OptiPlex 5070 SFF i7-9700 (8-Core) 3.0GHz 16GB 256 SSD Windows 11 picture

Dell OptiPlex 5070 SFF i7-9700 (8-Core) 3.0GHz 16GB 256 SSD Windows 11

$250.00