improvements to createimg.sh
This commit is contained in:
parent
30bb741143
commit
7780e311d8
1 changed files with 15 additions and 8 deletions
23
createimg.sh
23
createimg.sh
|
@ -1,25 +1,32 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
|
# TOTAL=`stat -c %s iglunix.img`
|
||||||
|
|
||||||
|
# SECTOR=$(($TOTAL / 512))
|
||||||
|
|
||||||
|
# dd if=/dev/zero count=$((3145727 - $SECTOR)) >> iglunix.img
|
||||||
|
|
||||||
|
|
||||||
dd if=../tiny-linux-bootloader/disk of=iglunix.img
|
dd if=../tiny-linux-bootloader/disk of=iglunix.img
|
||||||
exit
|
#dd if=/dev/zero count=32768 > iglunix.img
|
||||||
TOTAL=`stat -c %s iglunix.img`
|
dd if=/dev/zero bs=1 count=0 seek=1G of=./iglunix.img
|
||||||
|
|
||||||
SECTOR=$(($TOTAL / 512))
|
|
||||||
|
|
||||||
dd if=/dev/zero count=$((3145727 - $SECTOR)) >> iglunix.img
|
|
||||||
|
|
||||||
|
|
||||||
echo "o
|
echo "o
|
||||||
n
|
n
|
||||||
p
|
p
|
||||||
1
|
1
|
||||||
32256
|
45505
|
||||||
|
|
||||||
a
|
a
|
||||||
1
|
1
|
||||||
w
|
w
|
||||||
" | fdisk iglunix.img
|
" | fdisk iglunix.img
|
||||||
|
|
||||||
|
|
||||||
|
#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
|
||||||
|
|
||||||
# losetup -o 32256 /dev/loop0 iglunix.img
|
# losetup -o 32256 /dev/loop0 iglunix.img
|
||||||
# mkfs.vfat /dev/loop0
|
# mkfs.vfat /dev/loop0
|
||||||
# mount /dev/loop0 ./isoroot
|
# mount /dev/loop0 ./isoroot
|
||||||
|
|
Loading…
Reference in a new issue