From owner-freebsd-questions Fri Mar 9 0:18:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id ED6E737B719 for ; Fri, 9 Mar 2001 00:18:26 -0800 (PST) (envelope-from mwm@mired.org) Received: (qmail 26973 invoked by uid 100); 9 Mar 2001 08:18:26 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15016.37330.226416.225770@guru.mired.org> Date: Fri, 9 Mar 2001 02:18:26 -0600 To: Rory Savage Cc: questions@freebsd.org Subject: Re: Mounting Linux EXT2FS to a FreeBSD Filesystem In-Reply-To: <13260414@toto.iv> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Rory Savage types: > Hello, > > My name is Rory Savage, and I have currently switced my workstation > from Linux (Red Hat 7.0) to FreeBSD 4.2-RELEASE, and I am having > diffuiculty mounting the my old Linux EXT2FS hard disk to my new FreeBSD > filesystem. > I used to run Red Hat 7.0 on a hard disk partitioned like this, 1 > primary paration (for /) about 1.0GB, and then an extended partition with > 3 logical partitions for /usr, /var, and /home. When I decided to switch > to FreeBSD I added a new hard disk as my primary boot disk, and my my > existing linux (ext2fs) drive my slave. When BSD boots, it sees the drive > as ad1, and that's okay. But my problem is when I run fsck on /dev/ad1 or > /dev/wd1 all I see is an entry for Partiotion 1 (EXT2FS), and Partion 2 > wich reports as an MSDOS Extneded partion. I can't seem to mount this or > any of the existing partitions to BSD. > Do I have to do something else (special) to get this filessytem to > mount to BSD? For now it appears that I can only mount Linux EXT2FS > primary partiations to BSD. If anyone knows a way to do this, please let > me know. I assume you mean fdisk, not fsck. fsck fixes file systems, fdisk prints disk slice tables. You want to use /dev/ad1s5. Logical slices start at 5, and go up from there. I know I've seen this documented somewhere, but I have no idea where it was. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message