Novian3002
Posts: 5
Joined: Tue Feb 02, 2016 6:50 am

USB boot stick creator for Raspian Wheezy

Fri Feb 05, 2016 1:10 pm

Is there any tool like Unetbootin for Raspian ? All the ones I found dont work on an arm processor.

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: USB boot stick creator for Raspian Wheezy

Fri Feb 05, 2016 3:10 pm

The Raspberries can ONLY boot from an SDCARD so your utility would be 100% pointless.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

mutley
Posts: 61
Joined: Sat Jan 02, 2016 8:06 pm

Re: USB boot stick creator for Raspian Wheezy

Fri Feb 05, 2016 3:11 pm

No. To my knowledge you can't boot directly off USB on the PI. The best you can do is have the second stage bootloader on a CF card (as normal), then once loaded tell it to boot the OS off USB, rather than CF as normal. That way you can use tools as you described to crate a USB stick that you can boot the OS from, but you will always need a CF card for the second stage bootloader.

The first stage bootloader is on the ROM of the SoC and will always look for the second stage to be on a CF card, I do not believe this can be changed, that's why your stuck with what I described above.

In /boot/cmdline.txt use "root=/dev/sda1" (or what ever USB partition you want to boot from) rather than "root=/dev/mmcblk0p2", you should also probably add "rootdelay=2" to give the bootloader 2 seconds to find the USB stick.

Novian3002
Posts: 5
Joined: Tue Feb 02, 2016 6:50 am

Re: USB boot stick creator for Raspian Wheezy

Fri Feb 05, 2016 3:17 pm

I dont want to boot the raspberry pi from the usb I just want it to create an bootable usb stick for use with other devices

mutley
Posts: 61
Joined: Sat Jan 02, 2016 8:06 pm

Re: USB boot stick creator for Raspian Wheezy

Fri Feb 05, 2016 4:01 pm

Sounds like what you might want is Debian Wheezy (there is a USB version)
https://www.debian.org/releases/wheezy/ ... installer/

Raspian Wheezy is very specific to the PI architecture, it's hard / painful to even get it running on something other than a PI let alone a generic boot device.

First post you mentioned ARM processor, second you mentioned other devices. So if you want to boot Raspian Wheezy on other ARM processors (non Pi), you need to understand the following.
ARM itself is very different to x86, especially in how it boots. There is a standardized boot process for the x86 and very standard ways bootloaders can query the machine to find out what's available so it can make good boot decisions, this makes generic USB booting on a vast majority of different machines possible. ARM does not have this, so every single machine has it's own very specific way to boot and it must know the exact hardware as there is no generic way to find out. So I think you may be going down a path that's not possible, l but I'm also not entirely sure what you are trying to do.

Novian3002
Posts: 5
Joined: Tue Feb 02, 2016 6:50 am

Re: USB boot stick creator for Raspian Wheezy

Fri Feb 05, 2016 4:38 pm

I might have phrased my question wrong, sorry if I confused you guys.

I want a program than can create bootable usb sticks. This programm should work on Raspbian Wheezy.
Most programs like Unetbootin dont work on Raspian Wheezy.

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: USB boot stick creator for Raspian Wheezy

Fri Feb 05, 2016 4:41 pm

Grab the source for it and compile it on your RPi.

If you've got an ISO and a USB stick then you don't need unetbootbin.

mount the USB and it appears as /dev/sdX
cp debian.iso /dev/sdX
unplug the USB and boot it in your laptop.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Novian3002
Posts: 5
Joined: Tue Feb 02, 2016 6:50 am

Re: USB boot stick creator for Raspian Wheezy

Fri Feb 05, 2016 4:44 pm

DougieLawson wrote:Grab the source for it and compile it on your RPi.

If you've got an ISO and a USB stick then you don't need unetbootbin.

mount the USB and it appears as /dev/sdX
cp debian.iso /dev/sdX
unplug the USB and boot it in your laptop.
Thanks!

Return to “General discussion”