Build Your Own Arcade Controls Forum
Main => Raspberry Pi & Dev Board => Topic started by: pbj on January 17, 2017, 01:03:07 am
-
Despite buying the exact card and downloading the exact torrent specified, I'm coming up about half a meg short of the size I need. Should be easily remedied by removing a couple of crap games.
Do any of you know of a good tutorial for modifying an .img file?
:cheers:
-
Which Img are you DL'ing matey?
-
Rey's 128GB. Problem is I don't have a bigger card to flash it to, edit, and redump.
-
Can you not extract the image to your pc hdd and edit before reburning?
-
That sounds plausible. Type up some instructions.
:cheers:
-
This snippet was copied from the link below and works but must be done in Linux.
The best thing to do is
1.Copy all the files from all partitions using
mkdir myimage
mkdir myimage/partition1
mkdir myimage/partition2
sudo cp -Rrf --preserve=all /media/mount_point_partition1/* myimage/partition1/
sudo cp -Rrf --preserve=all /media/mount_point_partition2/* myimage/partition2/
2.Extract MBR using following command
sudo dd if=/dev/sdX of=myimage/mbr.img bs=446 count=1
replace /dev/sdX with corresponding device.
3.Partition the destination disk into partitions with sizes greater than copied data and should be of same format and same flags using gparted. Please google how to partition a disk.
4.Now mount the freshly formatted and partitioned disk. Mostly you need to just connect the disk to system and you can find the mounted partitions in /media folder.
5.Now copy the previously copied data to destination partitions using following commands
sudo cp -Rrf --preserve=all myimage/partition1/* /media/mount_point_partition1/
sudo cp -Rrf --preserve=all myimage/partition2/* /media/mount_point_partition2/
6.Now copy back MBR using
sudo dd if=myimage/mbr.img of=/dev/sdX bs=446 count=1
Now njoy Ur new disk!
http://2.bp.blogspot.com/-coeDzWCOtFM/VV4WvrIOOLI/AAAAAAAAID4/DAmeE-DeiFI/s1600/it-s-a-madhouse-a-madhouse_zps90lr3bnk.png (http://2.bp.blogspot.com/-coeDzWCOtFM/VV4WvrIOOLI/AAAAAAAAID4/DAmeE-DeiFI/s1600/it-s-a-madhouse-a-madhouse_zps90lr3bnk.png)
-
Jesus.
:dizzy:
-
Jesus.
:dizzy:
But the Pie rocks, d00d!!!
-
Try Partition manager, see if you can make the partition the correct size.
https://www.partitionwizard.com/free-partition-manager.html (https://www.partitionwizard.com/free-partition-manager.html)
-
I just want to download an image, transfer some ROMs, and maybe change resolution and remap controls. When I turn it on, I want to see a simple list of only the 20 or so arcade games I've loaded. No navigating other menus, no Xbox controller icons, etc.
This is for a Pi Zero. It needs to run at 640x480 out the composite output.
It would also be nice if the version of MAME running is new enough to have volume control.
Does it exist?
-
Not sure about the resolution but retro pie works pretty good for that.
-
Not sure about the resolution but retro pie works pretty good for that.
I have retropie installed. I dislike it very much.
It seems to be for people who want to use an Xbox360 controller and HDTV.
How do I bypass or hide the retropie menus?
(This would be going in a 6" cabinet with a 2.5" screen. The retropie menus aren't going to be readable.)
-
Alright, this is currently cranking, so let's see if it works.
The .img file was copied to an external hard drive to a folder called images. We'll pretend it was called bigimage.img
I also downloaded and copied pishrink.sh from this link to the same folder:
https://github.com/Drewsif/PiShrink (https://github.com/Drewsif/PiShrink)
The hard drive was plugged into a Pi running emulation station.
I exited out to the command prompt...
cd /media/usb0
cd /images
fdisk -l bigimage.img
I looked at the Start field for bigimage.img2 and multiplied that number by 512. Let's pretend the result was 1234567
Then I said:
mount -v -o offset=1234567 -t ext4 bigimage.img /mnt/img/two
Then cd /mng/img/two
Then I poked around and deleted a few ---steaming pile of meadow muffin--- N64 games.
Back out of that to the images folder....
Then:
chmod +x pishrink.sh
sudo bash pishrink.sh bigimage.img smallimage.img
And now we wait.
:cheers:
-
Not sure about the resolution but retro pie works pretty good for that.
I have retropie installed. I dislike it very much.
It seems to be for people who want to use an Xbox360 controller and HDTV.
How do I bypass or hide the retropie menus?
(This would be going in a 6" cabinet with a 2.5" screen. The retropie menus aren't going to be readable.)
There are a few images over on the attract mode forum that might work for you.
-
I have retropie installed. I dislike it very much.
It seems to be for people who want to use an Xbox360 controller and HDTV.
I use retropie in arcade cabinets. Front end is using Attractmode rather than the default emulation station.
How do I bypass or hide the retropie menus?
You've asked a number of questions in this post that are off-topic to resizing the partition. Maybe make a new post and I can work on answering in detail.
-
Not sure about the resolution but retro pie works pretty good for that.
I have retropie installed. I dislike it very much.
It seems to be for people who want to use an Xbox360 controller and HDTV.
How do I bypass or hide the retropie menus?
(This would be going in a 6" cabinet with a 2.5" screen. The retropie menus aren't going to be readable.)
You can hide the config menu using kiosk mode.
https://youtu.be/1BWjNp7Br9c (https://youtu.be/1BWjNp7Br9c)
If you want to hide the actual retropie menu itself you can do it as described here:
https://www.reddit.com/r/RetroPie/comments/33gz62/retropie_30_hide_retropie_option_menu/ (https://www.reddit.com/r/RetroPie/comments/33gz62/retropie_30_hide_retropie_option_menu/)
But instead of editing the CFG, I duplicated it, Changed it and then dropped it into the /opt/retropie/configs/all/emulationstation folder.
That overides the standard one but allows you to easily revert back if needed by changeing the name so it goes back to the standard CFG
-
12 hours later, still cranking,
:angry:
-
Couldn't you just have got a slightly larger card? :dizzy:
-
Yeah, those cards are $40 each, and you have no idea if it'll work until you open the package. So... no.
-
Still cranking.....
-
Still cranking.....
(https://uploads.tapatalk-cdn.com/20170119/5d51fa7de06f427eb8381fca241d4bc5.jpg)
-
30 hours of staring at this....
(http://i.imgur.com/3ltuaOol.jpg)
And it apparently.... worked? Allegedly shrank it from 120 to 101GB. Will have to see if it boots tonight..
:cheers:
-
30 hours!? ---steaming pile of meadow muffin---....
Good luck!
-
30 hours of staring at this....
(http://i.imgur.com/3ltuaOol.jpg)
And it apparently.... worked? Allegedly shrank it from 120 to 101GB. Will have to see if it boots tonight..
:cheers:
Good lord.
what kind of PC do you have?
If you say i5 based system i'll just compile my own distro on the RPI 3.
would take about 27 hrs less.
-
I was running it on a Raspberry Pi 3. 64GB micro SD card, with about half of it free. The .img I was compressing was an on external USB drive. So, essentially, the slowest possible way to accomplish this.
-
Tested it out briefly this morning, appears to be working fine.
:cheers:
-
Very cool.
When you can, post some pics so we can see what you got working.
I don't have the patience with this stuff so glad you got it to work.
:applaud:
-
It's the same one as featured in this video:
! No longer available (http://www.youtube.com/watch?v=8dI8tOcilIA#)
Jump to about 7:00 to hear his friend rightfully declare, "this is ---smurfing--- boring, dude" and urge him out of Emulation Station and get the video to the interesting part.
-
Finally got to sit around and play with this setup last night. I think the Pi may have finally displaced the original Xbox. About the same level of emulation quality, but native HDMI and USB support pushes it over the edge.
-
Finally got to sit around and play with this setup last night. I think the Pi may have finally displaced the original Xbox. About the same level of emulation quality, but native HDMI and USB support pushes it over the edge.
I've been playing with a Pi too. Being able to plug it into most of the TV's in my house is a definite plus.