UFS(2) portable driver for other OS
CeDeROM
cederom at tlen.pl
Sat Feb 1 19:00:00 UTC 2014
On Fri, Jan 31, 2014 at 6:33 PM, CeDeROM <cederom at tlen.pl> wrote:
> On Fri, Jan 31, 2014 at 6:20 PM, Freddie Cash <fjwcash at gmail.com> wrote:
>> There's also UDF which doesn't suffer from a lot of the issues the
>> FAT16/32/32x does on large-ish devices. FreeBSD, Windows, Linux, MacOSX
>> all support read/write to UDF, although it may depend on the OS version for
>> Windows (I think XP needs a 3rd party driver).
>> I've used UDF successfully on USB drives, although I don't think you can
>> boot off it.
>
> Yess, thats what I need! Thank you Freddie, I will try it out!! :-)
UDF disk does not work on FreeBSD :-(
I can create filesystem on a file, but not a memory disk (not
supported on my operating system yet). Then I cannot mount both of
them anyway.
Dead end for UDF disk on FreeBSD?
Is seems possible on Linux and Windows though:
http://tanguy.ortolo.eu/blog/article93/usb-udf
root at hexagon:~ # dd if=/dev/zero of=udf.bin bs=64k count=128k
131072+0 records in
131072+0 records out
8589934592 bytes transferred in 111.747670 secs (76869026 bytes/sec)
root at hexagon:~ # newfs_udf -L UDFTEST udf.bin
Opening device udf.bin
UDF device udf.bin is a regular file
bufcache thread initialising
Disc info for disc in device udf.bin
MMC profile : Unknown[0] profile
sequential : no
recordable : yes
erasable : no
blankable : no
formattable : no
rewritable : yes
mount raineer : no
packet writing : no
strict overwrite : no
blocking number : 1
disc state : random writable
last session state : incomplete
sectorsize : 512
Number of sessions 1
Session 0
start at 0
ends at 16777216
length for 16777216
next writable at 16777217
free blocks 0
packet size 64
Creating a filingsystem on a recordable rewritable CD-RW or
DVD+RW/DVD-RW or fixed length file
Free unallocated space on this volume 8587442688
Closing disc
Dismounting disc
syncing disc
syncing `4dc9e13a`:`00001674`:`UDFTEST`
syncing data
syncing nodes
used/freed space tables
Closing logical volume `4dc9e13a`:`00001674`:`UDFTEST`
wait for syncing disc to idle
stopping bufcache thread
bufcache thread joining
signal disc its finished with writing
wait for final disc idling
close device
Disc access statistics
sector reads 1 (0 Kbyte)
sector written 4267 (2133 Kbyte)
switches 3
root at hexagon:~ # dd if=/dev/zero of=udf2.bin bs=64k count=8k
8192+0 records in
8192+0 records out
536870912 bytes transferred in 7.191754 secs (74650899 bytes/sec)
root at hexagon:~ # mdconfig -a -f udf2.bin
md0
root at hexagon:~ # newfs_udf -L UDFTEST2 /dev/md0
Opening device /dev/md0
Got error executing SCSI command, assuming IDE disc
UDF: no explicit support for disc devices yet for this operating system.
: No such file or directory
Trying readonly access...
: No such file or directory
UDF: warning... reading/writing on 'disc' device
bufcache thread initialising
Disc info for disc in device /dev/md0
MMC profile : Unknown[0] profile
sequential : no
recordable : no
erasable : no
blankable : no
formattable : no
rewritable : no
mount raineer : no
packet writing : no
strict overwrite : no
blocking number : 1
disc state : random writable
last session state : complete/closed disc
sectorsize : 512
Number of sessions 1
Session 0
start at 0
ends at 0
length for 0
next writable at 0
free blocks 0
packet size 0
Can't create filingsystem on a non recordable disc
Closing disc
Dismounting disc
dismounting readonly disc
stopping bufcache thread
bufcache thread joining
Disc access statistics
sector reads 0 (0 Kbyte)
sector written 0 (0 Kbyte)
switches 0
root at hexagon:~ # mount_udf -v /dev/md0 /mnt/tmp
mount_udf: /dev/md0: Invalid argument
root at hexagon:~ # mdconfig -d -u 0
root at hexagon:~ # mount_udf -v udf.bin /mnt/tmp
mount_udf: udf.bin: Invalid argument
root at hexagon:~ # mdconfig -a -f udf.bin
root at hexagon:~ # mount_udf /dev/md0 /mnt/tmp
mount_udf: /dev/md0: Invalid argument
Did I miss anything? :-(
--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
More information about the freebsd-fs
mailing list