Skip to content

Commit

Permalink
add minix 2 book version
Browse files Browse the repository at this point in the history
  • Loading branch information
o-oconnell committed Mar 20, 2023
1 parent fbb0167 commit bcd1003
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions mountminix2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
mountpoint=minix2bookmnt
image=minix2.img
secsz=512
rootoff=`expr 65 '*' $secsz`
usroff=`expr 2945 '*' $secsz`
rootsz=`expr 2880 '*' $secsz`
usrsz=`expr 256639 '*' $secsz`

for i in root usr
do
mkdir -p $mountpoint/$i
done

sudo mount -t minix -o loop,offset=$rootoff,sizelimit=$rootsz $image $mountpoint/root
sudo mount -t minix -o loop,offset=$usroff,sizelimit=$usrsz $image $mountpoint/usr
1 change: 1 addition & 0 deletions qemuminix2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
qemu-system-i386 -drive file=minix2.img,format=raw -boot order=c
6 changes: 6 additions & 0 deletions umountminix2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mountpoint=minix2bookmnt

for i in root usr
do
sudo umount -t minix $mountpoint/$i
done

0 comments on commit bcd1003

Please sign in to comment.