Mounting ext2fs extended partitions in Solaris

Mounting ext2fs extended partitions in Solaris

Post by pjfl.. » Wed, 12 Jan 2000 04:00:00



Hi

I recently tried mounting my Linux partitions in
Solaris 7 Intel. I couldn't mount my root Linux
partition, which is in an extended partition.

Here's a description of my system, from a Linux
perspective:

/dev/sda 9.1G Quantum
/dev/sdb 9.1G Quantum
/dev/sdc 1.9G IBM

/dev/sda1 16M /boot primary Linux partition
/dev/sda4 Extended partition (type 05)
/dev/sda5 3G / extended Linux partition

/dev/sdb1 500M FAT (initial boot drive)
/dev/sdb3 2.2G / primary Solaris partition
/dev/sdb4 Extended partition (type 05)
/dev/sdb6 128M extended Linux swap partition

The other partitions are all HPFS or NTFS.

It may be worth pointing out that Solaris did
not "cleanly" install on cylinder boundaries,
which tools like DOS fdisk and Partition Magic
do not like at all. To Make matters worse, Solaris
wrote into the partition table in the wrong order
(this is /dev/sda).

This shouldn't be a problem, as the partition table
and partitions on /dev/sdb are fine, and this is where
the Linux root I want to mount is.

I've managed to mount Linux /boot (primaty), but that
is of little use.

Is there any way to get Solaris to mount the partition
in the extended partition? I have the impression that
Solaris doesn't get on well with PC extended partitions
(it won't install in one for a start).

TIA
Paul

--
Paul Floyd
Is atrophy a shiny cup?

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Mounting ext2fs extended partitions in Solaris

Post by palowod » Wed, 12 Jan 2000 04:00:00




> I've managed to mount Linux /boot (primaty), but that
> is of little use.

Hmm, mounted using what command?

Quote:

> Is there any way to get Solaris to mount the partition
> in the extended partition? I have the impression that
> Solaris doesn't get on well with PC extended partitions
> (it won't install in one for a start).

You might want to try the linux ext2 mount utilities that
come with lxrun.  See http://www.sun.com/linux/lxrun/
or http://soldc.sun.com/articles/lxrun/#ext2fs

Note I have no idea if this works with extended ext2
filesystems or should I say bios partition types.
I suppose it brings up the question if you wish to
write the ext2 file system which it dosn't support.
I heard Linux has a UFS mount command but haven't seen
any data on how well it's supported, specially if
you have some large partitions with files >2G.
Question what is the primary purpose of an extended
linux partition?

---Bob

--
Bob Palowoda   The Solaris x86 Corner   http://fishbutt.fiver.net

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Mounting ext2fs extended partitions in Solaris

Post by pjfl.. » Wed, 12 Jan 2000 04:00:00






> > I've managed to mount Linux /boot (primaty), but that
> > is of little use.

> Hmm, mounted using what command?

Oops I should have said.

Using the mount command that comes with the ext2fs
package that you mention below.

Quote:> > Is there any way to get Solaris to mount the partition
> > in the extended partition? I have the impression that
> > Solaris doesn't get on well with PC extended partitions
> > (it won't install in one for a start).
> You might want to try the linux ext2 mount utilities that
> come with lxrun.  See http://www.sun.com/linux/lxrun/
> or http://soldc.sun.com/articles/lxrun/#ext2fs
> Note I have no idea if this works with extended ext2
> filesystems or should I say bios partition types.
> I suppose it brings up the question if you wish to
> write the ext2 file system which it dosn't support.
> I heard Linux has a UFS mount command but haven't seen
> any data on how well it's supported, specially if
> you have some large partitions with files >2G.
> Question what is the primary purpose of an extended
> linux partition?

I haven't tried mounting UFS from Linux yet.

The main use of extended partitions is to overcome the
PC limitation of 4 primary partitions. I prefer to
separate data and OS into different partitions (possible
performance benefit as well). Since extended partitions
chain together rather than being pointed to by a fixed
table, it increases flexibility.

The only real problem is that in general, support for
booting from an extended partition is poor. Linux and
OS/2 can do it, Windows/DOS (any flavour) and Solaris
can't.

Hwyl
Paul

Quote:> ---Bob

--
Paul Floyd
Is atrophy a shiny cup?

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Mounting ext2fs extended partitions in Solaris

Post by palowod » Wed, 12 Jan 2000 04:00:00




> I haven't tried mounting UFS from Linux yet.

> The main use of extended partitions is to overcome the
> PC limitation of 4 primary partitions. I prefer to
> separate data and OS into different partitions (possible
> performance benefit as well). Since extended partitions
> chain together rather than being pointed to by a fixed
> table, it increases flexibility.

> The only real problem is that in general, support for
> booting from an extended partition is poor. Linux and
> OS/2 can do it, Windows/DOS (any flavour) and Solaris
> can't.

In that case I doubt if extended ext2fs file systems are supported.
Seems to be more of a kludge just to cram more OS's on
a single disk which makes it a administration nightmare.
Seems like a dumb idea to depend on bios partitions for
unix partitions on the Linux side.  But whatever.

---Bob

--
Bob Palowoda   The Solaris x86 Corner   http://fishbutt.fiver.net

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Mounting ext2fs extended partitions in Solaris

Post by pjfl.. » Thu, 13 Jan 2000 04:00:00




Quote:> In that case I doubt if extended ext2fs file systems are supported.
> Seems to be more of a kludge just to cram more OS's on
> a single disk which makes it a administration nightmare.
> Seems like a dumb idea to depend on bios partitions for
> unix partitions on the Linux side.  But whatever.

This is what I suspected.

Another thing I don't quite understand are the contents
of /dev/dsk.

There is c0t1d0p0 to c0t1d0p4, which seem to represent
primary partitions on disk 0, of which I can mount
c0t1d0p1, my Linux /boot partition (a whole 16M).
But why are there 5, when the partition table only has
4 entries? A bit of a mystery.

As for PCs being a kludge, that is hardly news!

Cheers
Paul

Quote:> ---Bob

--
Paul Floyd
Is atrophy a shiny cup?

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Mounting ext2fs extended partitions in Solaris

Post by Andrew Gabri » Thu, 13 Jan 2000 04:00:00






>> I haven't tried mounting UFS from Linux yet.

>> The main use of extended partitions is to overcome the
>> PC limitation of 4 primary partitions.

The original reason is because the fdisk spec doesn't
allow more than one primary partition of the same type,
and DOS couldn't handle a primary partition of more than
32Mb (IIRC) at the time when disks got bigger than 32Mb!

Quote:>> I prefer to
>> separate data and OS into different partitions (possible
>> performance benefit as well). Since extended partitions
>> chain together rather than being pointed to by a fixed
>> table, it increases flexibility.

>> The only real problem is that in general, support for
>> booting from an extended partition is poor. Linux and
>> OS/2 can do it, Windows/DOS (any flavour) and Solaris
>> can't.

>In that case I doubt if extended ext2fs file systems are supported.
>Seems to be more of a kludge just to cram more OS's on
>a single disk which makes it a administration nightmare.

It is an Extended _DOS_ partition.
Using it for other things is pretty much the same as deciding
to put a pc filesystem in, say, slice 5 of your Solaris partition.
You are at the mercy of other software to understand what you've
done and how to access the data; if it can, all well and good,
if it can't, you can hardly blame it.

Quote:>Seems like a dumb idea to depend on bios partitions for
>unix partitions on the Linux side.  But whatever.

--
Andrew Gabriel
Consultant Software Engineer
 
 
 

Mounting ext2fs extended partitions in Solaris

Post by Bruce Adle » Thu, 13 Jan 2000 04:00:00




> Another thing I don't quite understand are the contents
> of /dev/dsk.

> There is c0t1d0p0 to c0t1d0p4, which seem to represent
> primary partitions on disk 0, of which I can mount
> c0t1d0p1, my Linux /boot partition (a whole 16M).
> But why are there 5, when the partition table only has
> 4 entries? A bit of a mystery.

I think this question is probably answered by the Solaris x86 FAQ.

The "p0" special-file allows access to the whole drive regardless
of the contents of the partition table entries. The p1-p4 special-files
corresponded to the four partition table entries. You can only open a
p1-p4 special-file if the corresponding entry in the partition table is
present and valid. Clearly, on a blank disk which doesn't have any
valid partition table entries you need something other than p1-p4 to
create a new partition table.

 
 
 

1. Mounting ext2fs partitions in an extended partition

I'm a Linux user just getting to grips with FreeBSD. Whilst I know I
can mount my ext2fs partitions under FreeBSD, I have heard that this
isn't possible when they're located inside a DOS extended
partition. Is this true? Knowing this will save me from spending time
trying to get something to work that just isn't going to.

Going the other way, I was disappointed to discover that UFS support
in Linux is broken. I picked up the alternative alpha u2fs package and
tried to compile that into in my kernel tree, but the compile bombed
out. I think it needs to be modified for my glibc based Linux. Sigh...

In short, I can't mount in either direction at the moment, whilst I'd
hoped for a healthy interaction between the two. They're both on the
same machine, BTW, so NFS isn't an option.

Ian
--
Ian Macdonald                         |       Don't give in to spammers.
http://www.caliban.org/               |      Use your real e-mail address
PGP key available from public servers |               on Usenet.
Linux 2.0.33 on an i686               |

2. wireless lan pcmci recommedations?

3. ext2fs on extended partition and 1.3.57 and .58, bug?

4. tcpip woes with SLS

5. What partition sysid is OK for extended DOS partition mount?

6. nat & firewall

7. how do i mount an extended dos partition or a dos logical partition ?

8. problems with a second cdrom

9. Mounting MSDOS partition inside of an extended partition.

10. Mounting Linux (ext2fs) partition under Win95

11. 2.2.6 crashes with ext2fs-partition mounted

12. Mounting ext2fs partition fails

13. Mounting Ext2fs-formatted partitions in 2.2.5-r