Pmount fixed

Thanks to information provided by eprv, I was able to fix a bug in Pmount.

Eprv has a CF card with only a single Linux swap partition, and this caused Pmount to crash. In fact, Pmount will crash for any drive without a usable partition or "superfloppy" filesystem.

I put in a check for this condition, and verified it works by creating a USB drive with only a swap partition.

Posted on 5 Sep 2008, 18:35


Comments:

Posted on 5 Sep 2008, 22:40 by Flapdoodle
USB Pmount swap
I used Pmount on a 128meg Sony USB flash all swap with Puppy 405 without trouble. Pmount works fine mounting/unmounting.

Is this a different Pmount?


Posted on 6 Sep 2008, 11:28 by BarryK
Re: usb flash pmount
It is possible that Pmount worked. If you plugin the Sony USB flash drive and then run "probepart", it may show a different filesystem, not "swap" -- this can happen if a partition as previously something, say "vfat" and then you ran "mkswap" on the partition -- but that is not a proper conversion to swap. You really need to run Gparted, delete the partition then create a new swap partition -- then Pmount will crash!


Posted on 6 Sep 2008, 23:04 by Flapdoodle
Pmount/SWAP
The swap file WAS made with Gparted. Just to double check, I did as you said and used Gparted to delete the drive, then remake it as swap. Still no problems with Pmount.

I did discover that if a second flashdrive is in place Pmount gets confused and mounts the wrong one. Removing the additional drive restored Pmount to mounting the proper one.

Probepart does indeed show it as VFAT, but at twice the size it should be. Probepart also shows the SWAP on the HD as twice its real size (as SWAP).

Hope this helps a little rather than making things more confusing.


Posted on 7 Sep 2008, 2:24 by eprv
swap
Thanks again, actually the cf swap was always there since Puppy 3.01 and Pmount worked well until I have formatted the first drive from Ext3 to XFS, I have an extra cf formatted with Ext3 so I will try replacing the XFS and post the result here.


Posted on 7 Sep 2008, 4:48 by eprv
swap pmount
Replacing the XFS cf to EXT3, Puppy 4.07 from usb stick, there is a useable sda1 icon for the EXT3 cf, but Pmount returns same error:

Please wait, probing hardware..."
/usr/sbin/pmount: line 251: 4972 Aborted

This was just fine with 3.01 and 4.00 I think it started with 4.05, so not sure it is the swap problem unless Pmount has changed.
Hope that helps