# Roms are being moved to roms\_backup on Restart

**URL:** <https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010>\
**Category:** General\
**Created:** [March 24, 2022, 12:11am UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010 "2022-03-24T00:11:01Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Hozerino](https://avatars.discourse-cdn.com/v4/letter/h/e9bcb4/32.png) [@Hozerino](https://emuelec.discourse.group/u/Hozerino)\
**Post date:** [May 15, 2022, 4:54am UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/22 "2022-05-15T04:54:54Z")

</div>

Didn’t know about that, might be useful to a lot of people, thanks for the info!

---

<div class="post-metadata">

**Author:** ![Uncle](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/uncle/32/285_2.png) [@Uncle](https://emuelec.discourse.group/u/Uncle)\
**Post date:** [May 16, 2022, 12:44am UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/23 "2022-05-16T00:44:07Z")

</div>

My external hard disk is NTFS format with volume label EEROMS. The files in the hard disk meet the roms format required by emuelec.

---

<div class="post-metadata">

**Author:** ![Uncle](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/uncle/32/285_2.png) [@Uncle](https://emuelec.discourse.group/u/Uncle)\
**Post date:** [May 16, 2022, 12:47am UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/24 "2022-05-16T00:47:15Z")

</div>

Does your script recognize that the game requires the format of the hard disk? What is the format of the external hard disk you put roms in.

---

<div class="post-metadata">

**Author:** ![Uncle](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/uncle/32/285_2.png) [@Uncle](https://emuelec.discourse.group/u/Uncle)\
**Post date:** [May 16, 2022, 1:19am UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/25 "2022-05-16T01:19:17Z")

</div>

Can you do this? My external hard disk, volume label eeroms, hard disk NTFS or FAT32 format, hard disk establishes ROMs folder, and all kinds of games are placed in the directory. Edit a script or configuration file to directly mount the hard disk roms to storage / roms. After all, I’m going to use this device to play simulation games.oh By the way, it uses emuelec v4 .3.

---

<div class="post-metadata">

**Author:** ![Hozerino](https://avatars.discourse-cdn.com/v4/letter/h/e9bcb4/32.png) [@Hozerino](https://emuelec.discourse.group/u/Hozerino)\
**Post date:** [May 17, 2022, 11:44pm UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/26 "2022-05-17T23:44:44Z")

</div>

Not at all, the script isn’t that “smart”, I’m not so wise when dealing with HDD formats.

---

<div class="post-metadata">

**Author:** ![Hozerino](https://avatars.discourse-cdn.com/v4/letter/h/e9bcb4/32.png) [@Hozerino](https://emuelec.discourse.group/u/Hozerino)\
**Post date:** [May 17, 2022, 11:45pm UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/27 "2022-05-17T23:45:25Z")

</div>

Just to be sure, is your Emuelec booting from a PenDrive/SD Card or from internal storage (emmc)?

---

<div class="post-metadata">

**Author:** ![Langerz82](https://avatars.discourse-cdn.com/v4/letter/l/bc79bd/32.png) [@Langerz82](https://emuelec.discourse.group/u/Langerz82)\
**Post date:** [May 19, 2022, 9:56am UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/28 "2022-05-19T09:56:21Z")

</div>

If you have all the roms on a USB drive and in the root a roms folder. In /storage/.config/custom\_start.sh

```auto
#!/bin/sh

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)

# Source predefined functions and variables
. /etc/profile

# Place any scripts you need to run at boot on this file

case "${1}" in
"before")

# ADD THE FOLLOWING:
# unmount the child mounts and its parent roms.
umount /storage/roms/ports_scripts
umount /storage/roms
# add a symbolic link to a usb roms folder.
ln -nsf /media/USB/roms/* /storage/roms

```

should link the roms in the storage to the USB roms.

Oh yeah and if you need to revert it, remove those added lines in custom\_start. and in SSH do

```auto
rm /storage/roms/*

```

Will remove all the symbolic links and reboot your device so the roms can remount like it defaults. Be careful you only want to remove the symlinks not the actual directories!

---

<div class="post-metadata">

**Author:** ![Uncle](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/uncle/32/285_2.png) [@Uncle](https://emuelec.discourse.group/u/Uncle)\
**Post date:** [May 24, 2022, 12:35am UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/29 "2022-05-24T00:35:53Z")

</div>

Thank you very much for your help. I’ll try it sometime.

---

<div class="post-metadata">

**Author:** ![Uncle](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/uncle/32/285_2.png) [@Uncle](https://emuelec.discourse.group/u/Uncle)\
**Post date:** [May 27, 2022, 3:58pm UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/30 "2022-05-27T15:58:11Z")

</div>

I tried your script but failed. It may have something to do with my device. Can I have your email? I send you some videos and files to help me analyze.

---

<div class="post-metadata">

**Author:** ![Langerz82](https://avatars.discourse-cdn.com/v4/letter/l/bc79bd/32.png) [@Langerz82](https://emuelec.discourse.group/u/Langerz82)\
**Post date:** [May 29, 2022, 12:53pm UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/31 "2022-05-29T12:53:21Z")

</div>

Try executing each line one at a time in just SSH, and replying the output if there is an error.

---

<div class="post-metadata">

**Author:** ![7Ji](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/7ji/32/336_2.png) [@7Ji](https://emuelec.discourse.group/u/7Ji)\
**Post date:** [June 13, 2022, 3:19am UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/32 "2022-06-13T03:19:04Z")

</div>

This is a bug in mount\_romfs.sh

I’m re-writing the script to properly support the situation where roms is a plain directory instead of mounted from partition EEROMS

---

<div class="post-metadata">

**Author:** ![Hozerino](https://avatars.discourse-cdn.com/v4/letter/h/e9bcb4/32.png) [@Hozerino](https://emuelec.discourse.group/u/Hozerino)\
**Post date:** [June 14, 2022, 2:54am UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/33 "2022-06-14T02:54:59Z")

</div>

Are you considering the option to scan roms from both external and internal storage? Or just one of them?

I checked that in this [commit] [emuelec-emulationstation: Add external mount options · EmuELEC/EmuELEC@9b0059c · GitHub](https://github.com/EmuELEC/EmuELEC/commit/9b0059c8958111d3d68a5a39bcaac50d3cc822b4)) it will check for external drives and ignore internal roms. I’d like to know if my script (of creating symlinks from internal to external for individual roms/consoles) would still work

---

<div class="post-metadata">

**Author:** ![Uncle](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/uncle/32/285_2.png) [@Uncle](https://emuelec.discourse.group/u/Uncle)\
**Post date:** [June 14, 2022, 10:04am UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/34 "2022-06-14T10:04:37Z")

</div>

Thank you. I’m looking forward to your script file.

---

<div class="post-metadata">

**Author:** ![EmuELEC](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/emuelec/32/26_2.png) [@EmuELEC](https://emuelec.discourse.group/u/EmuELEC)\
**Post date:** [June 15, 2022, 12:49am UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/35 "2022-06-15T00:49:21Z")

</div>

It does not ignore internal, internal is default, so if no external ROMS are available then the default kicks in which is internal, if you are asking if they are both going to be used at the same time, then no, only one at the same time.

---

<div class="post-metadata">

**Author:** ![Hozerino](https://avatars.discourse-cdn.com/v4/letter/h/e9bcb4/32.png) [@Hozerino](https://emuelec.discourse.group/u/Hozerino)\
**Post date:** [June 15, 2022, 1:50am UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/36 "2022-06-15T01:50:42Z")

</div>

Actually on 4.4, even if there are roms in the internal drive, they get moved to roms\_backup UNLESS it has a “emuelecroms” file, so there’s no clean update from 4.3 to 4.4, but we made it work after all, and even got a custom script to merge internal and external roms with symlinks ^^

---

<div class="post-metadata">

**Author:** ![EmuELEC](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/emuelec/32/26_2.png) [@EmuELEC](https://emuelec.discourse.group/u/EmuELEC)\
**Post date:** [June 15, 2022, 2:08am UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/37 "2022-06-15T02:08:13Z")

</div>

No, your issue is/was because of an unsupported feature (installation to internal emmc memory) sure you made it work, but it is still unsupported. What 7ji is doing is updating this script to make it work also with internal installations (we are talking about 2 things, internal installation and internal ROMS which I meant as any ROMS folder in a SD installation), but it will still NOT make both work (as this is not possible without getting into mounting overlays and stuff I rather not include officially), it will only work for one or the other (meaning the ROMS folder on the installation either in SD or emmc, or external as USB pen drives), but the “backup” folder will no longer get created (well when the script gets updated)

---

<div class="post-metadata">

**Author:** ![7Ji](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/7ji/32/336_2.png) [@7Ji](https://emuelec.discourse.group/u/7Ji)\
**Post date:** [June 18, 2022, 1:44pm UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/38 "2022-06-18T13:44:32Z")

</div>

This should be fixed by [mount\_romfs.sh: rewrite to properly support 2-partition layout (#942) · EmuELEC/EmuELEC@100c9b2 · GitHub](https://github.com/EmuELEC/EmuELEC/commit/100c9b2e03521ea15b8d6ab3a83a5e4ce64f4fd9) now, but note that mix of internal and external roms is still not supported by the rewritten script itself.  
Personally I don’t care about internal storage when I have external roms, since the roms drive is way larger, and keeping all roms on one dedicated drive ease the pain of migration of roms when you reburn the image. And man I just reburn the image multiple times a day to do tests, so I really like the bootup drive + roms drive style.

---

<div class="post-metadata">

**Author:** ![Hozerino](https://avatars.discourse-cdn.com/v4/letter/h/e9bcb4/32.png) [@Hozerino](https://emuelec.discourse.group/u/Hozerino)\
**Post date:** [June 18, 2022, 9:47pm UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/39 "2022-06-18T21:47:44Z")

</div>

I totally agree, the idea of mounting from multiple drives at the same time is more of a custom thing I’m trying to use with a friend rather than what a default feature should be, especially looking at the Emuelec’s plug-and-play concept.

I’m glad there’s someone checking on how the drives are scanned anyway, so that in the future I might play around with some custom\_scripts for myself.

Thanks for showing us the commit ^^

---

<div class="post-metadata">

**Author:** ![Langerz82](https://avatars.discourse-cdn.com/v4/letter/l/bc79bd/32.png) [@Langerz82](https://emuelec.discourse.group/u/Langerz82)\
**Post date:** [June 19, 2022, 1:32pm UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/40 "2022-06-19T13:32:56Z")

</div>

If your mixing with usb and roms partition you might be better off changing es\_systems.cfg directories individually for the systems that require much larger space and the usb. But yeah if you do an upgrade you might have to change it again.

---

<div class="post-metadata">

**Author:** ![7Ji](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/7ji/32/336_2.png) [@7Ji](https://emuelec.discourse.group/u/7Ji)\
**Post date:** [June 19, 2022, 1:49pm UTC](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010/41 "2022-06-19T13:49:36Z")

</div>

> <https://github.com/EmuELEC/EmuELEC/blob/dfa65e1400f48abc8577f2b96a804719c7e41909/packages/sx05re/emuelec-emulationstation/config/es_systems.cfg#L4>

That would not be a good idea…

[Previous page](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010.md?page=1)

[Next page](https://emuelec.discourse.group/t/roms-are-being-moved-to-roms-backup-on-restart/1010.md?page=3)
