maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Gparted - Hacked from Debian for 2008 OS (https://talk.maemo.org/showthread.php?t=24679)

penguinbait 2008-11-01 00:13

Re: Gparted - Hacked from Debian for 2008 OS
 
Well there is a script that is called to do the mount

/usr/sbin/osso-mmc-mount and also /usr/sbin/osso-umount

I can do this

mv /usr/sbin/osso-mmc-mount /usr/sbin/osso-mmc-mount-hold
gparted
mv /usr/sbin/osso-mmc-mount-hold /usr/sbin/osso-mmc-mount

And nothing will mount, or I could edit the mount script to just exit if gparted is running?

Still looking for the best idea or suggestion.

For those not paying attention, we want to stop automounts to /media/mmc1 and 2

I also found these

gconftool-2 --type bool --set /desktop/gnome/volume_manager/automount_drives true

gconftool-2 --type bool --set /desktop/gnome/volume_manager/automount_media true

Anyone know if maemo has some corresponding entries?

b-man 2008-11-01 00:33

Re: Gparted - Hacked from Debian for 2008 OS
 
I believe that you could resolve this problem with d-bus, would that help?

penguinbait 2008-11-01 02:12

Re: Gparted - Hacked from Debian for 2008 OS
 
OK,I updated the deb, it should install alongside e2fsprogs? Please let me know?

I fixed the mkswap issue

I made a workaround for the mounting issue. It will unmount the /media/mmc1 and mmc2 when started. It will remount all when gparted exits
(feel free to find a better one, but it works)

Please do some testing, I think I am done...


NOTE**** You will still get Memory card corrupted errors from maemo but nothing will mount and the errors can be ignored.

qole 2008-11-01 02:14

Re: Gparted - Hacked from Debian for 2008 OS
 
Quote:

Originally Posted by penguinbait (Post 238319)
I also found these

gconftool-2 --type bool --set /desktop/gnome/volume_manager/automount_drives true

gconftool-2 --type bool --set /desktop/gnome/volume_manager/automount_media true

Anyone know if maemo has some corresponding entries?

There's some entries in /system, but I think they're read-only:

/system/osso/af/internal-mmc-device-present
/system/osso/af/mmc-cover-open
/system/osso/af/mmc-device-present
/system/osso/af/mmc-mount-point

That's all I could find... nothing under /desktop like on a "real" system :(

penguinbait 2008-11-01 02:17

Re: Gparted - Hacked from Debian for 2008 OS
 
see my last post :D:D
I did this

mv /usr/sbin/osso-mmc-mount.sh /usr/sbin/osso-mmc-mount.sh-hold
/usr/sbin/osso-mmc-umount.sh /media/mmc1
/usr/sbin/osso-mmc-umount.sh /media/mmc2
export LD_LIBRARY_PATH="/usr/GPARTED/lib:$LD_LIBRARY_PATH"
export PATH="/usr/GPARTED/bin:$PATH"
/usr/GPARTED/bin/gparted /dev/mmcblk0 /dev/mmcblk1
mv /usr/sbin/osso-mmc-mount.sh-hold /usr/sbin/osso-mmc-mount.sh
/etc/init.d/ke-recv restart

qole 2008-11-01 02:27

Re: Gparted - Hacked from Debian for 2008 OS
 
Thanks, I was actually typing my response (and answering the door to give out candy) when you posted that... I'll try out your deb shortly, I'm actually planning to remove a partition and grow my fat partition back out.

maacruz 2008-11-01 02:54

Re: Gparted - Hacked from Debian for 2008 OS
 
Quote:

Originally Posted by qole (Post 238287)
Sorry, I have no ideas, that's the problem. There's some little daemon in there trying to remount mmcblk0p1 and mmcblk1p1 any time there's any change to those partitions...

It is ke-recv, I think (I wrestled with it while doing my swap file in external mmc hack).

penguinbait 2008-11-01 03:11

Re: Gparted - Hacked from Debian for 2008 OS
 
Quote:

Originally Posted by maacruz (Post 238350)
It is ke-recv, I think (I wrestled with it while doing my swap file in external mmc hack).

Yes, the ke-recv is the issue, but if I turn it off and run gparted, the system reboots while scanning for devices.

So I am just using ke-recv to remount the partitions when gparted is complete.

I really don't like doing the mv, but I havn't found another way around it yet !!

heelio 2008-11-01 04:34

Re: Gparted - Hacked from Debian for 2008 OS
 
Well I tried to install it; got an "unable to install" error. I was installing from my external card in the app manager. Booted from flash.

penguinbait 2008-11-01 04:41

Re: Gparted - Hacked from Debian for 2008 OS
 
Quote:

Originally Posted by heelio (Post 238373)
Well I tried to install it; got an "unable to install" error. I was installing from my external card in the app manager. Booted from flash.

can you paste in the log from the application manager, or upload it as an attachment here.

In application manager > Open Menu > Tools > Log


All times are GMT. The time now is 22:11.

vBulletin® Version 3.8.8