mkinitrd -o initrd.img-2.6.16.11 /lib/modules/2.6.16.11
此时如果报错:
-bash: mkinitrd: command not found
就需要:apt-get install initrd-tools
报错:
find: warning: you have specified the -mindepth option after a non-option argument -type, but options are not positional (-mindepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
...*3
解决办法:
修改:
--- /usr/sbin/mkinitrd
- find /proc/scsi -type d -mindepth 1 -maxdepth 1 \
+ find /proc/scsi -mindepth 1 -maxdepth 1 -type d \
此命令会在/boot目录下生成initrd.img-2.6.15.6文件
第六步,更新Grub,输入如下命令:
update-grub