Pdrive 0.27

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#101 Post by zigbert »

pdrito
Does Barrys new Pmount detect your size correct. I have not changed anything in Barrys sizedetection code (I think). Would you please post a screenshot of the the new Pmount together with Pdrive 0.23.

Sigmund
JB4x4
Posts: 256
Joined: Sun 30 Jul 2006, 22:44
Contact:

#102 Post by JB4x4 »

I too show double the drive size - free space is correct though.

Here is a screens shot...
Attachments
pdrivesize.png
(166.21 KiB) Downloaded 756 times
JB4x4
Posts: 256
Joined: Sun 30 Jul 2006, 22:44
Contact:

#103 Post by JB4x4 »

zigbert ---

Try this:

change the code at the start of func_probe

Code: Select all

PROBEPART="`probepart`"
DISKINFO="`probedisk`"
PARTSINFO="`echo "$PROBEPART" -k | grep -v 'none' | tr ' ' '_' | tr '\t' '_' | tr '\n' ' '`"
to

Code: Select all

PROBEPART="`probepart -k`"
DISKINFO="`probedisk`"
PARTSINFO="`echo "$PROBEPART" | grep -v 'none' | tr ' ' '_' | tr '\t' '_' | tr '\n' ' '`"
I moved the "-k" seems to have fixed the size problem (on my pc)

JB
pdrito
Posts: 50
Joined: Thu 18 Jan 2007, 14:13

#104 Post by pdrito »

On puppy-214 I have this images:
Barry's pmount
Pdrive 0.23 version


When you ask me for the last Barry's pmount, do you meant on puppy-3.01 or puppy-4 alpha2 ?.
Attachments
on.puppy214.pmount.and.pdrive023.jpg
(114.34 KiB) Downloaded 760 times
User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#105 Post by BarryK »

zigbert, the underlying code in pmount was a dog's breakfast. I've been intending to rewrite it for ages. I've attached the latest pmount (slightly later than the one I uploaded to ibiblio several days ago) and a bugfixed 'mount' script that has to be used for mounting ntfs.

You might like to examine the new code, and if you wish use it for Pdrive.
Attachments
mount.gz
(1.63 KiB) Downloaded 1115 times
pmount.gz
(2.57 KiB) Downloaded 889 times
[url]https://bkhome.org/news/[/url]
User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#106 Post by BarryK »

Just added this to pmount, at line 208:

else
[ "$DOFS" = "iso9660" ] && eject $DODEV
[url]https://bkhome.org/news/[/url]
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#107 Post by zigbert »

I'll go for an upgrade...
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#108 Post by zigbert »

Version 0.25 is uploaded. See main post.
Wolf Pup
Posts: 637
Joined: Fri 28 Apr 2006, 01:37

Re: Pdrive 0.25

#109 Post by Wolf Pup »

zigbert wrote:- Updated Barrys fixes: rox -x to rescan dir and detection of partition on / (full installation)
does this apply for dingo or puppy 3.01. in puppy 3.01 pdrive still says unmounted while it is mounted.

Code: Select all

# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda3             12388188   2493888   9390824  21% /
shmfs                    55052         0     55052   0% /dev/shm
/dev/hda5             12389324   4976280   6783700  42% /mnt/hda5

Code: Select all

# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,data=ordered)
none on /proc type proc (rw)
shmfs on /dev/shm type tmpfs (rw)
none on /dev/pts type devpts (rw)
none on /sys type sysfs (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/hda5 on /mnt/hda5 type ext3 (rw,noatime,data=ordered)
[img]http://img230.imageshack.us/img230/8595/ubd6467dp2.png[/img]
[url=http://www.tinyurl.com/54tu74]Visit The Repository[/url] - Helpful and hard-to-find treats for Puppy 3.
[url=http://www.tinyurl.com/c5a68f]Click Here for Puppy Support Chat, + Helpful Links.[/url]
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#110 Post by zigbert »

Wolf Pup
Pdrive is nothing new. Pdrive is no spicy code. Pdrive is just a new gui to Barrys code (Pmount). I can't tell too much about his code. I never took the time to investigate. If something drives aren't detected correct, the main question is: Does it in Pmount? if YES --> My code hasn't cloned well from Pmount. if NO --> We need a bugfix of Pmount / We need new code in Pdrive. Both is just fine with me. Pdrive used earlier the Pmount version in Puppy 3. From version 0.22, Pdrive uses the rewritten code of the latest Pmount in Dingo. Unfortunately I can't see the new Pmount package in the Puppy 4.00 repository. I grabbed it from an alpha-live-CD.

Sit Heel speak made me aware of the not working swap-detection in another thread. The NEW Pmount doesn't detect swaps, so here has my dirty hands been hacking again. My fault.

Sigmund
User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#111 Post by Sit Heel Speak »

See this screenshot of PDrive and MUT:
http://i27.tinypic.com/2pob0c8.png

The swap partition hdc2 is shown correctly.

The swap partition hdb1 also showed correctly, until I mounted hda6. Then I refreshed PDrive, and hdb1 showed incorrectly as Mounted.
JB4x4
Posts: 256
Joined: Sun 30 Jul 2006, 22:44
Contact:

#112 Post by JB4x4 »

Zigbert,

I believe there is a regression in version 0.25. Clicking on the "View Advanced" tab, all partitions show 0.0G / 0.0G, with the exception of my "boot" partition which still shows 94M/72M.

I replaced with the script func_probe with the one from 0.24 and sizes were reported again, but they were shown in the device column.

JB
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#113 Post by zigbert »

Hey guys
Please try version 0.26 (see main post).

Sit Heel Speak
I have made some changes to swap handling, but I haven't investigated your problem. If it still occur, - I really want to know.

Sigmund
JB4x4
Posts: 256
Joined: Sun 30 Jul 2006, 22:44
Contact:

#114 Post by JB4x4 »

Zigbert,

Tried out 0.26 and sizes are reporting correctly again.

JB
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#115 Post by zigbert »

Version 0.27 is uploaded. See main post.
User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#116 Post by Sit Heel Speak »

PDrive 0.27 is working correctly now on Puppy 2.17, with regard to swap:
http://i30.tinypic.com/2q3qgdg.png
User avatar
Jon_J
Posts: 76
Joined: Thu 06 Mar 2008, 20:10
Location: Illinois

Automounter that mounts during boot?

#117 Post by Jon_J »

I hope I'm not going off topic, but is there an automounter that mounts your hard drives/partitions during the boot process?
I know this is like comparing apples to oranges, but at the Zaurus community, there is a guy that made an automounter package that mounts almost everything automatically.
There are only 3-4 partitions on the internal HDD, they get mounted at boot.
Both CF and SD cards are mounted during boot, (if they are inserted).
CF/SD cards automatically mount/umount upon insertion/removal.
Most all external USB storage devices mount automatically. I had to edit a file to make my 750MB zip drive mount automatically.
This package isn't launched, it just runs when the Zaurus is turned on, or booted.
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#118 Post by zigbert »

Dougal has made a automounting daemon for puppy

check the readme.txt here: http://puppylinux.ca/tpp/tronkel/hotpup ... tc/HotPup/

Latest community edition uses it:
http://www.murga-linux.com/puppy/viewto ... 72&t=25757
disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#119 Post by disciple »

Is this normal?
# pdrive
sh: locate: command not found
/usr/local/pdrive/func_probe: line 107: [: -gt: unary operator expected
/usr/local/pdrive/func_probe: line 112: [: -gt: unary operator expected
dc: stack underflow
dc: stack underflow
dc: stack underflow
EXIT=" "
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#120 Post by zigbert »

Does Pdrive show free space on a mounted disk?

line 105 and 112 should maybe been changed from
if [ $FREEK -gt ... -----> if [ "$FREE" -gt ...
Post Reply