USB memory sstick driveForum: HD Install Topic: USB memory sstick drive started by: pstuy Posted by pstuy on April 24 2004,10:38
Can DSL be run from/on a USB memory stick drive?Cheers, Peter Posted by roberts on April 24 2004,14:54
Sure. First download the DSL bootusb.img from one of the download sites. I would first start by making the boot floppy from this .img file. Next grab your pendrive, you don't need to format it, now copy over the KNOPPIX folder. Next test your setup by booting from the floppy. DSL will run from the USB pendrive. Now, if your machine will boot from USB, copy the contents of the floppy onto the root directory of the pendrive. Do not copy to inside the KNOPPIX folder. Then go grab syslinux from < syslinux >You only need to run syslinux with a target of the usb pendrive. On windows for example do syslinux.exe -s E: Where drive E corresponds to your pendrive. Finally change your BIOS to boot from USB. I also had to change my BIOS to usb-keyboard in order for the boot from USB to work. Posted by pstuy on April 24 2004,21:57
Thanks Roberts!
Posted by raoulg on April 26 2004,14:47
another thing.ok, we can put our DSL in a USB stick. But, can we have a "home" directory in the USB stick too? Posted by libretto on April 26 2004,15:59
Finally the booting from USB stick thing is explained, cheers roberts!
Posted by roberts on April 26 2004,16:02
Lets see, since /home is inside DSL, and DSL in on the USB device, therefore ...If you mean a writeable area, since it is not a good idea to run a live filesystem on a USB device. Probably the easiest solution is to have two partitions. One for the read only DSL and the other for the backup/restore. That way it is under the control of the user when writes occur. It is in a way simulating a floppy. Then select device for backup sda2. Then use the boot time option to restore your setting. The end result is everything is on a single USB device. Posted by 3p0cHx on April 28 2004,21:13
When trying to "On windows for example do syslinux.exe -s E: Where drive E corresponds to your pendrive.", I get the error from WindowsXP: c:\windows\system32\cmd.exe - syslinux -s h: An application has attempted to directly access the hard disk, which cannot be supported. This may cause the application to function incorrectly. Choose "Close' to terminate the application. Also, trying to run syslinux w/in linux, I get an error message. I can't seem to get a valid boot partition on my USB Flash Drive :-( Posted by roberts on April 29 2004,00:20
I did this on a windows XP machine. If you are trying to point and click it may not be running the correct file. The easiest way is to make a small "bat" file consisting of :syslinux.exe -s E: Posted by pstuy on April 29 2004,03:32
Any difference between USB 1 or 2 drives?Some are advertised as "Bootable", some not. Cheers, Peter ( who has not got anywhere yet: Don't yet know how to get the 1.44 boot image on a floppy) Posted by roberts on April 29 2004,04:11
I have only tested booting on a Lexar JumpDrive USB 2.0. USB 1.1 is too slow. USB 2.0 is just OK. Not sure if I can boot from 1.1 but then I don't have much reason to want to.
Posted by Kanjuro on April 29 2004,18:53
I have read and followed your instructions. It loaded and I received the business card then the press enter to continue. After that its states that can not find knoppix filesystem. Any solution and second question can you modify the logo.16 and if so with what program and what is the resolution that you should do it at. Thanks for all the info prior to this. Posted by David Burns on April 30 2004,00:13
Quoting 3p0cHx:-- c:\windows\system32\cmd.exe - syslinux -s h: An application has attempted to directly access the hard disk, which cannot be supported. This may cause the application to function incorrectly. Choose "Close' to terminate the application. -- To further explain what roberts is saying, just typing 'syslinux' will run syslinux.com, which is also in the directory and seems intended for DOS-based operating systems. Typing syslinux.exe -s h: worked on Windows XP for me. Posted by Kanjuro on May 05 2004,19:05
I have actually not received the error even when I didnt add the .exe at the end. The steps I have followed were that I downloaded the iso file used a program to extract the knoppix folder on to the usb drive then I opened the bootusb.* and extracted that on to the usb then I ran the syslinux -s f: and I still can not load past the "can not find the knoppix file system" error. I am getting the loading usb modules then a bunch of stuff flys by then the error I am going to try a different iso and see if it makes a difference. By the way I have skiped the floppy step as far as booting it from the floppy simply for the fact that I do not have one.Thank you for all of your help every one. Posted by roberts on May 05 2004,20:11
It is always best to test with floppy on another machine. Makes trouble shooting easier. I knew I had things setup right, but still not booting, I had to go into bios and also set USB keyboard. I don't have a USB keyboard. But that was trick that worked for me. So I had to set both USB-ZIP and USB-KEYBOARD. Also this worked for me on a USB-2.0 pendrive.
Posted by bernardose Fakkertino on May 06 2004,09:21
can somebody tell in dutch how you must make dsl on a usb stick.Kan iemand in het nederlands vertellen hoe je die dsl op een usb stick krijgt ik snap er weinig van. Posted by Peter Stuy on May 06 2004,11:09
Jawel een beetje. Moet je me even emailen op pstuy@tpg.com.au Ok? Posted by Bernardose Fakkertino on May 06 2004,17:55
Ok
Posted by PocketLnt on May 07 2004,21:17
Funny you should mention that specific brand of USB Memory Stick. I too am trying to get DSL on a Lexmar Media JumpDrive 2.0 Pro, and the installation instructions you provided are very straightforward and understandable. However, none of my memory sticks (at the moment we have about 20 instock) seem to wish to properly boot DSL (or any Linux distributio nfor that matter). I know these sticks are definately bootable as I can properly install and boot FreeDOS from the drives. However, I need a system-on-USB that can properly read a wide range of filesystems including FAT, FAT32, NTFS, and EXT2. Thus I think DSL will fit my needs greatly. The steps by which I've attempted to create the system are outlined below: Step #0.1 - Download the usbboot.img and rawrite the image to a floppy. Step 0.2 - Download the latest DSL iso image and burn it to a CD. Step #0.3 - Download and unzip the lastest release of SYSLINUX. Step #1 - Boot from floppy to FreeDOS with USB device in the system. Step #2 - Clear the partition table and MBR from the device: fdisk /clearall 2 Step #3 - Create one primary DOS partitio non the device up to the maximum size of the drive and make it active: fdisk /prio:495 2 Step #4 - Reboot the system back into FreeDOS and format the USB device while copying over the system files: echo yes | format /u /s d: Step #5 - Boot the system into Windows XP. Step #6 - Copy the KNOPPIX folder from the burned CD to the root folder of the USB drive. Step #7 - Copy the files from the imaged floppy to the root folder of the USB device Step #8 - From a DOS prompt execute SYSLINUX to modify the boot sector of the device fro proper booting into DSL: syslinux.exe -s e: Step #9 - Boot into DSL from the device. Step #10 - Enjoy a cold one. The problem is that I cannot get past step #9. I've tried this method on mutiple USB devices and on multiple systems with no success. The systems just stop after the POST screen without going any further. If I remove the device the system boots into its normal operating system without problem. As a test I later went back and tried to boot from the imaged floppy with the KNOPPIX folder on the USB device. Needless to say that did not go well. With this information, is there anything that you can see that I am possibly doing wrong? Any ideas would be much appreciated. Cheers! Posted by roberts on May 07 2004,22:20
Well, what you did differently, was the formatting and mbr clearing.I have since found a really tiny usb mico pen drive from Iomega USB 2.0. No cap to lose. It is half the physical size of my Lexar JumpDrive. Anyway, same procedure as previously stated, it works. It is really small in physical size. But note, I did not format it. I figured it was made for Windows, the Syslinux.exe is for windows, so, leaving well enough along. I just copied the KNOPPIX folder, floppy image and applied the syslinux.exe command. Now, an interesting fact... Since reading your post, I decided to take a peek at how Linux sees this device. So booting from cdrom and then doing an fdisk -l /dev/sda1 shows a weird non-standard partition scheme. So, I would think that is where your problem may be. Knowning this I will leave well enough alone and will not be formatting my USB devices. Posted by cbagger01 on May 08 2004,03:04
I currently use a Melodistik USB 1.1 Pendrive / MP3 player for my data storage needs, but if "small" is more important to you than drive + MP3 player + headphones, check this out:< http://www.extrememhz.com/Intellistick20-p1.shtml > This thing makes even the smallest Pen Drive look big. One of these days I'll spring for one when the 1.0 gig model drops in price. Posted by lurker on May 08 2004,17:58
The same thing happened to me. At the command prompt, it also goes further and says usb_control/bulk_msg: timeout usb.c: USB device not accepting new address=2 (error=-110) usb_control/bulk_msg: timeout usb.c: USB device not accepting new address=3 (error=-110) Posted by steven on May 10 2004,14:43
Same problem here, however i did boot from floppy..After booting from the floppy the system complains about not finding the knoppix file system. And is going to a limited shell. After a small command overview i get : Knoppix# usb_control/bulk_msg:timeout usb.c : USB device not accepting new address=2(error=110) usb_control/bulk_msg:timeout usb.c : USB device not accepting new address=3(error=110) This is a sweex 128mb pendrive, with two partitions (1 meant for dsl, the other for usersettings) both fat16 formated Any tips would be great, trying to get a local coffee to go over on linux instead of the buggy windows they use now. DSL runs great on same machine from CD-rom, but would like change the start up to "without user intervention" However i do not get over the small problem of usb :P GReetings and ty for any tips Steven Posted by linnnn on May 12 2004,10:43
Since i can't burn a DSL CD,i use ISOBUSTER(http://www.smart-projects.net/)to extract the damnsmall-0.6.3.iso to my hd,and i get a knoppix directory which contains boot.cat,boot.img and a file---KNOPPIX.Is the the knoppix directory like the one on DSL CD?
Posted by PocketLnt on May 13 2004,20:16
Okay, turns out I'm a special kind of idiot. There were two reasons why DSL would not boot off of my USB device.The laptop (which I use to build it) will not boot from the USB device even if you set it to boot from USB-HDD in the BIOS. Instead you have to explicitly tell the computer at POST to boot from the USB-HDD. Everything boots fine and dandy. The second problem is the more vexing one. The systems(s) that I ultimately need to boot the device on does not play well with SYSLINUX. Following outlined steps I can get eny error from a single 'j' character then a hang to a full fledged "No Operating System Found". The curious thing was that no matter what it seemed that SYSLINUX was never apparently loaded in any stage. Here's where things get interesting. While attempting to install a stripped down Mandrake OS on the USB device it turned out that both systems could boot the device. It seems like the GRUB bootloader is widely accepted by a wide range of BIOSes. Which leads me to my ultimate question: Since Mandrake is way too heavy for my need, Is there any way to install DSL while using GRUB as the bootloader? Trying to do so from within DSL and from a KNOPPIX CD only complain that the target filesystems of /dev/sda and /dev/sda1 are read only. Since I still consider myself a Linux newbie detailed instructions would be appreciated, or any help for that matter. Thanks in advance. Posted by linnnn on May 14 2004,06:07
I think maybe my problem comes from bootusb.img.my procedure is : 1.Use ISOBUSTER to extract the damnsmall-0.6.3.iso,and get index.html and KNOPPIX folder with three files---boot.cat,boot.img and KNOPPIX(47,049KB). 2.Move index.html and the KNOPPIX folder to my usb device. 3.Create a DSL boot floppy by using RAWWRITEWIN and bootusb.img. 4.Boot with the boot floppy. Then i got: Can't find KNOPPIX filesystem,sorry. Dropping you to a (very limited) shell. Press reset button to quit. So,I think the problem maybe taht the bootusb.img can't detect my hardware. Posted by roberts on May 14 2004,06:49
The current version of the bootusb.img supports both OHCI and UHCI.OHCI = Open Host Controller Interface UHCI = Universal Host Controller Interface OHCI usually works for Compaq, Sis and other non-intel based systems. UHCI usually works for Intel and Via based systems. These are the modules that I was able to find for Knoppix based 3.3 systems. What is your USB Host Controller Interface? Posted by linnnn on May 14 2004,09:52
Thank you,roberts.MY USB Host Controller Interface is SiS 7001 PCI to USB Open Host Controller. Posted by charleswong on May 15 2004,03:01
This error "Can't find KNOPPIX filesystem,sorry" is common. I faced the same problem. I also noticed that some guys in the KNOPPIX forum encountered this problem as well. In file linuxrc, there is a statement "insmod file=cloop.o.....". Because of the insmod failure, the error "can't find KNOPPIX system" occurs. I've verified that file cloop.o is indeed there. But I don't know why insmod fails? Is it possible to check the exact error code of insmod in shell script file "linuxrc"? If so, we may know what root cause is!! Posted by covert91 on May 26 2004,14:39
I want to install DSL on a 486DX w 16Mb ram but the motherboard won't recognize that I have added a 8X cdrom. Can I install from a series of floppys?
Posted by pedrocelli on May 29 2004,19:49
Danke, roberts, es hat alles auf Anhieb funktioniert auf einem älteren Siemens 333 mit USB 2 und einem Memory-Stick. Ciaou, pedrocelli Posted by abstractius on June 09 2004,02:22
Hmm, I will soon be trying to multiboot my disgo USB2 device, and it USB-HDD has so far only worked for my DOS. Something non-standard must be happening, as booting in DOS seems to take over the BIOS 0 device (int 80 or something, I haven't looked into it, anyone knows?), but at some point this breaks, and I can't get either /dev/sda or /dev/hda to boot. I most definitely want to multiboot as I have a couple of machines where BIOS updates and stuff like that should take place with DOS, and then it's a great way to carry a couple of specialist linux minis. I'm really posting to find out what people think about good old loadlin: since DOS is defacto bootable, you reckon I could bypass other troubles by setting that up? Of memory serves right it could work nearly as well as grub or something, eg by boooting into a menu.bat. Comments?
Posted by cbagger01 on June 09 2004,12:16
Your BIOS may have the ability to boot and treat USB mass storage devices (like thumbdrive and USB HDD) as if they were real hard drives.This may cause problems with USB detection in DSL. Try creating a USB boot floppy and disabling the USB Boot/Storage support in your BIOS. It might work. Good Luck. Posted by AJamesLorenz on June 22 2004,19:56
well i do not have a floppy drive is there anyway to copy the contents of the floppy image to my usb drive without a floppy
Posted by cbagger01 on June 23 2004,01:37
It would not be possible to bypass the BIOS USB boot without using a boot floppy.If you try to use the floppy image on your USB drive, you are then stuck in a catch-22 situation. Posted by johnsmith on July 01 2004,10:27
I had this problem too. I solved it by modifying linuxrc inside miniroot.gz. The script scans devices /dev/sdx0-9 where x is a letter from a-z I guess. But my system recognizes the usb stick as /dev/sda without the number. Added this to linuxrc and worked like a charm. Posted by el_supremo on July 05 2004,01:11
Would you explain how you did this? I've unzipped miniroot.gz but at the moment can't figure out how to get inside miniroot. Thanks Pete Posted by el_supremo on July 05 2004,16:37
After web searching (and one false start) I've found out how to modify miniroot and have been trying to boot my USB compactflash card from the bootusb.img on a floppy.. I added /dev/sda to linuxrc but it didn't make any difference. I also noticed that the file system on my USB card is all lower case and thought that perhaps that might be why linuxrc can't find a directory called KNOPPIX. So I added a bit of script which also looks for /cdrom/knoppix. But that also made no difference. While running Knoppix I've checked that I can mount /dev/sda1 in the same way that linuxrc does it and it works, but when I try the real thing booting from a floppy linuxrc doesn't find it. Anyone got any ideas as to what else I could try to fix this? and a subsidiary question: why can't I create files with upper case names on the USB CF card reader? Best Wishes Pete Posted by el_supremo on July 07 2004,22:37
FWIW:After some mucking about I've managed to get the system to use the floppy drive to boot DSL off my old USB1 reader plugged into one of the m/b USB ports. I couldn't get DSL to recognize the USB 2 reader on the USB 2 PCI card. [edit] *not* DSL - I should have said "linuxrc (on the floppy)". That's as far as I'll be able to get because the BIOS doesn't seem to have an entry for a USB CF reader - it does have entries for USB ZIP and USB FDD but they don't do anything. Oh well, I've learned how to get at linuxrc within miniroot. Best Wishes Pete Posted by 87C751 on Aug. 03 2004,14:21
Great thread! Thanks to you guys, I've got DSL booting off a BusDrive 128MB USB stick. The interesting bits were: this stick was one of those with no partitions (i.e. /dev/sda), so I had to mod the boot floppy linuxrc. After that, I could get the system booted off the USB boot floppy. But syslinux did not appreciate the structure of the stick, saying 'File syetem " FAT16" not supported' (yes, the leading spaces were inside the double-quotes). I'm guessing the stick's factory formatting job was kind of funky. For some reason, the Gentoo install on this box doesn't like this memory stick, so I booted the DSL CD, nuked the partition table on the stick and created a new primary. Then rebooted to XP, formatted the stick as FAT, copied the KNOPPIX directory and the boot floppy files and finally ran syslinux.exe. No complaints this round, and when I rebooted with USB booting re-enabled on the mobo, DSL came right up! I'm posting this from USB DSL. Posted by lostcity on Aug. 04 2004,21:48
Sounds good. My question would be how do I get the 1.40 bootusb.img on a 1.38 floppy. Thanks in advance Posted by ke4nt1 on Aug. 04 2004,22:00
If your using a floppy disk that is in good condition, with no bad sectors, your size should be 1.44Mb, or, 1,457,664 bytes... Plenty of room for the 1.40 bootusb.img to fit ... It is designed to fit on a standard floppy... 73 ke4nt Posted by 87C751 on Aug. 14 2004,20:51
So far, I've got 3 different USB sticks booting DSL (Lexar JumpDrive, BusDrive and an FMI generic). Now I'm trying to do some fancy stuff and I find out that syslinux isn't passing user-entered options into the boot environment. So if I type 'dsl restore=/dev/sdb2' at the boot: prompt, the restore option doesn't show up in /proc/cmdline (as verified with an echo statement in the linuxrc inside miniroot.gz). I know user options work on the CD. I was using them all week. What the heck am I missing in the USB boot scenario? syslinux.cfg looks pretty much identical to the one in boot.img on the CD.Jumping slightly OT for a bit, does anyone know if FMI is still making the generic 64MB sticks that CompUSA used to sell? I like the form factor a lot. It's really slim, and will fit into a stacked USB socket alongside another plug without a problem (unlike the Lexars and BusDrive, which are too fat). If not FMI, is another company making a similar unit? Posted by ke4nt1 on Aug. 14 2004,23:44
"Microcenter" , in Houston,Texas runs ads in the local paper before Friday.This past week, they had a very long, but slim 256 meg usb stick for $29.99 after the $15.00 rebate.. Boo on rebates, but LOVE the price! 73 ke4nt Posted by 87C751 on Aug. 15 2004,00:27
Hmmm... I don't see it in their national ad, but MicroCenter is good for doing regional stuff. I did happen by Office Max yesterday and picked up two of the Lexar 64MB JumpDrives for $19.95 ea. They work well enough. I just wish they were a little slimmer. Here's what I mean: The one on the bottom is that CompUSA stick. Posted by cbagger01 on Aug. 15 2004,03:08
If you want something REALLY small, check out the IStick or Intellistick, from PQI.They are super small because they abandon the metal shield that protects the USB connector's contacts. This sheild will limit the minimum thickness of USB devices. They range in capacity from 32MB up to 1GB and they are the same thickness as a Sony Memory Stick or a SD/MMC flash card: Posted by ke4nt1 on Aug. 15 2004,04:56
You were right, the 256MB was last weeks ad..This week, same brand and shape, but only 128MB, and $10 cheaper I'd rather have had last weeks special.. 73 ke4nt Posted by 87C751 on Aug. 15 2004,21:33
I found the cause of the user option problem. I was using SYSLINUX 2.10 (hey, always use the latest, right?), which appears to have a problem. After checking the DSL USB floppy, I backversioned SYSLINUX to 2.04 to match and Presto! User options are passed in just fine.Now I just need to figure out how to alter /proc/cmdline on the way through. Posted by 87C751 on Aug. 16 2004,14:35
And another update: SYSLINUX 2.10 has a known issue with passing options. Moving to 2.11-pre3 took care of it.
Also, /proc/cmdline appears read-only, so I'll be thinking up another way to handle the basic idea, which is to have a USB key automagically determine its own backup/restore partition. Posted by ke4nt1 on Aug. 16 2004,15:54
NICE tip... Thanks..73 ke4nt Posted by invi[tus on Aug. 25 2004,09:10
well i have an interesting problem...I had no problem geting DSL to boot from my 64meg thumb drive.. the problem... no other usb devices are found. such as my mouse etc. no mouse = X no load other then that it has no problem detecting my sound nic etc. the same thing happens on 4 different systems i have here. i would say its the thumbdrive but puppy linux runs off the same drive drive just fine. my guess is that it has to do with the way dsl's usb boot setup works . so.. is anyone else having this problem Posted by ripcrd6 on Aug. 26 2004,13:44
in 0.7.3 I had to start typing "dsl xsetup" at boot if I was using a USB moose. I can't remember if I didn't get the scroll wheel or if it didn't work at all. I just do it everytime now.
Posted by invi[tus on Aug. 27 2004,00:31
thanks ill give that a try.the interesting thing is that the mouse works perfectly when booting from the cd .. also the mouse is not detected at all during the "auto configuring devices" as such it also doesnt work with mouse supporting console programs , like links, etc. config- DSL 0.73 PNY 64meg thumbdrive (usb 1.1) Posted by invi[tus on Aug. 27 2004,08:12
OK, i think ive found answer to my question ..while looking thru the knoppix usb boot faq's i came accross this.. "The problem with USB 1.1 drivers is, that USB devices like Mouse will stop working. By only using the USB 2.0 driver there is no problem with that" Posted by Tre Cool on Oct. 04 2004,04:22
Use Rawrite to write the bootusb.img to a formatted floppy (trust me it fits). Pop it in, along with the thumb drive that you have the dsl 0.8.2 img on, type boot:dsl and it works!Hope this helps someome... < Rawrite Link > Posted by Julian Stevens on Oct. 04 2004,12:56
When I try to boot my USB drive from the floppy boot disk, the X server fails to start up. I get: XIO: fatal IO error 104 (connection reset by peer) on X Server ":0.0" Any ideas what the problem might be? Thanks, Julian Posted by cbagger01 on Oct. 04 2004,16:31
Your problem is that you have selected the xfbdev XWindows server but you don't have a valid framebuffer loaded up at boot time.Do you see 1 or 2 little penguins appear in the upper corner after you are past the boot screen? If not, you need to start DSL with a different framebuffer mode. Maybe boot with "fb800x600" command, for example. Also, you could try and use the Xvesa server instead of the xfbdev server. After getting the error message, type: xsetup.sh (Choose Xvesa settings) startx Posted by Julian Stevens on Oct. 04 2004,16:53
When booting up I see one penguin in the top left corner (after loading of mini root). Xvesa is loaded by default, but I tried reconfiguring, as you suggested, using xsetup.sh. After this I ran startx, but got the message: giving up xinit: connection refused (errno 111) xinit: unable to connect to X Server Anyway, I'm giving up and going home now (!), but thanks for the suggestion, and any further advice would be welcome. (BTW, I'm using the bootusb-0.8.img) Julian. Posted by Julian Stevens on Oct. 06 2004,08:13
After failing to get my USB memory stick to load the X Server on Monday I took it home, together with the boot floppy, and DSL booted up first time on my computer at home. I guess I must have a problem with my computer hardware at work. smilie Does anyone know how I could try to locate the problem and fix it? Thanks, Julian Posted by much on Oct. 09 2004,00:13
Hello, I did everything after your description.But when the KNOPPIX folder and the files from floppy are on the pendrive. I umount the pendrive and do "syslinux /dev/sda1" with following result: root@ttyp0[dsl]# syslinux /dev/sda1 Total number of sectors not a multiple of sectors per track! Add mtools_skip_check=1 to your .mtoolsrc file to skip this test I havent found a .mtoolsrc in the home-dir... please help. /edit: the pendrive has USB2.0 - 128MB - default fat32 filesys Thanks --much |