Regarding MINIX 3 file system.

745 views
Skip to first unread message

Patchaiappan

unread,
Oct 8, 2011, 1:33:49 PM10/8/11
to minix3
Can anyone tell me what file system is the MINIX 3 using.

Erik van der Kouwe

unread,
Oct 8, 2011, 2:12:23 PM10/8/11
to minix3
Hi,

> Can anyone tell me what file system is the MINIX 3 using.

Version 3 of the MINIX filesystem. Some info at
http://en.wikipedia.org/wiki/MINIX_file_system, IIRC Operating
Systems: Design and Implementation (3rd ed., by A.S. Tanenbaum and
A.S. Woodhull) should provide more info, as does the source code.

With kind regards,
Erik

Evgeniy Ivanov

unread,
Oct 8, 2011, 2:13:43 PM10/8/11
to min...@googlegroups.com
Hi,

MINIX 3 use Minix File System (MFS). More precisely MFS V3.
Also it supports ext2 which can be used as root fs. Another supported
filesystems are ISO9660FS, NTFS (fuse-ntfs-3g, it is not merged into
master yet), HGFS and ProcFS.

On Sat, Oct 8, 2011 at 9:33 PM, Patchaiappan
<greenlowj...@gmail.com> wrote:
> Can anyone tell me what file system is the MINIX 3 using.
>

> --
> You received this message because you are subscribed to the Google Groups "minix3" group.
> To post to this group, send email to min...@googlegroups.com.
> To unsubscribe from this group, send email to minix3+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/minix3?hl=en.
>
>

--
Evgeniy Ivanov

Paul

unread,
Oct 9, 2011, 4:00:54 AM10/9/11
to minix3
does minix support EXT2 at the kernel level or is it more of a tool
that can read EXT2 filesystems?
and can a full system be built using only EXT2 and bypassing MFS? or
does minix use a INITRD like linux that has to be in MFS?
Regards

On Oct 8, 7:13 pm, Evgeniy Ivanov <lolkaanti...@gmail.com> wrote:
> Hi,
>
> MINIX 3 use Minix File System (MFS). More precisely MFS V3.
> Also it supports ext2 which can be used as root fs. Another supported
> filesystems are ISO9660FS, NTFS (fuse-ntfs-3g, it is not merged into
> master yet), HGFS and ProcFS.
>
> On Sat, Oct 8, 2011 at 9:33 PM, Patchaiappan
>

AntoineLeca

unread,
Oct 9, 2011, 7:39:40 AM10/9/11
to minix3
On 9 Oct, 10:00, Paul wrote:
> does minix support EXT2 at the kernel level or is it more of a tool
> that can read EXT2 filesystems?

The former.


> and can a full system be built using only EXT2 and bypassing MFS?

I believe it can be done easily, but I never did it personally, and it
is my understanding it will not be supported. Of course you will need
to modify slightly several Makefiles and also some scripts (like
drivers/ramdisk/rc); at the very most you'll need to mentally read
"ext2" where some tools have "mfs" hardwired in the screenouts.
The only two points I can think of are:
1) the ext2fs tools (mkfs, fsck) are not part of the base system (the
code is under GPL), you need to install one supplementary package to
do a successful full build.
2) Minix boot monitor does not know about ext2fs file systems right
now (and AFAIK nobody works on that); but I am hearing that there are
other boot monitors like GRUB which can; it might require starting
MINIX3 with the multiboot protocol rather than legacy Minix-specific
protocol. OTOH you can boot a "mainly" ext2-system where only the /
boot partition with its two files would be MFS (but separate /boot
file systems are not a supported feature of MINIX either.)

Do not forget that MINIX uses different conventions from Linux, like
different numbers for devices or different protocols for calling the
system; so a root FS for MINIX3 cannot serve as root FS for Linux, and
vice-versa (unless you heavily modify both systems.)


> or does minix use a INITRD like linux that has to be in MFS?

MINIX3 indeed uses an embedded ramdisk which is much like Linux
initrd; in the normal case, this ramdisk uses MFS; but I fail to see
where it can be a problem to use ext2fs here, since AFAIK the ext2
server has all the required features (mainly the hability to be the /
server)


Antoine

Paul

unread,
Oct 9, 2011, 9:15:53 AM10/9/11
to minix3
So in reality, a fully EXT2 based Minix system is not really feasable
(yet)?
Does Linux still support MFS, i.e. Debian or similar, and is it as
easy (in-linux) to mount a Minix FS as: mount /dev/hd0 /mnt/minix


Maurizio Lombardi

unread,
Oct 9, 2011, 11:45:11 AM10/9/11
to min...@googlegroups.com
> Does Linux still support MFS, i.e. Debian or similar, and is it as
> easy (in-linux) to mount a Minix FS as: mount /dev/hd0 /mnt/minix

Yes, the Linux kernel supports MFS V1/V2 and V3 filesystems.

--
--------------------
Maurizio Lombardi

Evgeniy Ivanov

unread,
Oct 10, 2011, 5:36:44 AM10/10/11
to min...@googlegroups.com
Hi,

On Sun, Oct 9, 2011 at 5:15 PM, Paul <paul-...@hotmail.co.uk> wrote:
> So in reality, a fully EXT2 based Minix system is not really feasable
> (yet)?

It is feasible, but it requires some work. I recall that somebody from
VU did a ext2 based MINIX installation.
Though there are almost no reasons for that, because ext2 and MFS are
pretty similar.

--
Evgeniy Ivanov

Paul

unread,
Oct 10, 2011, 4:41:18 PM10/10/11
to minix3
The reason i ask is i wanted to do a custom/manual install from linux.
So a follow up question, how do i mount a minix FS from linux.
Assuming i have a separate HDD for each system, (am aware of different
drive naming schemes for minix & linux) so HDA is my linux system and
HDB would be my MINIX system, as I've tried
mount /dev/hdb1 /mnt/minix
but linux doesn't like this, does minix not use the traditional
partition system?

Maurizio Lombardi

unread,
Oct 10, 2011, 5:03:13 PM10/10/11
to min...@googlegroups.com
> mount /dev/hdb1 /mnt/minix
> but linux doesn't like this, does minix not use the traditional
> partition system?

You must use the -t option, try the following command:

#mount -t minix /dev/hdb1 /mnt/minix

Cheers,
--
--------------------
Maurizio Lombardi

Antoine LECA

unread,
Oct 11, 2011, 6:44:06 AM10/11/11
to min...@googlegroups.com
Paul wrote:
> Assuming i have a separate HDD for each system, (am aware of different
> drive naming schemes for minix & linux) so HDA is my linux system and
> HDB would be my MINIX system, as I've tried
> mount /dev/hdb1 /mnt/minix
> but linux doesn't like this, does minix not use the traditional
> partition system?

It should work if your MINIX file system is installed on /dev/c0d1p0;
it is not the most usual option though.

<UNTESTED>
Assuming that MINIX is installed in /dev/c0d1p0s[012], and assuming
there are no extended (DOS) partition on the drive, you would try
mount -t minix /dev/hdb5 /mnt/minix
mount -t minix /dev/hdb7 /mnt/minix/usr
mount -t minix /dev/hdb6 /mnt/minix/home
</UNTESTED>

Antoine

Janne Kiiski

unread,
Oct 12, 2011, 11:59:34 AM10/12/11
to min...@googlegroups.com
On 10/11/2011 12:03 AM, Maurizio Lombardi wrote:
>> mount /dev/hdb1 /mnt/minix
>> but linux doesn't like this, does minix not use the traditional
>> partition system?
> You must use the -t option, try the following command:
>
> #mount -t minix /dev/hdb1 /mnt/minix
>
> Cheers,

Command I've used to check which device have minix partitions...

#dmesg | grep minix
[ 2.585994] sda1: <minix: sda5 sda6 sda7 >

Also check if your linux kernel supports minix filesystem:

#grep minix /proc/filesystems
minix

If no result then filesystem is not supported or its compiled as module
and not yet loaded so, try:

#sudo modprobe minix
#grep minix /proc/filesystems

If still no positive result then I would rebuild linux kernel and make
sure that minix filesystem is compiled within...

BR,
Janne

Jeff Pohlmeyer

unread,
Oct 12, 2011, 12:48:29 PM10/12/11
to min...@googlegroups.com
On Wed, Oct 12, 2011 at 10:59 AM, Janne Kiiski wrote:

> Command I've used to check which device have minix partitions...

> #dmesg | grep minix
> [    2.585994]  sda1: <minix: sda5 sda6 sda7 >

Ah, nice trick. I was wondering how to to get the device names
for the subpartitions!


You can also check your kernel config using one of these commands:

# grep MINIX /boot/config-`uname -r`
# zgrep MINIX /proc/config.gz

CONFIG_MINIX_FS=y <- built into kernel
CONFIG_MINIX_FS=m <-separate kernel module
CONFIG_MINIX_FS is not set <- No Minix support

CONFIG_MINIX_SUBPARTITION <-will either be "y" or "is not set"

- Jeff

- Jeff

Evgeniy Ivanov

unread,
Oct 12, 2011, 2:08:28 PM10/12/11
to min...@googlegroups.com
Hi,

On Wed, Oct 12, 2011 at 7:59 PM, Janne Kiiski <janne....@gmail.com> wrote:
> On 10/11/2011 12:03 AM, Maurizio Lombardi wrote:
>>>
>>> mount /dev/hdb1 /mnt/minix
>>> but linux doesn't like this, does minix not use the traditional
>>> partition system?
>>
>> You must use the -t option, try the following command:
>>
>>  #mount -t minix /dev/hdb1 /mnt/minix
>>
>> Cheers,
>
> Command I've used to check which device have minix partitions...
>
> #dmesg | grep minix
> [    2.585994]  sda1: <minix: sda5 sda6 sda7 >

Good trick. But I believe, that "fdisk -l /dev/sda" shows it as well.


> Also check if your linux kernel supports minix filesystem:
>
> #grep minix /proc/filesystems
>    minix
>
> If no result then filesystem is not supported or its compiled as module and
> not yet loaded so, try:
>
> #sudo modprobe minix
> #grep minix /proc/filesystems
>
> If still no positive result then I would rebuild linux kernel and make sure
> that minix filesystem is compiled within...
>
> BR,
> Janne
>

> --
> You received this message because you are subscribed to the Google Groups
> "minix3" group.
> To post to this group, send email to min...@googlegroups.com.
> To unsubscribe from this group, send email to
> minix3+un...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages