From owner-freebsd-questions@freebsd.org Thu Sep 10 08:40:45 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 62077A00C26 for ; Thu, 10 Sep 2015 08:40:45 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.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 276BC1FA6 for ; Thu, 10 Sep 2015 08:40:44 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-125-111.dynamic.qsc.de [92.195.125.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id A755F3D090; Thu, 10 Sep 2015 10:40:35 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t8A8eYK4002324; Thu, 10 Sep 2015 10:40:34 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 10 Sep 2015 10:40:34 +0200 From: Polytropon To: Mohsen Pahlevanzadeh Cc: freebsd-questions@freebsd.org Subject: Re: xenix (sysv) filesystem and FreeBSD Message-Id: <20150910104034.b3439c2c.freebsd@edvax.de> In-Reply-To: <55F13B5A.3070408@pahlevanzadeh.org> References: <55F13B5A.3070408@pahlevanzadeh.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: Thu, 10 Sep 2015 08:40:45 -0000 On Thu, 10 Sep 2015 12:42:10 +0430, Mohsen Pahlevanzadeh wrote: > I have a hdd (scsi), about 1985. I can detect hdd and geometry, But > maybe linux kernel removed xenix (sysv) filesytem. > Question is , 1. Can i detect it via freebsd? You should at least _try_ it. Depending on the partitioning, and if I remember correctly, Xenix uses some strange SCI HTFS and maybe UFS (not entirely sure), and the partitioning is either some MBR or "dedicated" schema, then, if everything else works, you should see: /dev/da0 /dev/da0s1 <- a slice /dev/da0s1a <- a partition /dev/da0s1d /dev/da0s1e and so on, or maybe even /dev/da0 /dev/da0a <- a partition without a slice /dev/da0d /dev/da0e and so on, if, let's say, da0 corresponds to the SCSI disk. Use the command # fdisk da0 to find out which partitioning schema (if any) has been used, and then maybe # disklabel da0 or # disklabel da0s1 to identify the partitions. Kepp an eye on which files appear in /dev. > 2. Can I read xenix (sysv) > filesytem ? You could try "mount -t ufs -o ro /mnt" for each of the partitions found, but this will probably fail. However, you can use a "dump | restore" approach, maybe this works. If not, you can at least resort to forensic tools which will read the data independently from the file system information; you might lose file names, but you can recover file contents. This can be done in "raw reads" from the disk device. But as far as I know, _native_ support for classic SysV file systems does not exist on FreeBSD, nor does it on any other platform. It's an excavation job for the mantally insane. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...