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-10-31 18:50

Gparted - Hacked from Debian for 2008 OS
 
Qole asked me to see if I could hack a version of gparted for maemo, as it was working under Debian chroot.

This only works in flash, if you fire it up in a boot from SD partition the tablet will reboot while trying to scan /dev/mmcblk0 and /dev/mmcblk1. I assume this is because of the initfs issue with bootmenu.


The approach I took was using several debs from Debian and some compiled apps from me.

I ran into several problems, but was able to overcome all of them so far.

The install is 20MB (6MB download, 20MB on Disk, 10MB on flash)

This will also give you sudo access

Ignore the memory card corrupted errors

http://penguinbait.com/gparted-hack.deb

I think this is working well, let me know if you have any problems 11/16/08

penguinbait 2008-10-31 20:50

Re: Gparted - Hacked from Debian for 2008 OS
 
I have found an issue with formating swap partitions on this. It calls mkswap which is busybox version. I created a script called /usr/GPARTED/bin/mkswap it contains

/sbin/mkswap $3

When gparted calls it "mkswap -L "" /dev/mmcblk0p3"

mkswap for busybox does not support the -L "label"

b-man 2008-10-31 21:41

Re: Gparted - Hacked from Debian for 2008 OS
 
The download link doesn't seem to work, i keep getting a 404 error. :(

qole 2008-10-31 21:48

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

Originally Posted by penguinbait (Post 238275)
/usr/bin/gparted is a script to fire it all up.

I will need to change the script. So if you have any ideas let me know. I was doing a umount before and a mount after, but it needs something better

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...

penguinbait 2008-10-31 22:16

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

Originally Posted by b-man (Post 238285)
The download link doesn't seem to work, i keep getting a 404 error. :(

DOH, nobody said anything :D:D:D

I fixed it I mistyped the name

penguinbait 2008-10-31 22:19

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...

I will figure something out, but for now, I gotta go trick-or-treating with the kids.

Happy Halloween!!!!!!!!!!!

b-man 2008-10-31 22:38

Re: Gparted - Hacked from Debian for 2008 OS
 
Man, my frends still trick-or-treat even though there 16+.

b-man 2008-10-31 23:09

Re: Gparted - Hacked from Debian for 2008 OS
 
UPDATE: their seems to be a packaging conflict problem; Here are the errors

dpkg --install /media/mmc2/gparted-hack.deb
(Reading database ... 16121 files and directories currently installed.)
Unpacking gparted-hack (from /media/mmc2/gparted-hack.deb) ...
dpkg: error processing /media/mmc2/gparted-hack.deb (--install):
trying to overwrite `/usr/share/e2fsprogs/initrd.ext3-add-journal', which is also in package e2fsprogs
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/media/mmc2/gparted-hack.deb

Do you think it is possible to fix this problem?, possiblly by modifing the postinstall and control file?

penguinbait 2008-10-31 23:46

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

Originally Posted by b-man (Post 238309)
UPDATE: their seems to be a packaging conflict problem; Here are the errors

dpkg --install /media/mmc2/gparted-hack.deb
(Reading database ... 16121 files and directories currently installed.)
Unpacking gparted-hack (from /media/mmc2/gparted-hack.deb) ...
dpkg: error processing /media/mmc2/gparted-hack.deb (--install):
trying to overwrite `/usr/share/e2fsprogs/initrd.ext3-add-journal', which is also in package e2fsprogs
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/media/mmc2/gparted-hack.deb

Do you think it is possible to fix this problem?, possiblly by modifing the postinstall and control file?

Yeah I can fix, along with the mkswap issue. I want to resolve the mounting issue before I spin up a new version.

qwerty12 2008-11-01 00:05

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

Originally Posted by b-man (Post 238309)
UPDATE: their seems to be a packaging conflict problem; Here are the errors

dpkg --install /media/mmc2/gparted-hack.deb
(Reading database ... 16121 files and directories currently installed.)
Unpacking gparted-hack (from /media/mmc2/gparted-hack.deb) ...
dpkg: error processing /media/mmc2/gparted-hack.deb (--install):
trying to overwrite `/usr/share/e2fsprogs/initrd.ext3-add-journal', which is also in package e2fsprogs
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/media/mmc2/gparted-hack.deb

Do you think it is possible to fix this problem?, possiblly by modifing the postinstall and control file?

The quick way to remove that problem yourself, without uninstalling anything, is to use 'dpkg -i --force-overwrite /media/mmc2/gparted-hack.deb' (or --force-all, if you are feeling gung-ho :p).


All times are GMT. The time now is 00:24.

vBulletin® Version 3.8.8