Forum: The Testing Area
started by: roberts
Posted by roberts on May 22 2008,18:42Thanks to Juanito for:
Posted by kuky on June 01 2008,09:16how to download ?
where is ?
Posted by Juanito on June 01 2008,09:19It'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:03i 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:36Maybe the best way to troubleshoot is to start gparted from a terminal window:
I'm guessing you might get something like this:
If so, you can fix it by opening /etc/ld.so.conf, editing it so that "/opt/gtk+-2.10/lib" appears above "/usr/lib" and then re-issuing the ldconfig command:
If you get some other error, please post it in this thread.
Posted by meo on June 02 2008,07:32Hi 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:49I 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:00Hi 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:39Master Po Juanito i am only Grasshopper but by the procedure try and error i have the same results than meo..no 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
- 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:24I also got 'No devices detected', even after editing ld.so.conf
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:30Hmm - 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:29Why not use a partition manager that boots from a cd (eg, parted magic) ?
Posted by Juanito on June 05 2008,05:37Sure - 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:51I 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
shows all libs found aok. So far so good.
But gparted GUI starts up from a root shell ok:
However it doesn't see any devices.
Posted by WDef on June 08 2008,22:37@Juanito:
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.
< http://lists.rpmforge.net/piperma....89.html >
< http://people.freedesktop.org/~david....delines >
but dsl doesn't have HAL, which I believe is a 2.6.xx kernel thing.
EDIT: specifically kernel 2.6.17 or later
< http://freedesktop.org/wiki/Software/hal >
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:48Seems that on May 10 the developers removed the absolute requirement for hal-lock from gparted sources:
< http://cia.vc/stats/project/gnome/gparted >
This was after the 0.3.7 release on 29 April.
So you might want to try svn sources < http://gparted.sourceforge.net/svn.php >
These won't need HAL.
Posted by Juanito on June 09 2008,03:09Thanks, 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:06gparted_start.sh 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:14About 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:23Perhaps 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
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:37Try 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:30I 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 gparted_start.sh 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?