mount -o loop /boot initrd.img /initrd failure
Luis
lemsx1 at gmail.com
Sat Aug 19 02:35:31 UTC 2006
execute:
cd /tmp
mkdir initrd
cd initrd
cat /boot/initrd.img-`uname -r` | gzip -d | cpio -i
ls
your files will be shown.
This is NOT the right way to edit your initrd though.
On 8/18/06, Dave S <ubuntu at pusspaws.net> wrote:
> I am trying to mount my .boot/initrd.img file so I can view & modify it
>
> root at dave-comp:~#
> root at dave-comp:~# ls -al /dev/l
> log loop/ lp0
> root at dave-comp:~#
> root at dave-comp:~# cd /boot
> root at dave-comp:/boot# ls
> System.map-2.6.15-23-386 abi-2.6.15-25-386 config-2.6.17.7
> initrd.img-2.6.15-26-386 vmlinuz-2.6.15-23-386
> System.map-2.6.15-25-386 abi-2.6.15-26-386 grub
> initrd.img-2.6.17.7 vmlinuz-2.6.15-25-386
> System.map-2.6.15-26-386 config-2.6.15-23-386 initrd
> initrdstraight.img vmlinuz-2.6.15-26-386
> System.map-2.6.17.7 config-2.6.15-25-386 initrd.img-2.6.15-23-386
> memtest86+.bin vmlinuz-2.6.17.7
> abi-2.6.15-23-386 config-2.6.15-26-386 initrd.img-2.6.15-25-386 tmp
> root at dave-comp:/boot# mount -o loop /boot/initrd.img-2.6.15-26-386 /initrd
> ioctl: LOOP_CLR_FD: Device or resource busy
> mount: you must specify the filesystem type
> root at dave-comp:/boot#
> root at dave-comp:/boot# ls -al /dev/l
> log loop/ loop0 loop1 loop2 loop3 loop4 loop5 loop6 loop7 lp0
> root at dave-comp:/boot#
>
> I have also tried -t auto, -t ext2 etc all with the same error message, I have
> scoured google and tried gunzipping initrd.img first - same problem. I have
> tried mount -t cramfs -o loop /boot/initrd.img /initrd - same problem.
>
> All attempts seem to use up the allocation of loop devices immediately.
>
> Can anyone tell me how to mount /boot/initrd.img so I can view it ?
>
> Thanks in advance
>
> Dave
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
----)(-----
Luis Mondesi
*NIX Guru
Kiskeyix.org
"We think basically you watch television to turn your brain off, and
you work on your computer when you want to turn your brain on" --
Steve Jobs in an interview for MacWorld Magazine 2004-Feb
No .doc: http://www.gnu.org/philosophy/no-word-attachments.es.html
More information about the ubuntu-users
mailing list