From owner-freebsd-questions@freebsd.org Sat Dec 19 20:03:25 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D0E4A4BCCF for ; Sat, 19 Dec 2015 20:03:25 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 25CEE17D4 for ; Sat, 19 Dec 2015 20:03:24 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-31-25.dynamic.qsc.de [92.195.31.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id CB249278C5; Sat, 19 Dec 2015 21:03:22 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id tBJK3MNC002781; Sat, 19 Dec 2015 21:03:22 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 19 Dec 2015 21:03:21 +0100 From: Polytropon To: Lev Cc: freebsd-questions@freebsd.org Subject: Re: mounting udf Message-Id: <20151219210321.c5438bdc.freebsd@edvax.de> In-Reply-To: <20151219204039.70b2b91b@jive.levalinux.org> References: <20151219171651.12f1da2d@jive.levalinux.org> <20151219191010.21d4af06.freebsd@edvax.de> <20151219204039.70b2b91b@jive.levalinux.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Dec 2015 20:03:25 -0000 On Sat, 19 Dec 2015 20:40:39 +0100, Lev wrote: > I have > > 10.2-RELEASE-p2 > > and I used > > mount /dev/cd0 /mnt This command would raise the follow-up question of the corresponding line in /etc/fstab. :-) > same result with > > mount -t udf /dev/cd0 /mnt > > or > > mount_udf /dev/cd0 /mnt > > command. Those are "the same". > -r doesn't change anything. (mount_udf doesn't really have that option.) You're right, read-only seems to be the default anyway. But mount -r is still considered standard for read-only optical media. :-) > Ok. So should it work out of the box? It should. Here's an example of FreeBSD 8-STABLE: # file - < /dev/cd0 /dev/stdin: UDF filesystem data (version 1.5) 'IRON_SKY ' # mount_udf /dev/cd0 /mnt # mount -v | grep "udf" /dev/cd0 on /mnt (udf, local, read-only) # df -h /mnt Filesystem Size Used Avail Capacity Mounted on /dev/cd0 7.9G 7.9G 0B 100% /mnt # umount /mnt Are you sure, _really_ sure you have a UDF medium? See my first (quite stupid) command on how to verify. It should also work with ATAPI. On my home system, I still have the choice of using ATAPICAM (/dev/cd0) or ATAPI (/dev/acd0): # file - < /dev/acd0 /dev/stdin: UDF filesystem data (version 1.5) 'IRON_SKY ' # mount_udf /dev/acd0 /mnt # mount -v | grep "udf" /dev/acd0 on /mnt (udf, local, read-only) # df -h /mnt Filesystem Size Used Avail Capacity Mounted on /dev/acd0 7.9G 7.9G 0B 100% /mnt # umount /mnt However, on FreeBSD 10.2, ATAPI is no longer present. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...