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

Please post any bugs you have found
Message
Author
User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#21 Post by Karl Godt »

Second time : the

PMOUNT CODE ADJUSTMENTS ARE IN THE POST BELOW THE PROBEPART CODE

The tiny tiny headline is probably the cause for not reading carefully .

Anyway , the code works for me , BUT if i boot with udf dvd inserted , the DVD drive does not stop spinning , until i mount it .

Regards
:P

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

#22 Post by Karl Godt »

for i in `seq 1 1 $RANDOM`;do

echo "HIGHLY HIGHLY HIGHLY EXPERIMENTAL !!!!!"

done


ATTACHMENT : from my Macpup_Opera_2 full installation :

pmount,probepart,pup_event_frontend_d

drop into the appropriate dirs like /sbin,/usr/sbin

use find command to determine dir OR pfind

as usual : if your HW does not survive .... look for another !

I will attach the three files from other partitions the next days !

people mentioned in pup_event_frontend_d would roughly get the idea for the code

:wink:
Attachments
pup-udf-McpupO2-experimental.tar.gz
(21.23 KiB) Downloaded 375 times

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#23 Post by sc0ttman »

I use the guess_fstype binary in my customised pmount script, so that UDF ISOs work fine :)
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

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

#24 Post by Karl Godt »

Now i have got the cause for the ever running DVD drive :

In /sbin/pup_event_frontend_d there is a line

[ "$ICONDESK" = "false" ] && continue #v405 see /etc/eventmanager

SO IF ICONDESK=false it does not mean there are no drive icons on the desktop but one single icon labeled " drives " .

The code line
[ "$ICONDESK" = "false" ] && continue
would prevent the execution of some code below that line that would poll the ZIP and CD drives every 4 seconds .

The CD drives would be polled by the 'probe_optical_func' AND " if CD not mounted " every 4 seconds

cddetect_quick -d/dev/${DRV_NAME} >/dev/null 2>&1 #very fast.

would check for CDROM inserted .

That had been the ^ culprit ^ .

I have reworked /usr/sbin/eventmanager AND changed HOTPLUGON to DESKDAEMON and added ZCDPOLL variable .

But I feel it would be pre alpha to be released because it needs also /sbin/pup_event_frontend_d to be adjusted for that .

When i come to one point , i get the idea for the next point ...

I have actually put the AUTOUNMOUNT into the POWERTIMEOUT part to check for possibility to unmount every minute not every 4 seconds [ and much more ] .

HAVE FUN !

:lol: 8)

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

/usr/local/bin/drive_all udf recognition

#25 Post by Karl Godt »

Code: Select all

#oh, now have to analyse the media, decide what app to run...
#if [ "$ONEDRVNAME" = "sr0" -o "$ONEDRVNAME" = "sr1" ];then
if [ "`echo "$ONEDRVNAME" |grep '^sr[0-9]'`" ];then  ###+++2012-01-20
 srPATTERN='^/dev/'"$ONEDRVNAME"' '
 if [ "`busybox mount | grep "$srPATTERN"`" = "" ];then
  cddetect -q -d/dev/${ONEDRVNAME}
  RETVAL=$?
  case $RETVAL in
  3) #iso file: normal data cd. iso9660
   true
   ;;
  8) # udf with .wma wav files [VCD: , ] 8 ##+++2012-01-20
   FSTYPE='udf';;
  1) #audio
   ln -snf /dev/${ONEDRVNAME} /dev/cdrom
   exec defaultmediaplayer cdda://
   ;;
  5) #video dvd
   ln -snf /dev/${ONEDRVNAME} /dev/dvd
   exec defaultmediaplayer dvd://
   ;;
  0) #failed to detect type.
   #cddetect does not work properly for dvd's, try something else...
   if [ "`dvd+rw-mediainfo /dev/sr0 | grep 'Mounted Media: .* DVD-ROM'`" != "" ];then
    ln -snf /dev/${ONEDRVNAME} /dev/dvd
    exec defaultmediaplayer dvd://
   fi
   ;;
  esac
 fi
 [ ! "$FSTYPE" ] && FSTYPE="iso9660"
fi

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#26 Post by darkcity »

I can confirm this problem on Slacko531

This works

mount -t udf /dev/sr0 /mnt/sr0

Pmount doesn't. Having tried modding any code yet.

8)

Post Reply