Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:c1_ubuntu_to_usb_hdd [2014/12/21 10:48] mdrjr created |
en:c1_ubuntu_to_usb_hdd [2015/02/11 12:10] (current) odroid |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Ubuntu rootfs on USB HDD ===== | ||
+ | |||
+ | To this you'll need: | ||
+ | * PC running Linux | ||
+ | * **ODROID-C1** [[c1_release_linux_ubuntu|Ubuntu Image]] | ||
+ | * 256MB Minimum MicroSD (Contents will be erased) | ||
+ | * 8GB Minimum USB Disk (Contents will be erased) | ||
+ | |||
+ | <WRAP left round alert 100%> | ||
+ | Running the guide will erase the contents of your MicroSD/USB Disk. Its highly recommended to double check before running any of the commands it may even break your OS Install | ||
+ | </WRAP> | ||
+ | <WRAP left round alert 100%> | ||
+ | Replaced /dev/sdX with the microsd/usb disk nodes! Make sure of what you are choosing here! | ||
+ | </WRAP> | ||
+ | <WRAP left round alert 100%> | ||
+ | Replace **ubuntu-14.04.1lts-lubuntu-odroid-c1-20141211.img.xz** with the name of a new image if it exists! | ||
+ | </WRAP> | ||
+ | |||
+ | 1. Become root! | ||
+ | <code> | ||
+ | sudo -s | ||
+ | </code> | ||
+ | |||
+ | 2. Clean up the **MicroSD** | ||
+ | <code> | ||
+ | dd if=/dev/zero of=/dev/sdX bs=1M count=10 | ||
+ | </code> | ||
+ | |||
+ | 3. Write the base to the microsd card. | ||
+ | <code> | ||
+ | xzcat ubuntu-14.04.1lts-lubuntu-odroid-c1-20141211.img.xz | dd of=/dev/sdX bs=1M count=150 | ||
+ | </code> | ||
+ | |||
+ | 4. Remove a useless partition from **MicroSD** | ||
+ | <code> | ||
+ | parted /dev/sdX rm 2 | ||
+ | </code> | ||
+ | |||
+ | 5. Sync to write any left data | ||
+ | <code>sync</code> | ||
+ | |||
+ | 6. Remove the **MicroSD** and connect it to the board. **Don't power it up yet!** | ||
+ | Also, connect your USB HDD or USB Flash Drive to your PC. | ||
+ | |||
+ | 7. Clean up the **USB DISK** | ||
+ | <code> | ||
+ | dd if=/dev/zero of=/dev/sdX bs=1M count=10 | ||
+ | </code> | ||
+ | |||
+ | 8. Write the image to the **USB DISK** | ||
+ | <code> | ||
+ | xzcat ubuntu-14.04.1lts-lubuntu-odroid-c1-20141211.img.xz | dd of=/dev/sdX bs=1M | ||
+ | </code> | ||
+ | |||
+ | 9. Remove the useless partition from the **USB DISK** | ||
+ | <code> | ||
+ | parted /dev/sdX rm 1 | ||
+ | </code> | ||
+ | |||
+ | <WRAP left round alert 100%> | ||
+ | Be careful, the command below must be run exactly as its posted. Just replace the /dev/sdX for your device! | ||
+ | </WRAP> | ||
+ | |||
+ | 10. Resize the partition the **USB DISK** | ||
+ | <code> | ||
+ | fdisk /dev/sdX <<EOF | ||
+ | d | ||
+ | 2 | ||
+ | n | ||
+ | p | ||
+ | 2 | ||
+ | 266240 | ||
+ | |||
+ | w | ||
+ | EOF | ||
+ | </code> | ||
+ | |||
+ | 11. Clean & Resize the **USB DISK** | ||
+ | <code> | ||
+ | e2fsck -y -f /dev/sdX2 | ||
+ | resize2fs /dev/sdX2 | ||
+ | </code> | ||
+ | |||
+ | 12. Sync up to make sure everything is written | ||
+ | <code> | ||
+ | sync | ||
+ | </code> | ||
+ | |||
+ | 13. Connected everything to the board and power it up! It should work. | ||
+ | |||
+ | |||
+ | |||
+ | If you want to discuss this guide jump into our [[http://forum.odroid.com|Forums]] | ||
+ | Make sure to post logs and use a very rich amount of details. | ||
+ | |||
+ | |||
+ | **Useful Tips by johnbeetem from the** [[http://forum.odroid.com/viewtopic.php?f=112&t=9392|ODROID Forum]] | ||
+ | |||