what is minix.img file? Raw minix partition? Qemu image? Be more
specific please.
> It seems that Linux doesn't support minix filesystem.
It certainly does, although it lacks some compatibility with the lates
version. That is not the problem in your case for sure.
Cheers, T.
losetup /dev/loop0 minix.img -o 512
mount -t minix /dev/loop0 /mnt
>> try this:
>> losetup /dev/loop0 minix.img -o 512
> ~~~~~~~~~~~~ ok
>> mount -t minix /dev/loop0 /mnt
> ~~~~~~~~~~~~ fail
> mount: unknown filesystem type 'minix'
Check if your Linux kernel includes the module for minix file system.
$ lsodgf0@monica:~ > zcat /proc/config.gz | grep MINIX
CONFIG_MINIX_FS=m
CONFIG_MINIX_SUBPARTITION=y
Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
< http://giovanni.homelinux.net/ >
Did you format the disk image within Bochs? If so you need to mount
the minix partitions not the raw partition.
I usually run this simple script.
#!/bin/sh
ROOT=<offset of root partition in image>
USR=<offset of usr partition in image>
USRS=<offset of home partition in image>
MINIX=<mount point of minix root partition>
IMAGE=<path to image file>
sudo /sbin/losetup -o $ROOT /dev/loop0 $IMAGE
sudo /sbin/losetup -o $USR /dev/loop1 $IMAGE
sudo /sbin/losetup -o $USRS /dev/loop2 $IMAGE
sudo /sbin/mount -t minix /dev/loop0 $MINIX
sudo /sbin/mount -t minix /dev/loop1 $MINIX/usr
sudo /sbin/mount -t minix /dev/loop2 $MINIX/home
# end
You have to compute the offsets of the partitions. Get them by
running minix in bochs, reading in 'part' the starting sector of each
partition and multiplying them by 512 (No. of bytes per sector).
You should also make sure the filesystem is supported by the kernel.
It should be listed in /proc/filesystems if so.
Otherwise try to load the module, if it is compiled as a module.
$ cat /proc/filesystems
# modprobe minix
Another option is that the img-file is also containing a partition table. you can check it using fdisk or cfdisk.
Regards,
Sernin van de Krol
On 6 Oct 2009 09:31, "Martin Knappe" <martin...@gmail.com> wrote:
try this:losetup /dev/loop0 minix.img -o 512
mount -t minix /dev/loop0 /mnt
On Tue, Oct 6, 2009 at 8:57 AM, cwl <qzch...@gmail.com> wrote: > > > [chenwl@myhost minix]$ sudo ...
Minix has its own partition scheme.
It uses subpartitions that are unkown to linux and you can display
them in 'part' by puttying the cursors on the minix entry ad pressing
'>'. You will get the informations on minix partitions.
Use '?' to get help on 'part' usage.