# mkdir /tmp/root # mount /dev/sdc2 /tmp/root # cd /tmp/root/etc # mv fstab fstab.orig # cp fstab.orig fstab # vi fstab : : # diff -c fstab.orig fstab -sh: diff: not found # cat fstab # /etc/fstab: static file system information. # #/dev/md1 / xfs defaults,noatime 0 0 proc /proc proc defaults 0 0 /dev/md10 swap swap defaults 0 0 /dev/md0 /boot ext3 defaults,noatime 0 0 #/dev/sda4 /mnt xfs defaults,noatime 0 0 #
# ls -R /lib/modules/2.6.16.16-arm1/ /lib/modules/2.6.16.16-arm1/: kernel modules.ieee1394map modules.seriomap modules.alias modules.inputmap modules.symbols modules.ccwmap modules.isapnpmap modules.usbmap modules.dep modules.pcimap /lib/modules/2.6.16.16-arm1/kernel: drivers fs net /lib/modules/2.6.16.16-arm1/kernel/drivers: usb /lib/modules/2.6.16.16-arm1/kernel/drivers/usb: class core host input storage /lib/modules/2.6.16.16-arm1/kernel/drivers/usb/class: usblp.ko /lib/modules/2.6.16.16-arm1/kernel/drivers/usb/core: usbcore.ko /lib/modules/2.6.16.16-arm1/kernel/drivers/usb/host: ehci-marvell-hcd.ko ohci-hcd.ko uhci-hcd.ko /lib/modules/2.6.16.16-arm1/kernel/drivers/usb/input: usbhid.ko /lib/modules/2.6.16.16-arm1/kernel/drivers/usb/storage: usb-storage.ko /lib/modules/2.6.16.16-arm1/kernel/fs: fat msdos nls ntfs vfat /lib/modules/2.6.16.16-arm1/kernel/fs/fat: fat.ko /lib/modules/2.6.16.16-arm1/kernel/fs/msdos: msdos.ko /lib/modules/2.6.16.16-arm1/kernel/fs/nls: nls_ascii.ko nls_cp857.ko nls_cp874.ko nls_iso8859-3.ko nls_cp1250.ko nls_cp860.ko nls_cp936.ko nls_iso8859-4.ko nls_cp1251.ko nls_cp861.ko nls_cp949.ko nls_iso8859-5.ko nls_cp1255.ko nls_cp862.ko nls_cp950.ko nls_iso8859-6.ko nls_cp737.ko nls_cp863.ko nls_iso8859-1.ko nls_iso8859-7.ko nls_cp775.ko nls_cp864.ko nls_iso8859-13.ko nls_iso8859-9.ko nls_cp850.ko nls_cp865.ko nls_iso8859-14.ko nls_koi8-r.ko nls_cp852.ko nls_cp866.ko nls_iso8859-15.ko nls_koi8-ru.ko nls_cp855.ko nls_cp869.ko nls_iso8859-2.ko nls_koi8-u.ko /lib/modules/2.6.16.16-arm1/kernel/fs/ntfs: ntfs.ko /lib/modules/2.6.16.16-arm1/kernel/fs/vfat: vfat.ko /lib/modules/2.6.16.16-arm1/kernel/net: 802 appletalk llc /lib/modules/2.6.16.16-arm1/kernel/net/802: p8022.ko psnap.ko /lib/modules/2.6.16.16-arm1/kernel/net/appletalk: appletalk.ko /lib/modules/2.6.16.16-arm1/kernel/net/llc: llc.ko #なんで、hid まであるかな。
HDD の lib/module のほうがいいかなと思いつつ、 initrd 内の lib/module をコピー
# (cd /lib; tar cf - modules )|(cd /tmp/root/lib/;tar xvf -) : : #さあ、もう忘れ物はないかな?
|
← debian 化(7)initrd の /linuxrc の編集 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ debian 化(9)debian 起動 |