Racy Puppy 5.2.2 Final, 18 Nov. 2011

Please post any bugs you have found
Message
Author
User avatar
sszindian
Posts: 807
Joined: Sun 25 Apr 2010, 02:14
Location: Pennsylvania U.S.

gmail phone

#406 Post by sszindian »

Info not posting right here...Go to Puppy Forum #2 and see post in Racy...

http://puppylinux.info/

But we will try once again here......

Surprise....

If you have a gmail account for your email, you have a feature in there called 'Call Phone' (if I remember right, you have to signup for the feature even though it's free)

if you go to: http://tinyurl.com/8479cqm

Download the .pet file:

googletalk-ff.pet

Install it in Racy-5.2.2

You have free live talk from your computer microphone to any local and long-distance phone number in the U.S. and Canada.

Works like a charm and is cyrstal clear, probably better than your phone!

This works for U.S. gmail accounts, how it will work for other parts of the world, you'll have to check that out for yourself.

NOTE: When dialing... a '1' is required for long-distance numbers and the 'area-code' seems to be required for all calls, even local.

Might even work in Slacko, Exprimo, Lupu and others... here again, you won't know unless you try.

>>>---Indian------>
Cloud Computing For Every Puppy (a .pet)
[url]http://murga-linux.com/puppy/viewtopic.php?t=69192[/url]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

mhwaveedit config file

#407 Post by don570 »

Suggestion for Barry...

I got an idea while looking a Tazoc's Lighthouse 503

He puts a mhwaveedit configuration file in his ISO
so that the first time a user launches mhwaveedit
it will have a wide window and less vertical scroll bars.
It's a nice touch!! :lol:

Here's the file he uses ----> /root/.mhwaveedit/config
Note that there is a line for window geometry

Code: Select all

# mhWaveEdit configuration file.
# Automatically generated by mhWaveEdit 1.4.20
# May be hand edited but extra comments will be removed when the 
# settings are saved.
# Remove this file to restore default settings.

tempfilesFP = true
speedReset = false
viewQuality = 128
timeDisplayScale = 0
varispeedConv = 5
tempDir1 = /root/.mhwaveedit
rollCursor = false
mixerUtility = retrovol
showTimeScale = true
showSpeed = false
showHorizontalZoom = false
playerFallback_BigEndian = false
showVerticalZoom = false
speedSmooth = true
speedConv = 0
soundDriver = auto
soundBufferSize = 65536
timeDisplay = 0
mainwinFront = true
recentFiles = 4
drawImprove = true
varispeed = true
playerFallback_SampleSize = 2
autoPlayMark = false
outputStereo = false
useGeometry = true
outputByteswap = false
ditherPlayback = 0
windowGeometry = 50_50_822_292
diskEditingThreshold = 131072
centerCursor = true
soundLock = false
playerFallback_Signed = true
ditherEditing = 1

________________________________________

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

/etc/services is missing entries for ntp.

#408 Post by npierce »

After being a happy Puppy 4.3.1 user for over two years, I decided to try something new. Trying out Racy 5.2.2, I am pleased to see that the past couple of years have brought many improvements. Racy is looking good!

I did notice, however. that ntpdate (which was included in both Puppy 4.3.1 and Racy 5.2.2) is still not working because of an omission in the /etc/services file.

For details see the following bug report submitted by Minomushi in 2010: ntpdate trouble

I am attaching a copy of /etc/services which is a duplicate of the one included with Racy 5.2.2 except that the missing entries have been added.
Attachments
services.gz
/etc/services with entries for ntp
(957 Bytes) Downloaded 359 times

nobles
Posts: 9
Joined: Wed 12 Dec 2007, 15:55
Location: Winnipeg, Canada

Trouble with Ralink RT2860 Wirless Driver

#409 Post by nobles »

With Racy Puppy 5.2.2, I managed to add the RT2860.bin firmware file for the Ralink RT2860 driver that was missing to the lib/firmware folder but after that I cannot find any wireless networks when scanning, even though there is definetly one that should be able to be found.

Any ideas on how I can make a Ralink RT2860 adapter work with Racy Puppy 5.2.2?

User avatar
sszindian
Posts: 807
Joined: Sun 25 Apr 2010, 02:14
Location: Pennsylvania U.S.

wifi problem

#410 Post by sszindian »

nobles:

You might want to move your question on Racy wifi over to the forum thread below for better results:
http://www.murga-linux.com/puppy/viewtopic.php?t=74819

I still have a problem with rt2800USB but at least it was addressed over there.

>>>---Indian------>
Cloud Computing For Every Puppy (a .pet)
[url]http://murga-linux.com/puppy/viewtopic.php?t=69192[/url]

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

B43 returns in k3.1.8

#411 Post by peebee »

cmccullough wrote:Well, everything but the B43 Broadcom wireless but that's to be expected. I'm getting pretty used to that. Just need to figure out how to get it working under Puppy.

Thanks!
Just tried wuxiandianzi's experiment with k3.1.8 and it looks like B43 support has been fixed in this kernel so there's hope for us B43 users on k3.....
http://murga-linux.com/puppy/viewtopic. ... 527#596527

Cheers
peebee
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#412 Post by jemimah »

This fixes 2 bugs in the PUI.

First if you choose to run gparted the drive selection window shows your drive twice in the drive selection window after you quit gparted.

The second is that the PUI offers a full install to NTFS.

Code: Select all

--- puppyinstaller.orig	2012-01-15 21:21:20.000000000 -0500
+++ puppyinstaller	2012-01-15 21:23:17.000000000 -0500
@@ -406,6 +406,8 @@
 /tmp/dlg1
 [ $? -ne 0 ] && exit
  
+unset SELECTIONS 
+ 
 DRVSEL="`cat /tmp/retval`"
 [ "$DRVSEL" = "" ] && exit
 
@@ -1157,7 +1159,8 @@
 and you may choose to upgrade or totally replace."
   fi
   INSTOPTION="1"
-  if [ ! "$DESTFS" = "vfat" ];then
+  #if [ ! "$DESTFS" = "vfat" ];then
+  if [[  "$DESTFS" =~ "ext.*" ]] ; then
    LANG=C Xdialog --wmclass "gtkdialog2" --left --buttons-style text --title "Puppy Universal Installer" --ok-label "FRUGAL" --cancel-label "FULL" --yesno "You have chosen to install to /dev/$DESTPART, which appears to be an internal
 hard drive ($FINALPMEDIA).
 $PREVPUPMSG 

User avatar
Terryphi
Posts: 761
Joined: Wed 02 Jul 2008, 09:32
Location: West Wales, Britain.

#413 Post by Terryphi »

The French blogger "Gu1" has discovered that versions 1.11 and above of X.org's X Server contain an interesting vulnerability that enables users to gain access to a locked computer.

http://www.h-online.com/security/news/i ... 17864.html

Version 1.11.0 is used in Racy 5.2.2 and Wary 5.2.2.
[b]Classic Opera 12.16 browser SFS package[/b] for Precise, Slacko, Racy, Wary, Lucid, etc available[url=http://terryphillips.org.uk/operasfs.htm]here[/url] :)

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Barry has fixed the B43 problem in k3 puppies

#414 Post by peebee »

Just to report that Barry has identified why b43 drivers / firmware fail to load in k3 puppies

http://bkhome.org/blog/?viewDetailed=02651

and pemasu has created a pet of the fix:

http://murga-linux.com/puppy/viewtopic. ... h&id=51139

and I've tested that it works for my b43 with v13 firmware in

racy 5.2.2
slacko 5.3.1.3
exprimo 5.x.10.3

all with versions of the k3 kernel

cheers and thanks to barry and pemasu
peebee
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

Re: /etc/services is missing entries for ntp.

#415 Post by BarryK »

npierce wrote:After being a happy Puppy 4.3.1 user for over two years, I decided to try something new. Trying out Racy 5.2.2, I am pleased to see that the past couple of years have brought many improvements. Racy is looking good!

I did notice, however. that ntpdate (which was included in both Puppy 4.3.1 and Racy 5.2.2) is still not working because of an omission in the /etc/services file.

For details see the following bug report submitted by Minomushi in 2010: ntpdate trouble

I am attaching a copy of /etc/services which is a duplicate of the one included with Racy 5.2.2 except that the missing entries have been added.
Thanks, fixed in Woof, will upload Woof later today.
[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:

#416 Post by BarryK »

jemimah wrote:This fixes 2 bugs in the PUI.

First if you choose to run gparted the drive selection window shows your drive twice in the drive selection window after you quit gparted.

The second is that the PUI offers a full install to NTFS.

Code: Select all

--- puppyinstaller.orig	2012-01-15 21:21:20.000000000 -0500
+++ puppyinstaller	2012-01-15 21:23:17.000000000 -0500
@@ -406,6 +406,8 @@
 /tmp/dlg1
 [ $? -ne 0 ] && exit
  
+unset SELECTIONS 
+ 
 DRVSEL="`cat /tmp/retval`"
 [ "$DRVSEL" = "" ] && exit
 
@@ -1157,7 +1159,8 @@
 and you may choose to upgrade or totally replace."
   fi
   INSTOPTION="1"
-  if [ ! "$DESTFS" = "vfat" ];then
+  #if [ ! "$DESTFS" = "vfat" ];then
+  if [[  "$DESTFS" =~ "ext.*" ]] ; then
    LANG=C Xdialog --wmclass "gtkdialog2" --left --buttons-style text --title "Puppy Universal Installer" --ok-label "FRUGAL" --cancel-label "FULL" --yesno "You have chosen to install to /dev/$DESTPART, which appears to be an internal
 hard drive ($FINALPMEDIA).
 $PREVPUPMSG 
Thanks, I have fixed in Woof, will upload Woof later today.
[url]https://bkhome.org/news/[/url]

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#417 Post by Karl Godt »

will upload Woof later today.
Please consider these 2 :

rc.shutdown :

Code: Select all

M=`mount`
MTD=`echo $M | rev | sed 's§ )§\n)§g'|rev`
echo "$MTD"
This works for me to turn mount output upside down to unmount sfs,iso,partition ...

*

the killzombies: cut that occurs in rc.shutdown

also occurs in

pmount
drives_all
pup_event_frontend_d

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#418 Post by BarryK »

Karl Godt wrote:
will upload Woof later today.
Please consider these 2 :

rc.shutdown :

Code: Select all

M=`mount`
MTD=`echo $M | rev | sed 's§ )§\n)§g'|rev`
echo "$MTD"
This works for me to turn mount output upside down to unmount sfs,iso,partition ...

*

the killzombies: cut that occurs in rc.shutdown

also occurs in

pmount
drives_all
pup_event_frontend_d
karl,
maybe because I haven't yet had my morning cup of coffee, but I don't understand either of these suggestions. Would you mind fleshing them out a bit?
[url]https://bkhome.org/news/[/url]

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#419 Post by jemimah »

The synaptics driver needs SHMConfig for the flsynclient calibration to work. I've added it in both xorgwizard and xorgwizard-automatic.

Code: Select all

--- xorgwizard.orig	2012-01-26 14:29:42.000000000 +0800
+++ xorgwizard	2012-01-26 13:16:57.000000000 +0800
@@ -1423,6 +1423,7 @@
   NEW3='Section "InputDevice"\
 	Identifier "Synaptics Mouse"\
 	Driver "synaptics"\
+	Option "SHMConfig" "on"\
 EndSection\
 \
 Section "Monitor" #sectionmonitor0'

Code: Select all

--- xorgwizard-automatic.orig	2012-01-26 14:29:52.000000000 +0800
+++ xorgwizard-automatic	2012-01-26 13:15:55.000000000 +0800
@@ -216,6 +216,7 @@
   NEW3='Section "InputDevice"\
 	Identifier "Synaptics Mouse"\
 	Driver "synaptics"\
+	Option "SHMConfig" "on"\
 EndSection\
 \
 Section "Monitor"'

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#420 Post by Karl Godt »

BarryK wrote:
Karl Godt wrote:
will upload Woof later today.
Please consider these 2 :

rc.shutdown :

Code: Select all

M=`mount`
MTD=`echo $M | rev | sed 's§ )§\n)§g'|rev`
echo "$MTD"
This works for me to turn mount output upside down to unmount sfs,iso,partition ...

*

the killzombies: cut that occurs in rc.shutdown

also occurs in

pmount
drives_all
pup_event_frontend_d
karl,
maybe because I haven't yet had my morning cup of coffee, but I don't understand either of these suggestions. Would you mind fleshing them out a bit?
OK : first , for the mountpoints :

/etc/rc.d/rc.shutdown has got these lines to unmount ~ everything ~
>
MNTDPARTS="`mount`"

#echo
#echo $(gettext "Unmounting stray filesystems:")
echo "Unmounting stray filesystems:"

#091117 110928 if partition mounted, when choose shutdown, pc rebooted. found that param given to fuser must be mount-point, not /dev/*...
STRAYPARTL="`echo "$MNTDPARTS" | grep ' /mnt/' |grep -v -E '/dev/pts|/proc|/sys|tmpfs|rootfs|on / |/dev/root|usbfs|unionfs|aufs|/initrd'`"
STRAYPARTD="`echo "$STRAYPARTL" | cut -f 1 -d ' ' | tr '\n' ' '`"
#111106 do not execute fuser if network share mount (may hang, see http://murga-linux.com/puppy/viewtopic.php?t=73122)...
STRAYPARTandMNT="`echo "$STRAYPARTL" | cut -f 1,3 -d ' ' | tr ' ' '|' | tr '\n' ' '`"
for ONESTRAY in $STRAYPARTandMNT
do
FLAGCIFS="`echo -n ${ONESTRAY} | grep '^//'`"
ONESTRAYMNT="`echo -n ${ONESTRAY} | cut -f 2 -d '|'`"
#echo "`eval_gettext "Unmounting \\\${ONESTRAY}..."`"
echo "Unmounting $ONESTRAY..."
if [ "$FLAGCIFS" = "" ];then
xFUSER="`fuser -m $ONESTRAY 2>/dev/null`"
[ "$xFUSER" != "" ] && fuser -k -m $ONESTRAYMNT 2>/dev/null
fi
killzombies #v3.99
sync
umount -r $ONESTRAY
done
I have mounted many loopdevices to show the problem of nested/encapsulated/interlaced mounts :
/dev/sda11 on /mnt/sda11 type ext2 (rw,relatime,errors=continue)
/dev/loop0 on /mnt/+mnt+sda11+luci_218_2011_10_25.sfs type squashfs (ro,relatime)
/dev/loop1 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+lucisave-MAIN.3fs type ext3 (ro,relatime,errors=continue,barrier=0,data=ordered)
/dev/loop2 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+luci-218.sfs type squashfs (ro,relatime)
/dev/loop3 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+Gimp_2.7.3_218.sfs type squashfs (ro,relatime)
/dev/loop4 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+luci_devx_218.sfs type squashfs (ro,relatime)
/dev/loop5 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+ISO+luci-218.iso type iso9660 (ro,relatime)
/dev/sda10 on /mnt/sda10 type ext3 (rw,relatime,errors=continue,barrier=0,data=ordered)
/dev/loop6 on /mnt/+mnt+sda10+JUMP-10+slacko-5.3.1-SCSI-MAIN.iso type iso9660 (ro,relatime)
/dev/loop7 on /mnt/+mnt++mnt+sda10+JUMP-10+slacko-5.3.1-SCSI-MAIN.iso+puppy_slacko_5.3.1.sfs type squashfs (ro,relatime)
The problem is the

for ONESTRAY in $STRAYPARTandMNT

would read the list of mounted partitions/directories in the above order and try to unmount

/dev/sda10
before /dev/loop6 existing on /dev/sda10

which would fail because being in use by /dev/loop6

And would try to unmount /dev/loop6 before /dev/loop7 existing inside /dev/loop6

which would fail because being in use by /dev/loop7

Code: Select all

MNTDPARTS="`mount`"
MNTDPARTS=`echo $MNTDPARTS |rev|sed 's# )#\n)#g' |rev`
should revert to
/dev/sda9 on /mnt/sda9 type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/loop7 on /mnt/+mnt++mnt+sda10+JUMP-10+slacko-5.3.1-SCSI-MAIN.iso+puppy_slacko_5.3.1.sfs type squashfs (ro,relatime)
/dev/loop6 on /mnt/+mnt+sda10+JUMP-10+slacko-5.3.1-SCSI-MAIN.iso type iso9660 (ro,relatime)
/dev/sda10 on /mnt/sda10 type ext3 (rw,relatime,errors=continue,barrier=0,data=ordered)
/dev/loop5 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+ISO+luci-218.iso type iso9660 (ro,relatime)
/dev/loop4 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+luci_devx_218.sfs type squashfs (ro,relatime)
/dev/loop3 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+Gimp_2.7.3_218.sfs type squashfs (ro,relatime)
/dev/loop2 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+luci-218.sfs type squashfs (ro,relatime)
/dev/loop1 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+lucisave-MAIN.3fs type ext3 (ro,relatime,errors=continue,barrier=0,data=ordered)
/dev/loop0 on /mnt/+mnt+sda11+luci_218_2011_10_25.sfs type squashfs (ro,relatime)
/dev/sda11 on /mnt/sda11 type ext2 (rw,relatime,errors=continue)

none on /proc/bus/usb type usbfs (rw,relatime)
none on /nodev/smackfs type smackfs (rw,relatime)
none on /nodev/mqueue type mqueue (rw,relatime)
none on /nodev/nfsd type nfsd (rw,relatime)
none on /nodev/hugetlbfs type hugetlbfs (rw,relatime)
none on /nodev/ramfs type ramfs (rw,relatime)
none on /nodev/rpc_pipefs type rpc_pipefs (rw,relatime)
none on /nodev/securityfs type securityfs (rw,relatime)
none on /nodev/debugfs type debugfs (rw,relatime)
none on /nodev/binfmt_misc type binfmt_misc (rw,relatime)
none on /nodev/cgroup type cgroup (rw,relatime,freezer,devices,memory,cpuacct,cpu,ns,debug,cpuset)
shmfs on /dev/shm type tmpfs (rw,relatime,size=217284k)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw,relatime,gid=2,mode=620,ptmxmode=000)
none on /proc type proc (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=501124k,nr_inodes=125281,mode=755)
/dev/root on / type ext3 (rw,relatime,errors=continue,barrier=0,data=ordered)
rootfs on / type rootfs (rw)
[own kernel with # Device Drivers
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_DEBUG_DEVRES=y
CONFIG_MTD_BLKDEVS=m
# Self-contained MTD device drivers ]

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#421 Post by Karl Godt »

Second :
Karl Godt posted some more fixes to /etc/rc.d/rc.shutdown, regarding to killing of stray processes and zombies. Applied.
I got this from: http://www.murga-linux.com/puppy/viewtopic.php?t=73122

Woof commit:
http://bkhome.org/fossil/woof2.cgi/info/a94d3c19f4
.. .. rc.shutdown fixes

Actually i found the killzombies functions while trying to implement udf detection to removeable devices :

Puppy 528 can't read DVD data disk made by Windows

Neither Slacko nor Lucid will read DVD-RAM

Sorry for not posting diff patches , but i am running Puppy511 atm
and want to get PUK detection to USB modem SIM cards to work

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#422 Post by BarryK »

jemimah wrote:The synaptics driver needs SHMConfig for the flsynclient calibration to work. I've added it in both xorgwizard and xorgwizard-automatic.

Code: Select all

--- xorgwizard.orig	2012-01-26 14:29:42.000000000 +0800
+++ xorgwizard	2012-01-26 13:16:57.000000000 +0800
@@ -1423,6 +1423,7 @@
   NEW3='Section "InputDevice"\
 	Identifier "Synaptics Mouse"\
 	Driver "synaptics"\
+	Option "SHMConfig" "on"\
 EndSection\
 \
 Section "Monitor" #sectionmonitor0'

Code: Select all

--- xorgwizard-automatic.orig	2012-01-26 14:29:52.000000000 +0800
+++ xorgwizard-automatic	2012-01-26 13:15:55.000000000 +0800
@@ -216,6 +216,7 @@
   NEW3='Section "InputDevice"\
 	Identifier "Synaptics Mouse"\
 	Driver "synaptics"\
+	Option "SHMConfig" "on"\
 EndSection\
 \
 Section "Monitor"'
Thanks, done. I will announce on blog soon and upload Woof.
[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:

#423 Post by BarryK »

Karl Godt wrote:
BarryK wrote:
Karl Godt wrote: Please consider these 2 :

rc.shutdown :

Code: Select all

M=`mount`
MTD=`echo $M | rev | sed 's§ )§\n)§g'|rev`
echo "$MTD"
This works for me to turn mount output upside down to unmount sfs,iso,partition ...

*

the killzombies: cut that occurs in rc.shutdown

also occurs in

pmount
drives_all
pup_event_frontend_d
karl,
maybe because I haven't yet had my morning cup of coffee, but I don't understand either of these suggestions. Would you mind fleshing them out a bit?
OK : first , for the mountpoints :

/etc/rc.d/rc.shutdown has got these lines to unmount ~ everything ~
>
MNTDPARTS="`mount`"

#echo
#echo $(gettext "Unmounting stray filesystems:")
echo "Unmounting stray filesystems:"

#091117 110928 if partition mounted, when choose shutdown, pc rebooted. found that param given to fuser must be mount-point, not /dev/*...
STRAYPARTL="`echo "$MNTDPARTS" | grep ' /mnt/' |grep -v -E '/dev/pts|/proc|/sys|tmpfs|rootfs|on / |/dev/root|usbfs|unionfs|aufs|/initrd'`"
STRAYPARTD="`echo "$STRAYPARTL" | cut -f 1 -d ' ' | tr '\n' ' '`"
#111106 do not execute fuser if network share mount (may hang, see http://murga-linux.com/puppy/viewtopic.php?t=73122)...
STRAYPARTandMNT="`echo "$STRAYPARTL" | cut -f 1,3 -d ' ' | tr ' ' '|' | tr '\n' ' '`"
for ONESTRAY in $STRAYPARTandMNT
do
FLAGCIFS="`echo -n ${ONESTRAY} | grep '^//'`"
ONESTRAYMNT="`echo -n ${ONESTRAY} | cut -f 2 -d '|'`"
#echo "`eval_gettext "Unmounting \\\${ONESTRAY}..."`"
echo "Unmounting $ONESTRAY..."
if [ "$FLAGCIFS" = "" ];then
xFUSER="`fuser -m $ONESTRAY 2>/dev/null`"
[ "$xFUSER" != "" ] && fuser -k -m $ONESTRAYMNT 2>/dev/null
fi
killzombies #v3.99
sync
umount -r $ONESTRAY
done
I have mounted many loopdevices to show the problem of nested/encapsulated/interlaced mounts :
/dev/sda11 on /mnt/sda11 type ext2 (rw,relatime,errors=continue)
/dev/loop0 on /mnt/+mnt+sda11+luci_218_2011_10_25.sfs type squashfs (ro,relatime)
/dev/loop1 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+lucisave-MAIN.3fs type ext3 (ro,relatime,errors=continue,barrier=0,data=ordered)
/dev/loop2 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+luci-218.sfs type squashfs (ro,relatime)
/dev/loop3 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+Gimp_2.7.3_218.sfs type squashfs (ro,relatime)
/dev/loop4 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+luci_devx_218.sfs type squashfs (ro,relatime)
/dev/loop5 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+ISO+luci-218.iso type iso9660 (ro,relatime)
/dev/sda10 on /mnt/sda10 type ext3 (rw,relatime,errors=continue,barrier=0,data=ordered)
/dev/loop6 on /mnt/+mnt+sda10+JUMP-10+slacko-5.3.1-SCSI-MAIN.iso type iso9660 (ro,relatime)
/dev/loop7 on /mnt/+mnt++mnt+sda10+JUMP-10+slacko-5.3.1-SCSI-MAIN.iso+puppy_slacko_5.3.1.sfs type squashfs (ro,relatime)
The problem is the

for ONESTRAY in $STRAYPARTandMNT

would read the list of mounted partitions/directories in the above order and try to unmount

/dev/sda10
before /dev/loop6 existing on /dev/sda10

which would fail because being in use by /dev/loop6

And would try to unmount /dev/loop6 before /dev/loop7 existing inside /dev/loop6

which would fail because being in use by /dev/loop7

Code: Select all

MNTDPARTS="`mount`"
MNTDPARTS=`echo $MNTDPARTS |rev|sed 's# )#\n)#g' |rev`
should revert to
/dev/sda9 on /mnt/sda9 type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/loop7 on /mnt/+mnt++mnt+sda10+JUMP-10+slacko-5.3.1-SCSI-MAIN.iso+puppy_slacko_5.3.1.sfs type squashfs (ro,relatime)
/dev/loop6 on /mnt/+mnt+sda10+JUMP-10+slacko-5.3.1-SCSI-MAIN.iso type iso9660 (ro,relatime)
/dev/sda10 on /mnt/sda10 type ext3 (rw,relatime,errors=continue,barrier=0,data=ordered)
/dev/loop5 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+ISO+luci-218.iso type iso9660 (ro,relatime)
/dev/loop4 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+luci_devx_218.sfs type squashfs (ro,relatime)
/dev/loop3 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+Gimp_2.7.3_218.sfs type squashfs (ro,relatime)
/dev/loop2 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+luci-218.sfs type squashfs (ro,relatime)
/dev/loop1 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+lucisave-MAIN.3fs type ext3 (ro,relatime,errors=continue,barrier=0,data=ordered)
/dev/loop0 on /mnt/+mnt+sda11+luci_218_2011_10_25.sfs type squashfs (ro,relatime)
/dev/sda11 on /mnt/sda11 type ext2 (rw,relatime,errors=continue)

none on /proc/bus/usb type usbfs (rw,relatime)
none on /nodev/smackfs type smackfs (rw,relatime)
none on /nodev/mqueue type mqueue (rw,relatime)
none on /nodev/nfsd type nfsd (rw,relatime)
none on /nodev/hugetlbfs type hugetlbfs (rw,relatime)
none on /nodev/ramfs type ramfs (rw,relatime)
none on /nodev/rpc_pipefs type rpc_pipefs (rw,relatime)
none on /nodev/securityfs type securityfs (rw,relatime)
none on /nodev/debugfs type debugfs (rw,relatime)
none on /nodev/binfmt_misc type binfmt_misc (rw,relatime)
none on /nodev/cgroup type cgroup (rw,relatime,freezer,devices,memory,cpuacct,cpu,ns,debug,cpuset)
shmfs on /dev/shm type tmpfs (rw,relatime,size=217284k)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw,relatime,gid=2,mode=620,ptmxmode=000)
none on /proc type proc (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=501124k,nr_inodes=125281,mode=755)
/dev/root on / type ext3 (rw,relatime,errors=continue,barrier=0,data=ordered)
rootfs on / type rootfs (rw)
[own kernel with # Device Drivers
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_DEBUG_DEVRES=y
CONFIG_MTD_BLKDEVS=m
# Self-contained MTD device drivers ]
Thanks for spelling it out. Applied, will upload Woof soon.
[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:

#424 Post by BarryK »

Karl Godt wrote:Second :
Karl Godt posted some more fixes to /etc/rc.d/rc.shutdown, regarding to killing of stray processes and zombies. Applied.
I got this from: http://www.murga-linux.com/puppy/viewtopic.php?t=73122

Woof commit:
http://bkhome.org/fossil/woof2.cgi/info/a94d3c19f4
.. .. rc.shutdown fixes

Actually i found the killzombies functions while trying to implement udf detection to removeable devices :

Puppy 528 can't read DVD data disk made by Windows

Neither Slacko nor Lucid will read DVD-RAM

Sorry for not posting diff patches , but i am running Puppy511 atm
and want to get PUK detection to USB modem SIM cards to work
Thanks for more details. Well, diffs against latest rc.shutdown would help, as difficult to sift through your post. Anyway, I have applied your latest change to ZOMBIES= line. Will upload Woof very soon.
[url]https://bkhome.org/news/[/url]

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#425 Post by Karl Godt »

the killzombies: cut that occurs in rc.shutdown

also occurs in

pmount
drives_all
pup_event_frontend_d
zombie line of
/usr/sbin/pmount for example :
#v3.99 fix zombie process prevents partition unmount, invisible to fuser...
if [ $umVAL -ne 0 ];then
ZOMBIES="`ps -H -A | grep '<defunct>' | sed -e 's/ /|/g' | grep -v '|||' | cut -f 1 -d ' ' | tr '\n' ' '`"
for ONEZOMBIE in $ZOMBIES
do
echo "Killing parentless zombie process $ONEZOMBIE"
kill $ONEZOMBIE
done
umount $MNTPT ; umVAL=$?
fi
would need to be :

Code: Select all

ZOMBIES="`ps -H -A | grep '<defunct>' | sed 's/^[[:blank:]]*//;s/  /|/g' | grep -v '|||' | cut -f 1 -d ' ' | tr '\n' ' '`"
and also in
/usr/local/bin/drives_all
/sbin/pup_event_frontend_d

Post Reply