A temporal root partition is required.
Prepare a partition to be mounted as ext4 root.
Here is my partition table:
/dev/sda1 /boot
/dev/sda2 (the ext4 root)
/dev/sda3 swap
/dev/sda4 / (temporal ext3 root)
- compile ext4 into kernel 2.6.28.2(or 2.6.28.whatever or any newer kernel)
- download e2fsprogs source from Debian lenny
- dpkg-source -x e2fsprogs_1.41.3-1.dsc
- cd e2fsprogs-1.41.3
- vi debian/control
delete any dbg package entry - vi debian/rules
go to # debug package stuff
add several lines to create debug folders
here are the "control" and "rules" I edited:control_and_rules.tgz - fakeroot debian/rules binary
- dpkg -i ../*.deb
- mkfs.ext4 /dev/sda2
- mount -t ext4 /dev/sda2 /mnt
- cd /mnt; mkdir boot mnt media proc
- rsync -avP --exclude "/boot" --exclude "/proc" --exclude "/mnt" --exclude "/media" / .
- vi /mnt/etc/fstab
change the / partition to /dev/sda2 and it's fs type to ext4 - vi /boot/grub/menu.lst
change default options:
kopt=root=/dev/sda4
to
kopt=root=/dev/sda2 rootfstype=ext4 - /usr/sbin/update-grub
- reboot and delete /dev/sda4 and it's done.