2021-01-31 13:41:39 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-02-04 12:02:44 +00:00
|
|
|
|
2021-02-13 13:24:03 +00:00
|
|
|
# TOTAL=`stat -c %s iglunix.img`
|
|
|
|
|
|
|
|
# SECTOR=$(($TOTAL / 512))
|
|
|
|
|
|
|
|
# dd if=/dev/zero count=$((3145727 - $SECTOR)) >> iglunix.img
|
2021-02-04 12:02:44 +00:00
|
|
|
|
|
|
|
|
2021-02-13 13:24:03 +00:00
|
|
|
dd if=../tiny-linux-bootloader/disk of=iglunix.img
|
|
|
|
#dd if=/dev/zero count=32768 > iglunix.img
|
|
|
|
dd if=/dev/zero bs=1 count=0 seek=1G of=./iglunix.img
|
2021-02-04 12:02:44 +00:00
|
|
|
|
|
|
|
echo "o
|
2021-01-30 07:29:13 +00:00
|
|
|
n
|
|
|
|
p
|
|
|
|
1
|
2021-02-13 13:24:03 +00:00
|
|
|
45505
|
2021-01-30 07:29:13 +00:00
|
|
|
|
2021-02-04 12:02:44 +00:00
|
|
|
a
|
|
|
|
1
|
2021-01-30 07:29:13 +00:00
|
|
|
w
|
2021-02-10 19:00:20 +00:00
|
|
|
" | fdisk iglunix.img
|
2021-02-04 12:02:44 +00:00
|
|
|
|
2021-02-13 13:24:03 +00:00
|
|
|
|
|
|
|
#dd conv=notrunc bs=1 count=446 if=../tiny-linux-bootloader/disk of=iglunix.img
|
|
|
|
#dd conv=notrunc bs=1 skip=510 seek=510 if=../tiny-linux-bootloader/disk of=iglunix.img
|
|
|
|
|
2021-02-10 19:00:20 +00:00
|
|
|
# losetup -o 32256 /dev/loop0 iglunix.img
|
2021-02-04 12:02:44 +00:00
|
|
|
# mkfs.vfat /dev/loop0
|
|
|
|
# mount /dev/loop0 ./isoroot
|
|
|
|
# #rm -r isoroot/*
|
|
|
|
# #cp -r isoout/* isoroot
|
|
|
|
# umount ./isoroot
|