[G1 General] radiochickenwax:
I'm getting better, but still far from a full grok. Thanks for the encouragement and the recovery image! It's good to see you're still around.

I don't understand your situation with the ebi1. It sounded awhile back (http://xdaforums.com/showpost.php?p=5539912&postcount=17) like you had bricked your g1. Whatvever happened with that?

Please try to read a manual on using fdisk. It's a bit beyond my capacity right now as it's late, and I'm tired. "fdisk" comes with android's busybox I believe, and it's a worthwhile skill to learn if you plan to continue partitioning disks in the future.

Here's a link to the manual: http://linuxcommand.org/man_pages/fdisk8.html

That one's kinda sparse, so please look through http://www.google.com/search?q=fdisk+manual

As to the scripts, I'm just inlining them below. Copy and save them all to /sdcard/scripts/

You might see a slight increase in speed using partitions instead of an image for debian's rootfs if you haven't done this already. Now as to actually building the rootfs with deb-bootstrap... you'll need to use your pre-existing debian for that. You have one installed still?

dboot.sh

#dboot.sh

# mount sdcard's 3rd partition containing rootfs
# change mmcblk0p3 to wherver you installed your rootfs

mount /dev/block/mmcblk0p3 /system/sd/debian/debian

# change mmcblk0p4 to wherever you installed your swap
swapon /dev/block/mmcblk0p4

# export some environment variables

export mnt=/system/sd/debian/debian
export PATH=/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root

# Fix the sources.list for apt

echo 'deb http://ftp.us.debian.org/debian lenny main contrib non-free' >$mnt/etc/apt/sources.list

# Fix the resolv.conf

echo 'nameserver 4.2.2.2' >$mnt/etc/resolv.conf

# Mount Everything

mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys

# Mount Android on Debian

mount --bind /sqlite_stmt_journals $mnt/sqlite_stmt_journals
mount --bind /system $mnt/system
mount --bind /data $mnt/data
mount --bind /cache $mnt/cache
mount --bind /sdcard $mnt/sdcard

echo ' Debian Is Now Ready '
sysctl -w net.ipv4.ip_forward=1

echo " Type exit to end session "
# We now enter the Debian environment using chroot.
chroot $mnt /bin/bash -c "/etc/init.d/ssh start"
echo ' SSH Established '
sleep 1
echo ' '
echo ' To Access Debian, Open ConnectBot And Sign In To SSH As root@localhost '

dmove.sh

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cp /sdcard/scripts/dboot.sh /system/bin/debian
chmod 755 /system/bin/debian

dfirstboot.sh

#dboot.sh

# We first export some environment variables

export mnt=/system/sd/debian/debian
export PATH=/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root

# Fix the sources.list for apt

echo 'deb http://ftp.de.debian.org/debian lenny main' >$mnt/etc/apt/sources.list

# Fix the resolv.conf

echo 'nameserver 4.2.2.2' >$mnt/etc/resolv.conf

# Mount Everything

mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys

# Mount Android on Debian

mount -o bind /sqlite_stmt_journals $mnt/sqlite_stmt_journals
mount -o bind /system $mnt/system
mount -o bind /data $mnt/data
mount -o bind /cache $mnt/cache
mount -o bind /sdcard $mnt/sdcard

sleep 1

echo ' Debian Is Now Ready '

sleep 1

echo " Starting init process "

sleep 1

echo " INIT: Debian booting....."

sleep 1

echo " Running Linux Kernel "
sysctl -w net.ipv4.ip_forward=1
sleep 1
echo " Type exit to end session "
echo " "