From owner-freebsd-questions@FreeBSD.ORG Wed Aug 31 16:44:16 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4138B16A440 for ; Wed, 31 Aug 2005 16:44:16 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7438543D4C for ; Wed, 31 Aug 2005 16:44:00 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.1/8.13.1) with ESMTP id j7VGgjv1003326; Wed, 31 Aug 2005 11:43:10 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <4315DDFB.1000407@daleco.biz> Date: Wed, 31 Aug 2005 11:42:35 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.10) Gecko/20050823 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Isaac Grover References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Mounting a RHLinux 7.1 partition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 16:44:16 -0000 Isaac Grover wrote: >Good morning everyone, > >Due to a hardware failure on my RHLinux 7.1 gateway, I have chosen to >install FreeBSD 5.4 as my new gateway's operating system. The hard >drive didn't die fortunately, as I did test it on another system to >make sure it booted, and aside from kudzu complaining about some new >and missing hardware, everything was there. > >Once I had FreeBSD 5.4 set up, I put the RHLinux drive in the FreeBSD >machine as primary slave. Manually mounting the drive didn't seem to >work since I could find which /dev/ entry the RHLinux drive ended up >on, and of course fdisk wouldn't help for the same reason. So I >pulled the RHLinux drive from the FreeBSD machine, set it up as >primary master on another machine, and was going to do the necessary >file copies over the network. However, now it boots up with the >FreeBSD menu, giving me one option (F1) to boot FreeBSD, and pressing >F1 yields a beep from the PC speaker, and no boot. > >What happened to my RHLinux MBR and how can I either: 1) restore the >MBR or 2) retrieve my data? > >Thanks in advance, > > Your drive, if set as primary slave, should have been /dev/ad(da)1 (ad = IDE da=SCSI). AFAIK these are hard-coded unless something has changed. Check the handbook. When you say "manually mounting the drive didn't seem to work" I wonder if you tried hard enough? FreeBSD can mount some Linux filesystems. What filesystem is on this HDD? Perhaps one of: mount_cd9660(8), mount_devfs(8), mount_ext2fs(8), mount_fdescfs(8), mount_hpfs(8), mount_linprocfs(8), mount_msdosfs(8), mount_nfs(8), mount_ntfs(8), mount_nullfs(8), mount_nwfs(8), mount_portalfs(8), mount_procfs(8), mount_smbfs(8), mount_std(8), mount_udf(8), mount_umapfs(8), mount_unionfs(8). Of those, of course, the only ones I know might help with Linux are ext2 and msdos. The number of possible permutations is not so large that you couldn't try them all, since you really want your data. Note that the list is a c/p from the manpage and not edited to reality. AFAIK FreeBSD doesn't do the reiser fs, which, if that's what you have, would explain why you couldn't mount the drive. As for what happened to your MBR, I can't say, as you ran sysinstall and I dunno which togs you pushed.... Someone else may well know how you might repair your RedHat MBR. I suppose it's possible that there are 3rd party programs to help. It might also be possible to use dd to get the data, but that's a tad over my head. And, of course, the obvious question. Where are your backups? ;-) KDK