[Nook Color Android Development] Novarider:
I ran "cat dual-boot.sh" and this is what I got

# cat dual-boot.sh
cat dual-boot.sh
echo ">>>>>>>>>>>>>>>>>>>>"
echo ">>>>>>>>>>>>>>>>>>>>Create working directory"
echo ">>>>>>>>>>>>>>>>>>>>"
mkdir /data/dualboottmp
busybox tar zxf dual-boot-files.tar.gz -C /data/dualboottmp
chmod 766 /data/dualboottmp/parted

echo ">>>>>>>>>>>>>>>>>>>>"
echo ">>>>>>>>>>>>>>>>>>>>Back up /media to sdcard"
echo ">>>>>>>>>>>>>>>>>>>>"
busybox tar zcf /sdcard/media_backup.tar.gz /media
if [ "$?" -ne "0" ]; then
echo "Backup failed. Exiting."
exit 1
fi
umount /media

echo ">>>>>>>>>>>>>>>>>>>>"
echo ">>>>>>>>>>>>>>>>>>>>We delete partition 9 a few times"
echo ">>>>>>>>>>>>>>>>>>>>to make sure there is no Froyo"
echo ">>>>>>>>>>>>>>>>>>>>partition left. You can ignore"
echo ">>>>>>>>>>>>>>>>>>>>the message - Error: Partition doesn't exist"
echo ">>>>>>>>>>>>>>>>>>>>"
/data/dualboottmp/parted -s /dev/block/mmcblk0 rm 9
/data/dualboottmp/parted -s /dev/block/mmcblk0 rm 9
/data/dualboottmp/parted -s /dev/block/mmcblk0 rm 9

echo ">>>>>>>>>>>>>>>>>>>>"
echo ">>>>>>>>>>>>>>>>>>>>Move and resize media partition"
echo ">>>>>>>>>>>>>>>>>>>>"
/data/dualboottmp/parted -s /dev/block/mmcblk0 rm 8
/data/dualboottmp/parted -s /dev/block/mmcblk0 mkpart logical fat32 3692 7691
newfs_msdos -F 32 -L media /dev/block/mmcblk0p8
mount -t vfat /dev/block/mmcblk0p8 /media

echo ">>>>>>>>>>>>>>>>>>>>"
echo ">>>>>>>>>>>>>>>>>>>>Restore /media"
echo ">>>>>>>>>>>>>>>>>>>>"
busybox tar zxf /sdcard/media_backup.tar.gz -C /

echo ">>>>>>>>>>>>>>>>>>>>"
echo ">>>>>>>>>>>>>>>>>>>>Create Froyo system and data partition"
echo ">>>>>>>>>>>>>>>>>>>>"
/data/dualboottmp/parted -s /dev/block/mmcblk0 mkpart logical ext2 2311 2681
/data/dualboottmp/parted -s /dev/block/mmcblk0 mkpart logical ext2 2681 3692
mke2fs /dev/block/mmcblk0p9
tune2fs -c0 -i0 /dev/block/mmcblk0p9
mke2fs -j /dev/block/mmcblk0p10
tune2fs -c0 -i0 /dev/block/mmcblk0p10

echo ">>>>>>>>>>>>>>>>>>>>"
echo ">>>>>>>>>>>>>>>>>>>>Copy Nookie Froyo files"
echo ">>>>>>>>>>>>>>>>>>>>"
mkdir /data/dualboottmp/system
mkdir /data/dualboottmp/data
mount -t ext2 /dev/block/mmcblk0p9 /data/dualboottmp/system
mount -t ext3 /dev/block/mmcblk0p10 /data/dualboottmp/data
busybox tar zxf nookie-froyo-base-0.5.9.tar.gz -C /data/dualboottmp
mkdir /data/dualboottmp/tmpboot
mount -t vfat /dev/block/mmcblk0p1 /data/dualboottmp/tmpboot
busybox cp /data/dualboottmp/boot/uImage /data/dualboottmp/tmpboot/uFImg
busybox cp /data/dualboottmp/uFRam /data/dualboottmp/tmpboot/uFRam
if [ -f /data/dualboottmp/tmpboot/u-boot.bin.stock ];
then
echo "u-boot.bin.stock exists. skip backup"
else
mv /data/dualboottmp/tmpboot/u-boot.bin /data/dualboottmp/tmpboot/u-boot.bin.s
tock
fi
busybox cp /data/dualboottmp/u-boot.bin /data/dualboottmp/tmpboot/u-boot.bin
busybox sed -i 's/\/mnt\/sdcard\ 4/\/mnt\/sdcard\ 1/g' /data/dualboottmp/system/
etc/vold.fstab

echo ">>>>>>>>>>>>>>>>>>>>"
echo ">>>>>>>>>>>>>>>>>>>>Clean up"
echo ">>>>>>>>>>>>>>>>>>>>"
umount /data/dualboottmp/system
umount /data/dualboottmp/data
umount /data/dualboottmp/tmpboot
busybox rm -rf /data/dualboottmp

echo ">>>>>>>>>>>>>>>>>>>>"
echo ">>>>>>>>>>>>>>>>>>>>Done"
echo ">>>>>>>>>>>>>>>>>>>>"

This is what I get when I run the script.

C:\android-sdk-windows\platform-tools>adb shell
# cd /sdcard/dualboot
cd /sdcard/dualboot
# busybox sh dual-boot.sh
busybox sh dual-boot.sh
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>Create working directory
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>Back up /media to sdcard
>>>>>>>>>>>>>>>>>>>>
tar: removing leading '/' from member names
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>We delete partition 9 a few times
>>>>>>>>>>>>>>>>>>>>to make sure there is no Froyo
>>>>>>>>>>>>>>>>>>>>partition left. You can ignore
>>>>>>>>>>>>>>>>>>>>the message - Error: Partition doesn't exist
>>>>>>>>>>>>>>>>>>>>
Error: Partition doesn't exist.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>Move and resize media partition
>>>>>>>>>>>>>>>>>>>>
newfs_msdos: warning, /dev/block/mmcblk0p8 is not a character device
newfs_msdos: Skipping mount checks
newfs_msdos: trim 14 sectors from 7809838 to adjust to a multiple of 16
/dev/block/mmcblk0p8: 7807872 sectors in 121998 FAT32 clusters (32768 bytes/clus
ter)
bps=512 spc=64 res=32 nft=2 mid=0xf0 spt=16 hds=4 hid=0 bsec=7809824 bspf=954 rd
cl=2 infs=1 bkbs=2
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>Restore /media
>>>>>>>>>>>>>>>>>>>>
tar: can't remove old file media: Read-only file system
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>Create Froyo system and data partition
>>>>>>>>>>>>>>>>>>>>
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
90360 inodes, 361431 blocks
18071 blocks (5%) reserved for the super user
First data block=1
Maximum filesystem blocks=524288
45 block groups
8192 blocks per group, 8192 fragments per group
2008 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185
dual-boot.sh: line 47: tune2fs: not found
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
61696 inodes, 246718 blocks
12335 blocks (5%) reserved for the super user
First data block=0
Maximum filesystem blocks=4194304
8 block groups
32768 blocks per group, 32768 fragments per group
7712 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
dual-boot.sh: line 49: tune2fs: not found
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>Copy Nookie Froyo files
>>>>>>>>>>>>>>>>>>>>
mount: mounting /dev/block/mmcblk0p10 on /data/dualboottmp/data failed: Invalid
argument
u-boot.bin.stock exists. skip backup
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>Clean up
>>>>>>>>>>>>>>>>>>>>
umount: can't umount /data/dualboottmp/data: Invalid argument
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>Done
>>>>>>>>>>>>>>>>>>>>