change_root
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| change_root [2012/02/21 01:06] – typos excogitation | change_root [2012/02/23 00:59] (current) – [How to recover a broken rootfs or an unbootable bootimg] armelf | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== How to recover a broken rootfs or an unbootable bootimg ====== | ||
| + | |||
| + | DRAFT | ||
| + | |||
| + | Don't panic, there are solutions buried to go back on the right way, especially of if you have made [[backups|backups]] of your partitions. | ||
| + | |||
| + | This methods are necessary until a true bootloader like [[uboot|u-boot]] or GRUB will be ported on the AC100. | ||
| + | ===== Chroot ===== | ||
| + | |||
| no idea if someone else finds this useful ... in case: | no idea if someone else finds this useful ... in case: | ||
| Line 11: | Line 20: | ||
| - Unmount the partition you want to chroot to: | - Unmount the partition you want to chroot to: | ||
| - | | + | < |
| sudo umount / | sudo umount / | ||
| - | | + | </ |
| e.g. sudo umount / | e.g. sudo umount / | ||
| - mount that partition to /mnt: | - mount that partition to /mnt: | ||
| - | | + | < |
| sudo mount / | sudo mount / | ||
| - | | + | </ |
| - | e.g. sudo mount / | + | e.g. **sudo mount / |
| - mount additional stuff (dev/ | - mount additional stuff (dev/ | ||
| - | | + | < |
| sudo mount -o bind /dev /mnt/dev | sudo mount -o bind /dev /mnt/dev | ||
| sudo mount -o bind /sys /mnt/sys | sudo mount -o bind /sys /mnt/sys | ||
| sudo mount -t proc /proc /mnt/proc | sudo mount -t proc /proc /mnt/proc | ||
| - | | + | </ |
| - chroot | - chroot | ||
| - | | + | < |
| sudo chroot /mnt /bin/bash | sudo chroot /mnt /bin/bash | ||
| - | | + | </ |
| You can now tweak your system. (e.g. you can install additional stuff from the repositories, | You can now tweak your system. (e.g. you can install additional stuff from the repositories, | ||
| Line 46: | Line 55: | ||
| </ | </ | ||
| + | ==== Chroot from initramfs ==== | ||
| + | |||
| + | TODO based on initramfs of Ubuntu bootimg. | ||
| + | ===== Flash another kernel ===== | ||
| + | |||
| + | if for an unknow reason [[http:// | ||
| + | | ||
| + | < | ||
| + | abootimg -u / | ||
| + | </ | ||
| + | |||
| + | and download it back to your AC100 with [[putusb|putusb]] or [[nvflash|nvflash]], | ||
change_root.1329782814.txt.gz · Last modified: by excogitation
