|
|
我用Gentoo linux, 我想在USB硬盘安装和启动linux,所以我必须得修改initrd
我已经将Gentoo linux 安装在USB硬盘廖,然后用光盘livecd启动,进行如下操作:
mount /dev/sda8 /mnt/gentoo ***加载root分区
mount /dev/sda6 /mnt/gentoo/boot ***加载boot分区
chroot /mnt/gentoo /bin/bash
我修改initrd.img.gz的步骤:
cp /boot/initrd.img.gz /tmp/initrd.img.gz
cd /tmp
gunzip initrd.img.gz
mkdir initrd
mount -o loop initrd.img initrd ****失败
===〉提示信息:
ioctl: LOOP_CLR_FD: Device or resource buys
mount: you must specify the filesystem type
按提示要求指定filesystem
mount -t ext2 -o loop imitrd.img initrd ***再失败
===〉提示信息:
VFS: Can't find an ext2 filesystem on dev loop2
mount: wrong fs type, bad option, bad superblock on /dev/loop2,
or too many mounted file systems
(could this be the IDE device where you in fact use ide-scsi so that sr0 or sda or so is needed?)
我试着用usbfs格式:
mount -t usbfs -o loop initrd.img initrd ***成功,但……
ls initrd
得到如下文件列表===〉001 devices
就是没有initrd所包含的文件,因此改不了linuxrc
怎么回事??????? |
|