Forum: The Testing Area
Topic: gaprted.uci
started by: roberts

Posted by roberts on May 22 2008,18:42
Thanks to Juanito for:
Code Sample
Title:          gparted.uci
Description:    gnome partition editor
Version:        0.3.7
Author:         see
Copying-policy: GPLv2
-----==[  Color = green     Filesize:   3.5MB  ]==-----
Extension by:   juanito
Comments:       *** Requires gtk+-2.10.uci cairo-1.2.uci & ntfsprogs-2.uci ***
               may work with other gtk2 extensions - not tested
               GParted is an industrial-strength package for creating, destroying,
               resizing, moving, checking and copying partitions, and the filesystems
               on them.
               *** BIG FAT WARNING - THIS RUNS AS ROOT ***
               Since GParted can be a weapon of mass destruction only root may run it.
               also contains:
               see see
Change-log:     First version
Current:        2008/05/16

Posted by kuky on June 01 2008,09:16
how to download ?

where is ?


Posted by Juanito on June 01 2008,09:19
It's in < mydsl testing > or, if you are using a recent version of dsl-4.x you can use mikshaw's mydsl browser to search all of the mydsl archive
Posted by kuky on June 01 2008,14:03
i load uci gtk2-10 (previus i have gtk0.75)
load uci cairo
load uci ntfs
load uci gparted
run gparted ....and nothing its done(the windows ram/cpu usage  up and down)

i have a resol of 800*600

who is wrong ?


Posted by Juanito on June 01 2008,14:36
Maybe the best way to troubleshoot is to start gparted from a terminal window:
Code Sample
$ LD_LIBRARY_PATH=/opt/gparted/lib:/opt/ntfsprogs-2/lib:/opt/gtk+-2.10/lib /opt/gparted/sbin/

I'm guessing you might get something like this:
Code Sample
/opt/gparted/sbin/gpartedbin: relocation error: /opt/gtk+-2.10/lib/ undefined symbol: g_regex_unref

If so, you can fix it by opening /etc/, editing it so that "/opt/gtk+-2.10/lib" appears above "/usr/lib" and then re-issuing the ldconfig command:
Code Sample
$ sudo beaver /etc/
[edit as above]
$ sudo ldconfig

If you get some other error, please post it in this thread.

Posted by meo on June 02 2008,07:32
Hi Juanito!

It made me glad when I saw that you had submitted and extension of gparted to DSL but when I tried it out and it started to run it finished with "no devices detected". What could be the explanation of that? I'm running DSL-embedded 4.3 from usb-connected SDHC memory card. I'm using gtk+-2.12.9 instead of the other gtk2 library. Well I don't know what could have caused it.

Have fun and thank you for making nice extensions,

Posted by Juanito on June 02 2008,07:49
I may be wrong here, but I would think that gparted would require direct, low level, access to the devices you wish to repartition. This would probably mean (I don't know for sure, I never ran dsl embedded) that an embedded/virtual boot would not allow gparted the access it needs.

Similarly, for gparted to access a hd, you would probably need the hd to be unmounted - implying dsl booted from cd/usb.

As I recall, gparted on my old desktop frugal hd install would only detect usb sticks and gparted on my laptop usb boot would only detect the hd.

Posted by meo on June 02 2008,12:00
Hi again Juanito!

Maybe I wasn't clear enough about how I am using DSL. Right now I'm using an usb-stick with DSL 4.4RC2 to try it out. That is also the embedded version of this RC. I usually don't use it embedded in another OS but just want to have the possibility. When I made my first post in this thread I was using DSL 4.3 (also the embedded one) as if it was just an usb-drive. Since I'm using an old laptop (7+ years) I can't boot directly from usb so I use a cd to boot with the following boot code: "dsl fromhd=/dev/sda1 frugal". So the SDHC card functions as an external usb harddrive. Nevertheless that might be the reason that gparted doesn't find any devices.

Have fun and keep up your appreciated work,

Posted by kuky on June 02 2008,21:39
Master Po Juanito i am only Grasshopper but by the procedure try and error i have the same results than devices detected

hd install dsl 4.4.rc2 with gtk2 2.19 uci

beers to meo and juanito

Posted by Juanito on June 03 2008,14:07
hd install dsl 4.4.rc2 with gtk2 2.19 uci

- is it possible to try a cd or usb boot on the same machine to see if the hd is then detected by gparted?

Posted by humpty on June 05 2008,00:24
I also got 'No devices detected', even after editing

In the terminal window:

libparted : 1.8.8
Invalid argument during read on /dev/hda
Invalid argument during read on /dev/hdc

and after inserting a usb pen:

Invalid argument during read on /dev/sda

frugal boot from freedos:loadlin

Posted by Juanito on June 05 2008,03:30
Hmm - I'm a bit stuck with machines to test this on. I tried again with a usb boot on my laptop and gparted detects the ntfs hd - I cannot really do anything with the hd as it has a windows system on it.

My old desktop has scsi hd that will not work with grub and gives the "invalid argument" error mentioned above. If I plug in a usb stick however, it is detected by gparted.

It seems that there's some kind of error in the gparted extension but, without any other hardware at my disposal, I'm not sure what I can do to help fix the problem...

Posted by jpeters on June 05 2008,05:29
Why not use a partition manager that boots from a cd (eg, parted magic) ?
Posted by Juanito on June 05 2008,05:37
Sure - that's always an option. I also made a gparted live cd that behaves in the same way as the gparted extension on my hardware...
Posted by WDef on June 08 2008,21:51
I have a different error Juanito, currently testing with gtk+-2.12.9.uci.

gparted doesn't start from the menu (I'm also on an old dsl).

If I do

Code Sample
$ export LD_LIBRARY_PATH="/opt/gparted/lib:/opt/ntfsprogs-2/lib


Code Sample
$ ldd /opt/gparted/sbin/gpartedbin

shows all libs found aok.  So far so good.


Code Sample
$ sudo ldd /opt/gparted/sbin/gpartedbin


Code Sample => not found

But gparted GUI starts up from a root shell ok:

Code Sample
# export LD_LIBRARY_PATH="/opt/gparted/lib:/opt/ntfsprogs-2/lib
# /opt/gparted/sbin/gpartedbin

However it doesn't see any devices.

Posted by WDef on June 08 2008,22:37

This might(?) have something to do with it not seeing devices:

It appears that gparted requires HAL >= 0.5.9 and uses hal_lock to prevent automounters trying to mount a partition while gparted is doing its stuff.

< >

< >

Disk Management / Partitioning

In order to prevent HAL-based automounters from mounting partitions that are being prepared, applications that access block devices directly (and pokes the kernel to reload the partitioning table) should lock out automounters by either a) obtaining the org.freedesktop.Hal.Device.Storage lock on each drive being processed; or b) obtaintaing the global org.freedesktop.Hal.Device.Storage lock. This includes programs like fdisk, gparted, parted and operating system installers. See also the section called “org.freedesktop.Hal.Device.Volume interface” and the hal-lock(1) program and manual page.

but dsl doesn't have HAL, which I believe is a 2.6.xx kernel thing.

EDIT: specifically kernel 2.6.17 or later

< >

Is there a configure option to compile gparted without HAL support?

Or you might need to build a pre-HAL older version of gparted.

(HAL is one of those things it would be good to have in the future 2.6.xx version of dsl.)

Posted by WDef on June 08 2008,23:48
Seems that on May 10 the developers removed the absolute requirement for hal-lock from gparted sources:

< >

Removed absolute requirement for hal-lock. GParted will now work on systems with or without hal-lock

This was after the 0.3.7 release on 29 April.

So you might want to try svn sources < >

These won't need HAL.

Posted by Juanito on June 09 2008,03:09
Thanks, I thought - I'm not at a dsl machine at the moment - that I'd started gparted via a small wrapper script that avoided the hal thing, but I'll double-check.
Posted by WDef on June 09 2008,10:06 just calls sudo gpartedbin on the uci that I have.

There is a script /opt/gparted/sbin/gparted that looks like it implements the lock with hal-lock when running gpartedbin.

[I think] Starting gpartedbin directly doesn't get around the hal requirement, and it appears no warning that it was mandatory was included in this release version.

Posted by curaga on June 09 2008,10:14
About getting HAL for DSL. How to best say this.. yuck. No.
I'm so much against having the system decide for me "seems you plugged in an usb stick, would you like me to format it, or mount it"

It has locale problems, doesn't handle UTF-8, is heavy, and no-one really needs it.

Posted by WDef on June 09 2008,10:23
Perhaps HAL is all of those things and worse, but it is increasingly being required as a dependency.  If the kernel support is there (which is what I meant), the userspace stuff presumably could be an extension. I suggest this is OT and for another thread.   Robert sent me a PM telling me off the last time I got OT :=)

Back to gparted.

Posted by Juanito on June 09 2008,14:15
Quote just calls sudo gpartedbin on the uci that I have.

There is a script /opt/gparted/sbin/gparted that looks like it implements the lock with hal-lock when running gpartedbin.

[I think] Starting gpartedbin directly doesn't get around the hal requirement, and it appears no warning that it was mandatory was included in this release version.

That would make sense - I thought that gpartedbin might get round the hal thing, but your explanation makes more sense. I guess it might be smarter to go back a few versions (and indeed the gparted cd was a few versions earlier) and recompile gparted - sigh...

Posted by WDef on June 09 2008,18:37
Try checking out and compiling the svn sources first.

As I said above, the developers have just removed the hal requirement (or made it optional).  There must have been other problems.

But (this early) this change will probably only be in the svn sources, not the release tarball that you built the extension from.

So maybe fire up the svn uci.

Posted by Juanito on June 12 2008,09:30
I just compiled gparted-0.3.5 to see if this would get around the hal issue and realised the cause of the problem might be something else...

gparted needs to be run as root and cannot be run via set uid root - I had started gpartedbin using sudo in the wrapper, but maybe this was, ahem, too simplistic.

I see a difference in the way gparted acts when started from a root window (exec /opt/gparted/sbin/gpartedbin &) as compared to starting it via the icon/menu item. At the moment I have only my usb boot laptop with ntfs hd to test - in both cases (icon start & root window start) gparted finds the two hd partitions, but it cannot read the partitions in the case of the icon start.

Maybe somebody could try starting gparted from a root window to see if the device detection problem goes away?

In the meantime, what is the best way to run an application as root from an icon/menu item in dsl?

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.