*BSD News Article 95321


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!ix.netcom.com!news.alt.net!newspost1.alt.net!pavanas
From: pavanas@nomina.ccia.com (pavanas abludo incusus)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: URGENT: how to mount Linux partition from FreeBSD?
Date: 14 May 1997 20:13:08 GMT
Organization: Aragorn Asteria
Lines: 59
Message-ID: <slrn5nk788.dct.pavanas@nomina.ccia.com>
References: <336DC11D.3480@intertrader.com> <5kqtqu$je1@uriah.heep.sax.de>
Reply-To: pavanas@smalt.net
X-Newsreader: slrn (0.9.3.2 UNIX)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:40856

On 7 May 1997 21:56:46 GMT,
 J Wunsch <j@uriah.heep.sax.de> mused and hath written:

>Andreas Schoter <andreas@intertrader.com> wrote:
>
>> Help! I need to mount a Linux partition from FreeBSD. The partition
>> contains some important mail which I need access to ASAP.
>
>You need to compile a kernel with ext2fs support.  This should be
>``options EXT2FS'', but make sure to verify this in the LINT config
>file.  (I've never did it myself nor do i have an ext2fs filesystem at
>all to test it.)
>
>> FreeBSD is installed on Hard Drive 1 (/dev/wd0), the Linux partition I
>> need is the first partition on Hard Drive 2 (/dev/wd1).
>
>This should make
>
>	mount -t ext2fs /dev/wd1s1 /linuxfs
>
or try:

	mount_ext2fs /dev/wdXsX /mnt

where the first X is the hdd from 0 through 3 and the second X is the
Linux partition. check against df in BSD to see what BSD is using if
Linux on the same HDD. i.e. i have Linux on the 1st and fourth partition
on one hdd as per Linux but as per BSD theu are the 1st and second slice.

and you will be able to move around, examine or copy anthing from the
Linux slices to the FBSD slices. i did not try to move anything from
BSD to Linux since what i needed was on the Linux slices.

this assumes that you have added the two Linux options in Lint to the
file you used to compile the kernel with Linux suppport and have
also installed the requisite Linux libs and other Linux stuff on the
FBSD distribution. 

>then.
>
>> And for a bonus question, how do I get at the extended partitions 5 & 6
>> on the 2nd drive?
>
>They are /dev/wd1s5 and /dev/wd1s6.  You probably need to run
>/dev/MAKEDEV to create the actual device nodes.
>
>-- 
>cheers, J"org
>
>joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
>Never trust an operating system you don't have sources for. ;-)
>


-- 
IHS
pavanas
	The secret thoughts of a man run over all things, holy, profane,
	clean, obscene, grave, and light, without shame of blame.  Hobbs