site  contact  subhomenews

Full support for udf filesystem

January 28, 2013 — BarryK
I had my nose down for another intense bout of coding. This time, implementing proper support for the udf filesystem.

The Woof commit shows the many scripts that I edited, including an overhaul of 'probepart'.

I had to change the output of probepart slightly, which will affect some scripts. For optical media, the 2nd field previously had one of these:

iso9660 none

Now it will have one of these:

iso9660 none udf audiocd

Furthermore, if no optical media is inserted, probepart will not list the optical drive at all.
Which differs from before, which listed it even when no media inserted:

/dev/sr0|none|1096720

As I also edited /usr/local/bin/drive_all and /usr/sbin/pmount, I also took the opportunity to convert them from the i18n "technosaurus method" (also known as the "zigbert method" as he used it for awhile) to the gettext method.
So, a couple of scripts for the translation maintainers to tackle.

One thing that I haven't looked into is how udf can be used with multi-session pup -- maybe someone has ideas about that?

Woof commit:
http://bkhome.org/fossil/woof2.cgi/info/2a47044e48

Comments

UDF Overjoyed


UDF boot code
Username: Ted Dog
"[code]#!/bin/sh #growisofs -Z /dev/sr0 -udf -R -D -quiet -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table . #growisofs -use-the-force-luke=notray -Z /dev/sr0 -f -iso-level 3 -D -R -allow-limited-size -udf -V \"bluracy5390\" -p root -publisher \"Ted_Dog\" -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table ./ growisofs -use-the-force-luke=notray -Z /dev/sr0 -udf -V \"BluSlackbones\" -p root -publisher \"Ted_Dog\" -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table ./ eject /dev/sr0 [/code] This contains the bootable UDF script for SlackBones, the prior hybrid version for Racy is commented out. This will also work on DVD-Rs but the large file size gained is moot. So you would not need a bluray burner for testing

Re new probepart
Username: BarryK
"Regarding my above statement: [i]Furthermore, if no optical media is inserted, probepart will not list the optical drive at all. Which differs from before, which listed it even when no media inserted[/i] Actually, this is just returning to the behaviour for kernel versions prior to 3.2 (though, not personally confirmed this behaviour change came in at 3.2, so it could have been earlier, though reports from 01micko indicate 3.2 is the culprit).

latest woof slightly broken
Username: 01micko
"Hi Barry There is no /sbin/probedisk2 so no desktop drive icons show, I just made a symlink to /sbin/probedisk, solved problem.

Re udf "multisession"
Username: BarryK
"Yes, we should be able to install Puppy to a udf disc, just like we would install to a flash drive.

Re udf "multisession"
Username: amigo
"Yes, udf should work like using a normal read-write hard-disk or flash drive -you'll want to make sure that /tmp and possibly /var (and /proc, /sys, ??) are mounted on tmpfs or otherwise isolated from / so that any writes there do not go to the udf filesystem. aufs could still be useful there, but should not be required. There are relevant patches floating around between debian, gento and arch, for the udftools -I see I don't have my more-complete patch-set uploaded -you need some init scripts to set the device up at startup also. I was just working on this a few days ago -adding still another patch, so I'll try to get the sources all tidied up and uploaded.

UDF patches, etc.
Username: amigo
"OK, here you go: http://distro.ibiblio.org/amigolinux/download/Utils/udftools-1.0.0b5/ You should find everything you need there to get it going. Best to download everything you find there as it is not all available elsewhere any longer. There's quite a few docs, there too in Resources.


Tags: woof