From owner-freebsd-questions@freebsd.org Thu Apr 20 14:09:20 2017 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 E0E12D48CF6 for ; Thu, 20 Apr 2017 14:09:20 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (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 59833AE1 for ; Thu, 20 Apr 2017 14:09:19 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id v3KE98Pa005972 for ; Fri, 21 Apr 2017 00:09:08 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Fri, 21 Apr 2017 00:09:08 +1000 (EST) From: Ian Smith To: freebsd-questions@freebsd.org Subject: Accessing UFS partitions from a Macbook Message-ID: <20170420233840.N9330@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Apr 2017 14:09:21 -0000 Hi all, I plugged my backup USB HD into my daughter's Macbook, to see if it was going to be able to access a particular set of files I want to give her. root@x200:~ # gpart show -p da0 => 63 625142385 da0 MBR (298G) 63 83875302 da0s1 fat32 [active] (40G) 83875365 272623050 da0s2 freebsd (130G) 356498415 268638930 da0s3 freebsd (128G) 625137345 5103 - free - (2.5M) root@x200:~ # gpart show -p da0s2 => 0 272623050 da0s2 BSD (130G) 0 8388608 da0s2a freebsd-ufs (4.0G) 8388608 8388608 da0s2b freebsd-swap (4.0G) 16777216 16777216 da0s2d freebsd-ufs (8.0G) 33554432 33554432 da0s2e freebsd-ufs (16G) 67108864 205514186 da0s2f freebsd-ufs (98G) The files of interest are on da0s2f, about 50GiB. The Mac auto-mounted the first (msdosfs) slice as /dev/disk2s1 and files there were accessible. No sign of the other partitions, though. In Terminal on the Mac, 'ls /dev/disk2*' showed the slices ok: /dev/disk2 /dev/disk2s1 /dev/disk2s2 /dev/disk2s3 but attempts to e.g. 'mount -t ufs /dev/disk2s2a $herhomedir/mnt' - a directory I'd made there - failed, indicating not a permission failure (as more or less expected) but directory ./mnt not found? So I tried logging in as root with su -l but her usual administration password wasn't the one, and she knows nothing about a root password. So two questions from someone with next to no Mac experience: Should I expect UFS partitions within a slice to be accessible on Macs? If not, might a UFS partition occupying the whole raw slice fare better? How can she or I go about discovering the root password on her Macbook? Thanks, Ian