Setting up PI-Drive

Setup and Modification Tutorials and guides
Post Reply
SFORCES
Reactions:
Posts: 5
Joined: Wed Dec 14, 2016 3:49 am

Setting up PI-Drive

Post by SFORCES » Sun Dec 18, 2016 12:45 am

OK i followed this guide https://www.raspberrypi.org/documentati ... des/msd.md to be able to boot from the PI-Drive. How do i get The Lastest RetroPi/Atract mode installed on the PI-Drive to be able to boot up?

Haggis
Reactions:
Posts: 132
Joined: Sun Dec 11, 2016 8:52 pm

Re: Setting up PI-Drive

Post by Haggis » Sun Dec 18, 2016 9:32 am

OK so what I did was

Use win32 disk imager and write the image to the pi drive

Then format an sd card to fat 32

Copy the files from the boot partition on the hard drive to the sd card

Change the line in config.txt to mount the hdd instead of the sd and that's it done

SFORCES
Reactions:
Posts: 5
Joined: Wed Dec 14, 2016 3:49 am

Re: Setting up PI-Drive

Post by SFORCES » Mon Dec 19, 2016 12:53 am

what image do i save to the pi drive retropie4.1? and what line do i change in the config.txt?

So i didn't have to follow the above guide i posted to get it to boot retropie off the pi drive?

Haggis
Reactions:
Posts: 132
Joined: Sun Dec 11, 2016 8:52 pm

Re: Setting up PI-Drive

Post by Haggis » Mon Dec 19, 2016 5:22 am

So i just used a generic 8gb image, all it was was attract mode with no roms

So these are the steps i did

1/ Write the image to the SD Card

2/ Format the Hard Drive if needed. (I formatted to FAT32 but i beleive NTFS also works)

3/ Disable USB transfer daemon
  • Enter the RetroPie Setup menu within the RetroPie menu in EmulationStation.
  • Select Setup / Tools.
  • Select usbromservice - USB ROM Service
  • Disable USB ROM Service.
4/ Plug in the Pi Drive

5/ Transfer the existing RetroPie file structure

To do this via terminal, First enter the command df to print a list of the file systems. Example output:

Code: Select all

pi@retropie:~ $ df
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/root        7318456  3367852   3609928  49% /
devtmpfs          372100        0    372100   0% /dev
tmpfs             376436        0    376436   0% /dev/shm
tmpfs             376436     5424    371012   2% /run
tmpfs               5120        4      5116   1% /run/lock
tmpfs             376436        0    376436   0% /sys/fs/cgroup
/dev/mmcblk0p1     58234    20476     37758  36% /boot
/dev/sda1       30480256 26921632   3558624  89% /media/usb0
Look for an entry on /media/usb0, or similar. In our above example:

Code: Select all

/dev/sda1       30480256 26921632   3558624  89% /media/usb0
The important things to note down are the mount point: /media/usb0, and the position on the device tree: /dev/sda1

Now we can move our existing RetroPie folder to our new hard drive. Enter the command:

Code: Select all

sudo mv -v /home/pi/RetroPie/* /media/usb0/
After this, the Hard Drive directory structure should look something like:

Code: Select all

pi@retropie:~ $ ls /media/usb0 -l
total 96
drwxrwxrwx  8 root root 16384 Jun 15 00:17 BIOS
drwxrwxrwx  3 root root 16384 Apr 22 17:05 retropiemenu
drwxrwxrwx 52 root root 16384 Jun  3 00:11 roms
drwxrwxrwx  2 root root 16384 Apr 13 16:14 splashscreens
6/ Configure fstab to automatically mount USB drive

stablish the drive's UUID number by entering the command ls -l /dev/disk/by-uuid/. Example output:

Code: Select all

pi@retropie:~ $ ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 15 Jun 19 21:59 7cc81461-50b9-45a8-a561-fd5c4aa71934 -> ../../mmcblk0p2
lrwxrwxrwx 1 root root 15 Jun 19 21:59 AE51-7D54 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 10 Jun 19 21:59 E44B-FC4E -> ../../sda1
sda1 was our device tree position from earlier, so E44B-FC4E is our UUID.

Edit fstab with this command: sudo nano /etc/fstab and add a new line like the below:

Code: Select all

proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot           vfat    defaults          0       2
/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
UUID=E44B-FC4E  /home/pi/RetroPie      vfat    nofail,user,uid=pi,gid=pi 0       2
...where UUID= the UUID of your drive, and everything else is the same as the example.

In the case of errors with ext4 file systems use

Code: Select all

UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX" /home/pi/RetroPie ext4 nofail,defaults 0 
7/ Restart the System


Once thats done it will boot up

you can then unplug the hard drive and plug it directly into your PC to make transferring roms faster :)


hope this helps

I will write up a full tutorial with pics etc as soon as i can

SFORCES
Reactions:
Posts: 5
Joined: Wed Dec 14, 2016 3:49 am

Re: Setting up PI-Drive

Post by SFORCES » Tue Dec 20, 2016 6:12 am

Hmm now i'm getting manually set the __platform variable to one of the following: armv7-mali generic-x11 imx6 odroid-c1 rpi1 rpi2 rpi3 rpi3-64 x86 when i try to run retropie setup or anything in the menu now. how do i go about doing this?

SFORCES
Reactions:
Posts: 5
Joined: Wed Dec 14, 2016 3:49 am

Re: Setting up PI-Drive

Post by SFORCES » Tue Dec 20, 2016 8:09 am

Hmm i did the sudo __platform=rpi3 ./retropie_packages.sh and it still say's i have to set it.

klever84
Reactions:
Posts: 2
Joined: Mon Apr 17, 2017 10:57 pm

Re: Setting up PI-Drive

Post by klever84 » Tue Apr 18, 2017 12:12 am

xD I installer retro pie (Untouched) on a 8gb sd and boot it one time,
flashed the Hyperpie image on an 128gb usb stick,
edited the cmdline.txt on the boot partition of the sd card from /dev/mmlcs.. to /dev/sda1 and thats it^^

noob get rough xD

Now i got 60gb free on the rootfs, 128gb usb stick as external drive and 128gb usb mounted via fstab...
Tried to use both sticks as 2 externals but it only take 1 when scanning them.

I_Died_Once
Reactions:
Posts: 13
Joined: Thu Apr 06, 2017 1:23 am

Re: Setting up PI-Drive

Post by I_Died_Once » Tue Apr 18, 2017 10:01 pm

How well does this actually work? I only question as there are a LOT of little files, video clips, wheel artwork and way more, not to mention the roms and the rest of the linux OS.... via a USB 2.0 connection? How well does this run?

klever84
Reactions:
Posts: 2
Joined: Mon Apr 17, 2017 10:57 pm

Re: Setting up PI-Drive

Post by klever84 » Wed Apr 19, 2017 6:23 am

Works fine, so far. Sometimes it begins 2 lag when it scans on all 3 sticks at the same time.

Post Reply