/********************************************************************** * mount: mounting proc on /proc failed: Device or resource busy * 說明: * 使用initramfs啟動buildroot搭建的文件系統,會導致proc掛載問題,proc * 已經在initramfs中進行了掛載,排查了switch_root后的文件系統,最終確定 * 引起報錯的是在/etc/inittab中,之前有懷疑是在/etc/fstab中。 * * 2018-7-17 深圳 寶安西鄉 曾劍鋒 *********************************************************************/ cat /etc/inittab [...省略] # Startup the system ::sysinit:/bin/mount -t proc proc /proc # 刪除這一行 ::sysinit:/bin/mount -o remount,rw / ::sysinit:/bin/mkdir -p /dev/pts ::sysinit:/bin/mkdir -p /dev/shm ::sysinit:/bin/mount -a ::sysinit:/bin/hostname -F /etc/hostname # now run any rc scripts [...省略]