Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Feb 2014 19:59:59 +0100
From:      CeDeROM <cederom@tlen.pl>
To:        Freddie Cash <fjwcash@gmail.com>
Cc:        FreeBSD Filesystems <freebsd-fs@freebsd.org>, Polytropon <freebsd@edvax.de>, FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: UFS(2) portable driver for other OS
Message-ID:  <CAFYkXjkhnh=aZLxnE2yPvcpoLdTPnQTQZ=_e72RsYPJ=DqmTAQ@mail.gmail.com>
In-Reply-To: <CAFYkXj=B221Mm1SO%2BzZT%2B_iSo9YVLF=K2iXgcC8e0B2yJDzGkw@mail.gmail.com>
References:  <CAFYkXj=xGbnVfJuBwXmj%2Bgu5gR7sWxk6o48rJ233N-=eRcTpyw@mail.gmail.com> <20140131150601.53ee40f4.freebsd@edvax.de> <CAOjFWZ4B3W=iXkycTymJb%2BpVnwKPF-tqezcNiBX9C0pCqLy8TQ@mail.gmail.com> <CAFYkXj=B221Mm1SO%2BzZT%2B_iSo9YVLF=K2iXgcC8e0B2yJDzGkw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 31, 2014 at 6:33 PM, CeDeROM <cederom@tlen.pl> wrote:
> On Fri, Jan 31, 2014 at 6:20 PM, Freddie Cash <fjwcash@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@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@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@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@hexagon:~ # mdconfig -a -f udf2.bin
md0
root@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@hexagon:~ # mount_udf -v /dev/md0 /mnt/tmp
mount_udf: /dev/md0: Invalid argument
root@hexagon:~ # mdconfig -d -u 0

root@hexagon:~ # mount_udf -v udf.bin  /mnt/tmp
mount_udf: udf.bin: Invalid argument
root@hexagon:~ # mdconfig -a -f udf.bin
root@hexagon:~ # mount_udf /dev/md0 /mnt/tmp
mount_udf: /dev/md0: Invalid argument

Did I miss anything? :-(


-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFYkXjkhnh=aZLxnE2yPvcpoLdTPnQTQZ=_e72RsYPJ=DqmTAQ>