mloop a save.dat file

Post here if you are a new Porteus member and you're looking for some help.
User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

mloop a save.dat file

Post#1 by Ed_P » 17 May 2014, 17:44

An observation:

mloop will not mount a save.dat file if the changes=EXIT: cheatcode is used. Even if the file is not the one specified with the cheatcode and has a different name. :no:

A feature or a shortcoming?
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: mloop a save.dat file

Post#2 by brokenman » 17 May 2014, 22:37

Interesting. mloop was written some time ago and probably needs updating but I don't think this is a coding problem. I would need to boot using this cheatcode to verify but i don't see why it would care about mounting a save.dat that isn't in use (or one that IS in use for that matter which may be a shortcoming).

It simply issues this command:

Code: Select all

mount -t auto -o loop /path/to/save.dat /mnt/loop
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: mloop a save.dat file

Post#3 by Ed_P » 18 May 2014, 04:23

Run as root.

Code: Select all

mloop  /mnt/sda5/porteus/changes/porteussave-b4.dat

using /dev/loop15

Please wait while i gather some info ....

mount: wrong fs type, bad option, bad superblock on /dev/loop15,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so



 #################################
 Your data file has been mounted at: 
/mnt/loop

You can unmount it by typing uloop

Here is a list of the files:

In Always Fresh mode it runs fine.
Ed

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: mloop a save.dat file

Post#4 by fanthom » 18 May 2014, 08:52

you wont be able to mount save.dat if it was previously mounted by initrd (and this is the case for 'changes=EXIT:' cheat)
this is partially explained here:
http://forum.porteus.org/viewtopic.php? ... 125#p16093
Please add [Solved] to your thread title if the solution was found.

Post Reply