FreeBSD 11 and 4+ GB files on optical disc

Andriy Gapon avg at FreeBSD.org
Mon Feb 13 07:51:18 UTC 2017


On 13/02/2017 07:40, David Christensen wrote:
> On 02/10/17 10:46, Freddie Cash wrote:
>> # kldload udf
>> # mount -t udf /dev/cd0 /mnt
> 
> toor at freebsd:/root # kldload udf
> toor at freebsd:/root # mkdir /mnt/cd0-udf
> toor at freebsd:/root # mount -t udf /dev/cd0 /mnt/cd0-udf
> mount_udf: /dev/cd0: Invalid argument

If your disk has iso9660 filesystem on it, then trying to mount it as a UDF
filesystem won't work, obviously.

P.S.  You don't have to thoughtlessly follow any advice you see on the internets :-)

>> You RTFM'd the wrong M.  ;)  Pretty much every option can be loaded as a
>> module at runtime nowadays.
>>
>> I found this by doing a simple:
>> # ls /boot/kernel/*udf*
> 
> toor at freebsd:/root # l /boot/kernel/*udf*
> /boot/kernel/udf.ko*        /boot/kernel/udf_iconv.ko*
> 
> 
>> There's also a mount_udf(8) man page to read through.
> 
> RTFM.  Try invoking mount_udf directly:
> 
> toor at freebsd:/root # mount_udf /dev/cd0 /mnt/cd0-udf
> mount_udf: /dev/cd0: Invalid argument
> 
> 
> Try it verbose:
> 
> root at freebsd:~ # mount_udf -v /dev/cd0 /mnt/cd0-udf
> mount_udf: /dev/cd0: Invalid argument
> 
> root at freebsd:~ # mount_udf -v -v -v -v -v -v -v /dev/cd0 /mnt/cd0-udf
> mount_udf: /dev/cd0: Invalid argument
> 
> 
> Take a look at the device special file:
> 
> root at freebsd:~ # ls -l /dev/cd0
> crw-r-----  1 root  operator  0x58 Feb 12 21:10 /dev/cd0
> 
> 
> mount doesn't show it as already being mounted:
> 
> root at freebsd:~ # mount | grep cd0
> 
> 
> I wonder if Xfce has grabbed the device file (?).  There is an icon on the
> desktop with the volume label of the DVD.  Right-clicking shows a menu including
> "Mount Volume", so I don't think Xfce has it mounted.
> 
> 
> Eject DVD using the button on the drive, exit Xfce, insert DVD, try again from
> console -- nope, same error message.
> 
> 
> Any ideas, anyone?


-- 
Andriy Gapon


More information about the freebsd-fs mailing list