You are on page 1of 6

(/) let's make Explore (/tag/type-id/) Contests (/contest/) Classes (/classes/)

Publish (/about/create.jsp)
(http://www.autodesk.com/)
Featured: Fidget Spinner Design Challenge (/contest/fidgetspinner/?utm_source=featurebar/)

Invention Class (/class/Invention-Class/?utm_source=featurebar/) #Vanlife (/howto/vanlife+car+camping+glamping/)

Boot the Raspberry Pi From USB by


techno guy (/member/techno+guy/) in raspberry-pi (/tag/type-id/category-technology/channel-raspberry-pi/)

Download h (/id/Boot-the-Raspberry-Pi-from-USB/) 8 Steps .

Collection I Made it! Favorite Share

About This Instructable

License:
8 192,505 views
376 favorites

techno guy
(/member/techno+guy/)
KH-Labs (https://kh-labs.org)

Follow 198
(/member/techno+guy/)

Bio: I am a total nerd who works as a


software developer, and knows a bit about
computer/software technology. Plus I like
space and vintage ...

More by techno guy:

(/id/Using-

(/file/FBU41MGIAJO1EAC/)
Multisystem-on-the-Second-Partition/)

Hello world, time for me to gift some raspberry pi to the people. So here's my
story, I recently graduated high school and I've been working with the school's IT (/id/Raspberry-Pi-2-
guy for my senior year. When I graduated, he decided to get me the latest
Raspberry Pi as a graduation present (at the time of writing this, the Raspberry
Pi 2 Model B). I thought it was really generous of him and I wanted to use it.
Here's the problem, I've only got 2 GB SD cards and the latest Raspbian image
(2015-05-05) was like 3.5 GB in size. No problem, I'm a technology guy, surely I
could figure this out, and I did. So now I'm here showing a step-by-step picture Quick-n-Easy-RCA/)

guide as to how I did it.


This instructable assumes that the reader has at least some basic experience
(/id/Boot-the-Raspberry-Pi-from-USB/)
with Ubuntu, the Raspberry Pi and the GParted partition editor. If not, then this
probably isn't for you. This article is also centered around doing the whole
process using Ubuntu ( sorry WinDoze people :p ).
Related
-----!!! UPDATE !!!-----
Raspberry Pi B+ boot from
Since a few people were wondering about my RCA setup and the alligator clips SD Card (/id/Raspberry-Pi-B-
on the Pi, I have taken the liberty to make an instructable all about it. Raspberry boot-from-SD-Card/)
by RichShumaker
Pi 2: Quick n' Easy RCA (https://www.instructables.com/id/Raspberry-Pi-2-
(/id/Raspberry-(/member/RichShumaker/)
Quick-n-Easy-RCA/) should answer all your questions and tell you how to do it. Quad Boot Raspberry Pi
(/id/Quad-Boot-Raspberry-
Pi/)
Step 1: Prepare the Flash Drive by TechWizYouTube
(/id/Quad- (/member/TechWizYouTube/)
How to connect a Raspberry
Pi to a Wi-Fi network
(/id/How-to-connect-a-
Raspberry-Pi-to-a-Wi-Fi-
(/id/How-to- network/)
How to access headless
Raspberry Pi using USB to
TTL converter (/id/How-to-
Access-Headless-Raspberry-
(/id/How-to- Pi-Using-USB-to-T/)
How to Create a RetroPie
USB Boot Drive for
Raspberry Pi 3 (/id/How-to-
Create-a-RetroPie-USB-Boot-
(/id/How-to-
(/file/FLP4MMTIAJO1DSK/)

Navigate to your flash drive in GParted, in my case it is drive /dev/sdb.

Unmount the flash drive so you can make changes.

Delete any partitions so you can make a new one.


Add a new partition.

Format it to fat32 and give it any name.

Apply all operations to format the flash drive.

advertisement

Step 2: Burn the Image to the Flash Drive

(/file/FGTON5WIAJO1DV7/)

Type "sudo -s" to get into a root shell, so you don't have to type sudo again.

The easiest way to burn the image is to type in "dd if=path/to/image


of=path/to/flashdrive". In my case I found the path to the flash drive from
GParted, it was /dev/sdb but it might be different for you.
If you want to know the status of the burn, you can install pv by typing in "apt-get
install pv" and then using the altered command of "dd if=path/to/image | pv | dd
of=path/to/flashdrive".

When the image is finished burning, the contents of the drive should look more
or less like they do in the picture of the GParted screen. It should have one fat16
partition and one ext4 partition and maybe some unallocated space if your drive
is big enough.

Step 3: Prepare the SD Card


(/file/FMLWNRHIAJO1DX2/)

Insert your SD card and navigate to it in GParted, /dev/sdc in my case.

Unmount it and delete the partition.

Add a new partition and make sure it is 56 MB in size while being labeled "boot"
and being a fat16 file system. The point is to clone the boot partition on the flash
drive over to the SD card because the Raspberry Pi can't completely boot from a
flash drive.

Then click "manage flags" and add the "lba" flag and you're done prepping the
SD card.

Step 4: Transfer the Boot Partition

(/file/F8WLETUIAJO1E0C/)

Get back into your root shell to prepare the boot partition transfer.

Again, use "dd" to transfer the partitions, my boot partition is /dev/sdb1 for the
flash drive and /dev/sdc1 for the SD card. Notice the 1 at the end of each, that
signifies the first logical partition which I can see from the GParted screen.

The command for me is "dd if=/dev/sdb1 of=/dev/sdc1" but I used the "pv"
version because I like to see how everything works out. It's the same as in the
last step, only change the "if" and "of" parts.

Step 5: Set to Boot From the Flash Drive


(/file/FWPLA7MIAJO1E2E/)

Get into the SD card file system with your favorite file explorer and open up the
file called "cmdline.txt".

We will edit the word in the line that starts with "root=" so we can tell the SD card
where it's supposed to boot, in this case the flash drive.

Change the line from "root=/dev/mmcblk0p2" to "root=/dev/sda2". It is


"/dev/sda2" because in GParted, it shows my flash drive root partition as being
/dev/sdb2, but when the Raspberry Pi mounts it, it will be /dev/sda and I want
the second partition to get booted from.

Step 6: Finish Up With the Flash Drive

(/file/F3MMPWAIAJO1E3D/)

Get back to GParted and navigate to the flash drive.

Delete the fat16 "boot" partition, "/dev/sdb1" in my case.

Then resize the ext4 partition by clicking "resize/move" and dragging each end
of the partitions to the corresponding ends.

Apply all operations and wait quite a bit of time for the partition to grow. When
it's finished, there should be only one partition, and ext4, that has the same
partition path (/dev/sdb2) as the original ext4 partition.

Step 7: Set Up the Raspberry Pi


(/file/F9C5BK9IAJO1E9S/)

Now just insert your SD card into the Raspberry Pi along with the root flash drive
that we were working on.

Plug everything you need in like power, video, keyboard/mouse and wifi and turn
it on.

Step 8: Moment of Truth

(/file/F1951J1IAJO1EAY/)

If all worked well for you, then you should see the Raspberry Pi boot up normally
and the setup screen come up for the first time. CONGRATULATIONS!!!

If not, then something probably went wrong and you should try to see if you can
fix it by going backwards to see what went wrong or just redoing the whole
process again.
I typed in "startx" and the desktop interface came up, all is well and now I can
use the Pi normally.

I More Comments

FEATURED CHANNELS

Woodworking Paper Kitchen Hacks Puzzles Laser Cutting Space Homesteading 3D Printing Sewing
(/tag/type- (/tag/type- (/tag/type- (/tag/type- (/tag/type- (/tag/type- (/tag/type- (/tag/type- (/tag/type-
id/category- id/category- id/keyword- id/category- id/category- id/keyword- id/category- id/category- id/category-
workshop/channel- craft/channel- kitchen%20hacks/?play/channel- workshop/channel- astronomy/? home/channel- technology/channel-craft/channel-
woodworking/) paper/) sort=FAVORITES) puzzles/) laser-cutting/) sort=FAVORITES)homesteading/) 3D-Printing/) sewing/)
Newsletter About Us
Let your inbox help you discover Who We Are (/about/)
our best projects, classes, and Advertise (/advertise/)
contests. Instructables will help Contact (/about/contact.jsp)
you learn how to make anything! Jobs (/community/Positions-available-at-Instructables/)

enter email I'm in! Help (/id/how-to-write-a-great-instructable/)

Find Us Resources
Facebook (http://www.facebook.com/instructables) For Teachers (/teachers/)
Youtube (http://www.youtube.com/user/instructablestv) Residency Program (/pier9residency)
Twitter (http://www.twitter.com/instructables) Gift Premium Account (/account/give?sourcea=footer)
Forums (/community/?categoryGroup=all&category=all)
Pinterest (http://www.pinterest.com/instructables)
Answers (/tag/type-question/?sort=RECENT)
Google+ (https://plus.google.com/+instructables)
Sitemap (/sitemap/)

Terms of Service (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21959721) |


Privacy Statement (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21292079) |
Legal Notices & Trademarks (http://usa.autodesk.com/legal-notices-trademarks/) | Mobile Site (https://www.instructables.com)
(http://usa.autodesk.com/adsk/servlet/pc/index?id=20781545&siteID=123112)
2016 Autodesk, Inc.

You might also like