-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbb0167
commit bcd1003
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |