Re: grub root=/dev/hd$v$n not root=LABEL=/ why

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2003-06-25 at 10:31, Pat LaVarre wrote:

> How do I discover what shell I am using to interpret
> my linuxrc?

See first line of file

> > From: Jan Hudec <bulb () ucw ! cz>
> > ...
> > cramfs images ...
> > should be possible to mount them on loopback.
> 
> Elaborate please?  I see:
> 
> $ sudo mount /boot/initrd-2.4.20-pel.img /mnt/loop0 -o
> loop=/dev/loop0
> mount: you must specify the filesystem type
> $
> $ sudo mount /boot/initrd-2.4.20-pel.img /mnt/loop0 -t
> cramfs -o loop=/dev/loop0
> mount: wrong fs type, bad option, bad superblock on
> /dev/loop0,
>        or too many mounted file systems
> $

The FS is a compressed ext2 (on a RH8.0 box anyway).  Try this...

# gzip -dc /boot/initrd-2.4.18-27.8.0.img > /tmp/foo
# mount -t ext2 -o loop /tmp/foo /mnt/tmp
# ls /mnt/tmp/
bin  dev  etc  lib  linuxrc  loopfs  proc  sbin  sysroot
# head -1 /mnt/tmp/linuxrc
#!/bin/nash

# umount /mnt/tmp

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux