There, I did!Originally Posted by Harry Kuhman
http://www.knoppix.net/wiki/Bootable_USB_Key
Not sure how to push this page into the overall index so that people will find it, though....
OK, got a new USB key that works again! I burned out my old USB key testing it all these times.
I only found one computer in which my earlier "strategy guide" failed to boot after being detected. It seemed to have some trouble recognizing the FAT32 filesystem, which is strange, because it worked just fine on other computers that were capable of detecting USB keys at bootup. Someone recommended that I try FAT16, and I did this on my new key. When I get access to this one computer, I will test it again.
Here's the changes to make, to use FAT16 instead of FAT32, above:
* Delete the reference to editing the mkdiskimage script.
Just leave the mkdiskimage script alone.
* Omit the -F flag to the mkdiskimage command.
The new command line becomes:
All other steps are the same.Code:mkdiskimage -4 /dev/sdz 0 64 32
FAT16 is not as efficient as FAT32 when dealing with disks that contain a lot of files, but that's not a big problem for Knoppix, as Knoppix stores all of its files inside one big compressed file anyway.
FAT16 also has the 2GB barrier. This isn't a problem, for my 1GB USB key. I could have bought a 2GB key, but chose not to, for greater reliability. There's a problem going over 1GB: the USB-ZIP standard will fail, as it will then go over 1023 cylinders, making its CHS layout impossible.
The solution for larger keys is to use USB-HDD, the default, and just blow off USB-ZIP support entirely. Thankfully, most newer BIOS's all boot USB-HDD by default anyway.
The strange thing is that my main PC's BIOS now recognizes my new USB key as a CDROM! Great, just what we need, a third booting standard. But, everything seemed to work correctly, as I'm typing this from my booted Knoppix USB key now.
Next USB key I'm going to buy will be a 5GB key, whenever they get around to finally making them. Then, we can go on to the extra challenge of getting the Knoppix DVD to boot from a USB key....
There, I did!Originally Posted by Harry Kuhman
http://www.knoppix.net/wiki/Bootable_USB_Key
Not sure how to push this page into the overall index so that people will find it, though....
Sure it defeats mine too! But, I think it is a partial solution: Seems to be no way I can get that 1GB stick to boot on the two laptops I try, but installing GRUB on a smaller stick and start other devices from that would give us the "write once, run anywhere" we want. And preparing a boot CD should let us run it from most newer computers.Originally Posted by Krellan2
I think I'll stick with FAT32, for one of the next steps will be to use a 4GB stick, and setting up a structure similar to /usr/local for non-package installs. I have used that for Java, Wine and Mono, and things I occasionally compile myself, like PHP.
If this would work with a 6GB HDD from a laptop on a USB dongle...
I presume there should be some tweeking of the setup to account for actually using a hard drive with CHS information but being new to this deeper section of the pond I don't know what I should do. Anyway, from looking at the files on the DVD I don't see anything that breaks the 4GB barrier for FAT32 so I doubt I "need" any other file system (wouldn't hurt if I did tho - I only intend this to play around with).
Eagerly awaiting results,
'Goon
Hi Krellan,
Heads up for the awesome post on how to get the Knoppix to boot from thumbrive. I am quite new to Linux allthough i have considerable experience in windows/dos when it comes to Linux i am im still in infancy. I have
some issue in getting my system to boot from thumbdrive i have followed your instruction step by step but im am stuck at the part where i need to load the bootloader into my new partition. Knoppix recognize my thumbdrive as sdb1 when i type cfdisk /dev/sdb1 this is what i see
name flags part type FS type Label Size (MB)
----------------------------------------------------------------------------------------------
sdb1p4 boot Primary W95 FAT32 (LBA) 1047.53
when i type the command syslinux -s /dev/sdb14
i get this following error message /dev/sdb14: No such file or directory.
no matter in what combination switch i type either /dev/sdb14 or /dev/sdb1p4 i get the same error message
i desperately need a helping hand here.
Thnks in advance.
That's the problem right there. Using /dev/sdb14 refers to the 14th partition of the /dev/sdb disk, which is not what you want.Originally Posted by rajbabu
You have an old DOS/Windows partition still on your USB key, at /dev/sdb1 (the 1st partition).
You need to completely remove this partition first.
Did you remember to zero out your entire drive first?
That will erase all partitions.
This is the dd if=/dev/zero step. It's one of the first steps to do.
See the page:
http://www.knoppix.net/wiki/Bootable_USB_Key
I did perform the dd if=/dev/zero of=/dev/sda1 and this is what i see in cfdisk after performing that
Disk Drive: /dev/sda1
Size: 1048543744 Bytes 1048 MB
Heads: 33 Sectors per track: 61 Cylinders: 1017
Name Flags Part Type FS Type [Label] Size (MB)
-------------------------------------------------------------------------------------------------------------------------------
Pri/Log Free Space 1048.18
and afterwhich when i type mkdiskimage -F -4 /dev/sdz 0 64 32 to create a partition subsequently this is what notice in fdisk
Disk Drive: /dev/sda1
Size: 1048543744 Bytes 1048 MB
Heads: 64 Sectors per track: 32 Cylinders: 999
Name Flags Part Type FS Type [Label] Size (MB)
-------------------------------------------------------------------------------------------------------------------------------
sda1p4 Boot Primary W95 FAT32 (LBA) 1047.53
i reckon the problem lies with mkdiskimage command probably its need a slight adjustment on my end to make it work. Please advise further
meanwhile i will look for other alternative way in booting from thumbdrive as well.
!! cheers !!
Oops....Originally Posted by rajbabu
You did of=/dev/sda1 which is wrong.
It should have been of=/dev/sda to erase the entire disk.
What you did was erase just the first partition.
There's a big difference between sda1 (first partition of the disk) and sda (entire disk)!
You need to erase the entire disk, including the partition table, so that mkdiskimage can lay down a brand-new partition table for you.
Please read the commands very carefully before typing them in. One misplaced letter or number can be critical!
i had to type if=/dev/zero of=/dev/sda1 because thats what knoppix recognize the thumbdrive as SDA1 with the thumbdrive icon. The results i shared previously in cfdisk indicates 1gb free of thumbdrive not the hardisk no where in my hardisk do i have a space of 1gb. Futher more i can boot to windows w/o any issues at all. plus when i do formatting i can notice the led of my thumbdrive rapidly flashing.
As mentioned before i will look for alternatives i found this cool website with an extremely easy steps to to get Knoppix booted from thumbdrive i did all this in less then 5 mins apart from Knoppix ISO extraction to the thumbdrive that took about 20mins the best part is this would work regardless the of the size of the thumbdrive. and here is the link. http://www.pendrivelinux.com/2006/08...-memory-stick/
I would still give a try of your method if you share on how to adjust the mkdiskimage command to suite my thumbdrive. Mine is 1gb avixe usb 2.0.
Its so much convinent to run knoppix from thumbdrive versus the cdrom the latter will cause sluggish performance when you navigate through the OS frequently it will stop and read the content from cd before continuing this can be as fast 1sec or at time slow then 3 to 5 secs. Im glad that im finally able to run my knoppix from my thumbdrive.
and krellan keep up the good work.
No, really, trust me, you have to type if=/dev/zero of=/dev/sda NOT sda1.Originally Posted by rajbabu
We're trying to erase the entire USB thumbdrive here, not just the one partition that Knoppix has recognized.
We're trying to erase the ENTIRE disk, not just ONE partition. That's the big difference between sda and sda1.
One of the hardest things for new Linux users, coming from Windows, is the difference between partitions and disks. Most Windows people use only one partition per disk, and treat them interchangeably, so they don't even know that there is a difference.
Erasing one partition isn't good enough for mkdiskimage. You have to start with a completely clean erased disk, including the partition table itself, and this can only be done by erasing the entire DISK with /dev/sda, not just one PARTITION with /dev/sda1.
This method is really similar to mine, except that it's done entirely from within Windows instead of Knoppix itself.
If you have a 1GB thumbdrive, no adjustment is needed.I would still give a try of your method if you share on how to adjust the mkdiskimage command to suite my thumbdrive. Mine is 1gb avixe usb 2.0.
If you have a 2GB or larger thumbdrive, check my Web page, I posted some alternate mkdiskimage command lines you can try. They are near the bottom of the page.
http://www.knoppix.net/wiki/Bootable_USB_Key
Thanks! Yes, it is so much faster to run Knoppix purely from a USB key. It is slow to boot up, but once it gets going, it is incredibly fast, because there are no CD startup and seek times at all.Its so much convinent to run knoppix from thumbdrive versus the cdrom the latter will cause sluggish performance when you navigate through the OS frequently it will stop and read the content from cd before continuing this can be as fast 1sec or at time slow then 3 to 5 secs. Im glad that im finally able to run my knoppix from my thumbdrive.
and krellan keep up the good work.
1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray
$318.00
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System
$359.99
IBM X3650 M5 8871-AC1, 2 X E5-2620V4 2.1 GHZ,20M, 32 GB, DUAL 750W, 2 X 1TB HDD
$369.99
IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD
$349.99
IBM mainframe server cpu IBM93 vintage cpu collector's item
$129.99
IBM System x3250 M4 Server Intel Xeon E3-1220 3.10GHz 8GB RAM No HDDs
$60.56
IBM Server eServer | IBMR1000 | UPS 1000VA 700W W/New Batteries
$115.00
IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD
$84.50
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server
$319.99
IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W
$199.00