Temat: ExtRoot nie bootuje z USB
Witam,
Zrobiłem 3 partycje na pendrivie USB:
root@OpenWrt:/mnt# fdisk -l
Disk /dev/sda: 4011 MB, 4011491328 bytes
124 heads, 62 sectors/track, 1019 cylinders
Units = cylinders of 7688 * 512 = 3936256 bytes
Disk identifier: 0x00010943
Device Boot Start End Blocks Id System
/dev/sda1 1 34 130665 82 Linux swap / Solaris
/dev/sda2 35 165 503564 83 Linux
/dev/sda3 166 1019 3282776 83 Linux/dev/sda2 chciałem przeznaczyć dla /overlay.
Mój fstab:
config 'global' 'automount'
option 'from_fstab' '1'
option 'anon_mount' '1'
config 'global' 'autoswap'
option 'from_fstab' '1'
option 'anon_swap' '0'
config 'mount'
option 'device' '/dev/sda2'
option 'enabled' '1'
option 'fstype' 'ext4'
option 'is_rootfs' '1'
option 'options' 'rw,sync'
option 'target' '/'
config 'swap'
option 'device' '/dev/sda1'
option 'enabled' '1'root@OpenWrt:/mnt# opkg list-installed
base-files - 42-r20728
block-extroot - 0.0.1-1
block-hotplug - 0.1.0-1
block-mount - 0.1.0-1
busybox - 1.15.3-2
crda - 1.1.0-2
dnsmasq - 2.52-2
dropbear - 0.52-4
e2fsprogs - 1.41.11-1
fdisk - 2.13.0.1-4
firewall - 1-10
hotplug2 - 1.0-beta-1
iptables - 1.4.6-2
iptables-mod-conntrack - 1.4.6-2
iptables-mod-nat - 1.4.6-2
iw - 0.9.19-1
kernel - 2.6.32.10-1
kmod-ath - 2.6.32.10+2010-03-24-5
kmod-ath9k - 2.6.32.10+2010-03-24-5
kmod-button-hotplug - 2.6.32.10-1
kmod-cfg80211 - 2.6.32.10+2010-03-24-5
kmod-crc-ccitt - 2.6.32.10-1
kmod-crc16 - 2.6.32.10-1
kmod-crypto-aes - 2.6.32.10-1
kmod-crypto-arc4 - 2.6.32.10-1
kmod-crypto-core - 2.6.32.10-1
kmod-fs-autofs4 - 2.6.32.10-1
kmod-fs-ext4 - 2.6.32.10-1
kmod-fs-mbcache - 2.6.32.10-1
kmod-input-core - 2.6.32.10-1
kmod-input-gpio-buttons - 2.6.32.10-1
kmod-input-polldev - 2.6.32.10-1
kmod-ipt-conntrack - 2.6.32.10-1
kmod-ipt-core - 2.6.32.10-1
kmod-ipt-nat - 2.6.32.10-1
kmod-ipt-nathelper - 2.6.32.10-1
kmod-leds-gpio - 2.6.32.10-1
kmod-mac80211 - 2.6.32.10+2010-03-24-5
kmod-nls-base - 2.6.32.10-1
kmod-ppp - 2.6.32.10-1
kmod-pppoe - 2.6.32.10-1
kmod-scsi-core - 2.6.32.10-1
kmod-tun - 2.6.32.10-1
kmod-usb-core - 2.6.32.10-1
kmod-usb-storage - 2.6.32.10-1
kmod-usb2 - 2.6.32.10-1
libblkid - 1.41.11-1
libc - 0.9.30.1-42
libext2fs - 1.41.11-1
libgcc - 4.3.3+cs-42
libiptc - 1.4.6-2
liblua - 5.1.4-6
liblzo - 2.03-3
libnl-tiny - 0.1-1
libopenssl - 0.9.8m-3
libpthread - 0.9.30.1-42
librt - 0.9.30.1-42
libuci - 12012009.5-1
libuci-lua - 12012009.5-1
libuuid - 1.41.11-1
libxtables - 1.4.6-2
lua - 5.1.4-6
luci - 0.9.0-1
luci-admin-core - 0.9.0-1
luci-admin-full - 0.9.0-1
luci-admin-mini - 0.9.0-1
luci-app-firewall - 0.9.0-1
luci-app-initmgr - 0.9.0-1
luci-cbi - 0.9.0-1
luci-core - 0.9.0-1
luci-http - 0.9.0-1
luci-i18n-english - 0.9.0-1
luci-ipkg - 0.9.0-1
luci-lmo - 0.9.0-1
luci-nixio - 0.9.0-1
luci-sgi-cgi - 0.9.0-1
luci-sys - 0.9.0-1
luci-theme-base - 0.9.0-1
luci-theme-openwrt - 0.9.0-1
luci-uci - 0.9.0-1
luci-uvl - 0.9.0-1
luci-web - 0.9.0-1
mountd - 0.1-1
mtd - 12
ntpclient - 2007_365-4
openvpn - 2.1.1-1
opkg - 513-2
ppp - 2.4.4-5
ppp-mod-pppoe - 2.4.4-5
swconfig - 5
tinyproxy - 1.8.0-1
uci - 12012009.5-1
udevtrigger - 106-1
uhttpd - 7
wireless-tools - 29-4
wpad - 20100309-1
zlib - 1.2.3-5Kierowałem się tym poradnikiem:
http://eko.one.pl/?p=openwrt-externalroot
Po reboocie, nadal startuje ze swojej pamięci.
root@OpenWrt:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=14744k)
tmpfs on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock3 on /overlay type jffs2 (rw,relatime)
mini_fo:/overlay on / type mini_fo (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda2 on / type ext4 (rw,sync,relatime,barrier=1,data=ordered)Co schrzaniłem?
USB Play Online (Huawei E173) + ExtRoot + Squid + Iptables