Mounting the Linux Drive in Mac OS X

Derick Centeno aguilarojo at verizon.net
Sun Jan 16 23:49:37 MST 2005


On Mon, 2005-01-17 at 01:42, Derick Centeno wrote:
> On Mon, 2005-01-17 at 00:16, Raymond Halbert wrote:
> > I was very easily abel to mount the Mac OS X hard drive in Linux, but I 
> > am having trouble doing the opposite. I. e., I want o mount the Linux 
> > partition in Mac OS X, but I cannot figure out how. I know that the YDL 
> > partition is /dev/disk0s4, but my mac won't let me mount it. Is there a 
> > way that I could force it to mount? (I have tried sudo and root.)
> > 
> > After that is done, is the procedure for mounting the drive on reboot 
> > that much different from what I did for Linux? (fstab file editing 
> > procedure)
> 
> This is an interesting question.
> 
> You should realize that this issue is really one of what the MacOS can
> see as a recognized partition for it to mount on it's desktop.  As far
> as I'm aware, there is nothing in how Linux is designed to enable that
> to happen.  Remember that Linux was made to run on x86 systems and act
> as though it was a Unix OS.  YDL is an implementation of that running on
> PowerPC systems.
> 
> The most you might be able to do is to have Darwin (the Unix/Open Source
> portion of MacOS X) see the Linux drive or partition using pdisk.  I've
> been told by others who are regulars on this list that Darwin has
> everything Linux/YDL has...so from their input, I'm assuming Darwin has
> pdisk too.
> 
> Within Darwin, using the Terminal within OS X you should be able to do 
> 
> $ whereis pdisk
> 
> Then from there, whereever it tells you it is go to that directory,
> you'll probably have to be in superuser.  So:
> 
> # ./pdisk -l
> 
> The above would in Linux cause pdisk to list all the partitions it sees.
> Note where it lists the mount points for the Linux partition and then
> you should be able to create a directory within Darwin.  Create a name
> for the Linux partition, and you are then one step away of mounting it
> into Darwin.  The problem will be just what options within the mount
> command available in Darwin will allow you to mount a Linux drive into
> it's directory structure.  You may be lucky enough to find an
> explanation within man or info, that is do
> 
> man mount 
> info mount
> 
> and see what options come up.  The solution could be as simple as:
> 
> #mount -t ext3 /dev/disk0s4 /mnt/myydl
> 
> I'm not sure, but I do know that if you choose the name myydl or
> anything else you'll have to use mkdir first to create it before you use
> mount in the way I suggested.
> 
> I don't expect OS X to mount the Linux partition as a drive on the
> desktop, but if it does there's more to the OS X as a Unix system than
> most know!
> 
> That's as far as I can intuit.
> 
> Best wishes...
> 
Addendum:

I'm not sure how you determined /dev/disk0s4, but pdisk within Darwin
may say differently.  You will have to use whatever device location and
mount point pdisk utilizes or identifies the Linux drive as.

Best wishes...



More information about the yellowdog-newbie mailing list