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
|
||||
|
||||
|
||||
# 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
|
||||
exit
|
||||
TOTAL=`stat -c %s iglunix.img`
|
||||
|
||||
SECTOR=$(($TOTAL / 512))
|
||||
|
||||
dd if=/dev/zero count=$((3145727 - $SECTOR)) >> iglunix.img
|
||||
|
||||
#dd if=/dev/zero count=32768 > iglunix.img
|
||||
dd if=/dev/zero bs=1 count=0 seek=1G of=./iglunix.img
|
||||
|
||||
echo "o
|
||||
n
|
||||
p
|
||||
1
|
||||
32256
|
||||
45505
|
||||
|
||||
a
|
||||
1
|
||||
w
|
||||
" | 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
|
||||
# mkfs.vfat /dev/loop0
|
||||
# mount /dev/loop0 ./isoroot
|
||||
|
|
Loading…
Reference in a new issue