Jump to content


Photo

Extend Utils


  • Please log in to reply
65 replies to this topic

#46 Stuckie

Stuckie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 432 posts
  • Gender:Male
  • Location:Tired, and sleeping in the basement...

Posted 29 June 2011 - 09:01 AM

You can't mount the extends that way to copy them, as we'll have mounted /proc and /home, which'll confuse the system...

You'll have to do something like this:
cd /tmp
mkdir extendA extendB
sudo mount -o loop /path/to/extendA extendA
sudo mount -o loop /path/to/extendB extendB
sudo cp -a ./extendA/* ./extendB
sudo umount extendB
sudo umount extendA
rmdir extendA
rmdir extendB

I might be able to whip up a quick Zenity-based thing tonight, and maybe update Extend Utils while I'm at it.. however it's a bit pushing for time just now :(

-edit-
Ok, running late again, but try this:

zenity --info --text="Please select the old extend file."
extendFileA=$(zenity --file-selection --file-filter=*.extend);
if [ -f $extendFileA ]
then
        zenity --info --text="Please select the new extend file."
        extendFileB=$(zenity --file-selection --file-filter=*.extend);
		if [ -f $extendFileB ]
		then
			gksudo "mkdir /tmp/extendA"
			gksudo "mkdir /tmp/extendB"
			gksudo "mount -o loop $extendFileA /tmp/extendA"
			gksudo "mount -o loop $extendFileB /tmp/extendB"
			sudo cp -a /tmp/extendA/* /tmp/extendB | zenity --progress --pulsate --text="Please Wait.\nCopying..."
			gksudo "umount /tmp/extendA"
			gksudo "umount /tmp/extendB"
			gksudo "rm -rf /tmp/extendA"
			gksudo "rm -rf /tmp/extendB"
			zenity --info --text="All done, you can delete your old extend now if you want."
		fi
fi

Stick that in a file called extendCopy.sh.
chmod +x extendCopy.sh
./extendCopy.sh
And follow the prompts...

The sudo in amongst the gksudos is a bit iffy, but gksudo didn't seem to like using cp for some reason.. so.. hopefully it works!

Edited by Stuckie, 29 June 2011 - 09:25 AM.


#47 Esn

Esn

    (:\

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 2758 posts
  • Gender:Male
  • Location:Toronto, Canada
  • Interests:Art, Classical Music, Biology, Fantasy/Sci-Fi (books, art, movies, games), Crosscountry skiing, adventuring to foreign parts, and of course, handheld gaming machines. ;)

Posted 29 June 2011 - 12:41 PM

Well, extendcopy.sh didn't seem to work properly... nothing crashed, but it didn't copy the files.

I also tried it with that sequence of terminal commands. Everything was fine until I did the sudo cp command. Then I got a number of error messages, not a variety of them like before but the same one repeated over and over, something about NFS (sorry, should have written it down). The end result was the same, though - my Pandora got slower and slower, and eventually crashed. Also when I rebooted, I found that my start menu had disappeared.

#48 Stuckie

Stuckie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 432 posts
  • Gender:Male
  • Location:Tired, and sleeping in the basement...

Posted 29 June 2011 - 01:12 PM

That's rather mad.. I admit to not testing it on the Pandora, but I did run it on my PC without issues!
I have a feeling it ran out of memory when copying files and wasnt flushing the buffer as often as it should have... but killing your menu is definitely a unique issue!
-edit-
To get that back, by the way... just right click on the panel and add the XFCE menu... I've killed mine often enough by accident ;)
-/edit-

No idea about the NFS stuff.. that doesnt make much sense, either.

Edited by Stuckie, 29 June 2011 - 01:13 PM.


#49 Esn

Esn

    (:\

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 2758 posts
  • Gender:Male
  • Location:Toronto, Canada
  • Interests:Art, Classical Music, Biology, Fantasy/Sci-Fi (books, art, movies, games), Crosscountry skiing, adventuring to foreign parts, and of course, handheld gaming machines. ;)

Posted 29 June 2011 - 01:29 PM

Yeah... I seem to have screwed up some other things as well, so I'm just going to go ahead and reflash now. :ph34r: Well, serves me right for typing sudo commands without any protection such as OS extend or booting from SD.

I hope edgex004 has better luck, then maybe I can follow his lead. ;)

Um, also, if somebody does manage to do this successfully, if you could zip up the resulting file and upload it somewhere, probably some people would be grateful.

EDIT: Hm... I opened the SD card in windows and tried to copy the 1gb.overlay file. And I got a pop-up saying "Cannot copy 1gb: The file or directory is corrupted and unreadable". I wonder if this is due to something I did, or due to the SD card, or what... maybe I should also format the SD card and start fresh, just in case. (I HAD run it through the Panasonic SD formatter before I started using it, but that was months ago)

EDIT2: Apparently some files on the SD card have become cross-linked.

Edited by Esn, 30 June 2011 - 04:26 AM.


#50 theeggman

theeggman

    Member

  • Members
  • PipPip
  • 2 posts

Posted 29 June 2011 - 04:33 PM

I did mange to expand the debian extend to 1gb..
However I used my Desktop to do it.

#51 Stuckie

Stuckie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 432 posts
  • Gender:Male
  • Location:Tired, and sleeping in the basement...

Posted 29 June 2011 - 04:55 PM

Here we go, a 1gb version: http://stuckiegamez.co.uk/apps/pandora/ExtendUtils/debian.lennydev.20110629.1gb.zip

Hooray for remote access to servers!

Edited by Stuckie, 29 June 2011 - 05:06 PM.


#52 edgex004

edgex004

    GP32 User

  • Members
  • PipPipPip
  • 61 posts

Posted 29 June 2011 - 06:54 PM

Here we go, a 1gb version: http://stuckiegamez....0110629.1gb.zip

Hooray for remote access to servers!


Thank you thank you! I was about to try it on a desktop, but now there's no need. I'll let you know how it works after I go home and grab my pandora. Luckily a restart or two seemed to clear up any of the muck I caused so I don't think I'll need a reflash.

#53 Esn

Esn

    (:\

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 2758 posts
  • Gender:Male
  • Location:Toronto, Canada
  • Interests:Art, Classical Music, Biology, Fantasy/Sci-Fi (books, art, movies, games), Crosscountry skiing, adventuring to foreign parts, and of course, handheld gaming machines. ;)

Posted 01 July 2011 - 02:59 PM

Ok, after reflashing my OS and reformatting my SD card (which seemed to have picked up lots of I/O errors and cross-linked files), everything seems to be working as it should now. :)

I have a question now. I'm still trying to follow the basic outlines of mcobit's tutorial.

Now type make and wait until your game is built for you.

When this finished without errors, we can create the installation dir:

sudo mkdir /mnt/utmp/abe
sudo chmod -R 777 /mnt/utmp/abe

Now we install the game:

make install

When I try sudo mkdir, it tells me "cannot create directory... no such file or directory". I can't do it from within Debian, only from within Angstrom, so I guess /mnt/utmp is not accessible from Debian. So... what do I do?

#54 Stuckie

Stuckie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 432 posts
  • Gender:Male
  • Location:Tired, and sleeping in the basement...

Posted 01 July 2011 - 03:54 PM

The simplest answer is always the best :)
Create the folder!

Alternatively, if you do sudo mkdir -p /mnt/utmp/abe instead, it'll create all intermediate folders which don't exist.

#55 Esn

Esn

    (:\

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 2758 posts
  • Gender:Male
  • Location:Toronto, Canada
  • Interests:Art, Classical Music, Biology, Fantasy/Sci-Fi (books, art, movies, games), Crosscountry skiing, adventuring to foreign parts, and of course, handheld gaming machines. ;)

Posted 01 July 2011 - 04:46 PM

That is indeed very obvious. I thought it would just automatically create intermediate folders if they didn't exist, so I didn't realize that I needed to add -p.

I came upon a bunch of GDK display errors when trying to get my program to run, but that's unrelated to this, so I'll start another thread about that later today. Thanks again for the help!

#56 Esn

Esn

    (:\

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 2758 posts
  • Gender:Male
  • Location:Toronto, Canada
  • Interests:Art, Classical Music, Biology, Fantasy/Sci-Fi (books, art, movies, games), Crosscountry skiing, adventuring to foreign parts, and of course, handheld gaming machines. ;)

Posted 02 July 2011 - 01:18 AM

A more general question, for the future:

Is it safe to use "sudo apt-get update" and "sudo apt-get upgrade" with this Lenny Debian extend?

#57 Stuckie

Stuckie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 432 posts
  • Gender:Male
  • Location:Tired, and sleeping in the basement...

Posted 03 July 2011 - 07:10 PM

Yes, completely safe as Lenny is a Debian release and they don't tend to fidget with it much save for security fixes.
Even then, it's "oldstable" at the moment, so it's only receiving critical security fixes and community backports at the moment ( if I remember how Debian works, correctly )

#58 Esn

Esn

    (:\

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 2758 posts
  • Gender:Male
  • Location:Toronto, Canada
  • Interests:Art, Classical Music, Biology, Fantasy/Sci-Fi (books, art, movies, games), Crosscountry skiing, adventuring to foreign parts, and of course, handheld gaming machines. ;)

Posted 05 July 2011 - 08:00 AM

Whenever I run any program while in the Lenny extend, I get the message "Gtk-WARNING **: cannot open display: :0.0", or a similar one. It has been true for Solfege, eatuner and gnusound, so far. Solfege and eatuner were installed with the method from mcobit's tutorial in /mnt/utmp/program, while gnusound I just installed with "sudo apt-get install gnusound".

Freamon in this topic thinks that it's running programs from within the extend that's doing it.

Is there a fix?

Edited by Esn, 05 July 2011 - 08:01 AM.


#59 Stuckie

Stuckie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 432 posts
  • Gender:Male
  • Location:Tired, and sleeping in the basement...

Posted 05 July 2011 - 08:13 AM

There is, but if I do it, you won't be able to unmount the dev extend cleanly as it involves linking up some folders from Angstrom to Debian which are usually in constant use.

Technically, you might be able to get away with it by going through Extend Utils and choosing an OS Extend style mount... however, I haven't tried this, and I'm not sure if it would work so it's on your own head! And again, you will not be able to cleanly unmount it.

You also might be able to get away with just doing the xhost forwarding though, so try: xhost local:localhost in an Angstrom terminal. This will still allow you to cleanly unmount the Extend once you're finished.

[edit]
I probably should explain what the error is...

The error is your program being unable to reach the X Server, which is running in Angstrom rather than Debian.
The Debian system doesn't know where it is, so it can't talk to it, hence the error.
Generally, all that needs bound up is some bits of /var so that the message systems can communicate.
If you ran it from Angstrom, you shouldn't have an issue - apart from maybe library paths being a bit odd, so you may have to do LD_LIBRARY_PATH=/tmp/debextend/usr/lib /path/to/my/application to run it.

Edited by Stuckie, 05 July 2011 - 08:17 AM.


#60 Esn

Esn

    (:\

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 2758 posts
  • Gender:Male
  • Location:Toronto, Canada
  • Interests:Art, Classical Music, Biology, Fantasy/Sci-Fi (books, art, movies, games), Crosscountry skiing, adventuring to foreign parts, and of course, handheld gaming machines. ;)

Posted 05 July 2011 - 10:04 AM

Thanks... will try those out and see if it works.
In other news, I got an interesting message when I tried to run the pnd_make.sh script:
esn-openpandora:~/eatuner-pnd$ ./pnd_make.sh -d eatuner -p eatuner.pnd -x PXML.xml -i icon.png -c
FOLDER set to eatuner
PNDNAME set to eatuner.pnd
PXML set to PXML.xml
ICON set to icon.png
-c set, will create compressed squasfs image instead of iso --
./pnd_make.sh: line 44: mksquashfs: command not found
your squashfs version is older then version 4, pleas upgrade to 4.0 or later