root filesystems on a bootable USB CDROM

root filesystems on a bootable USB CDROM

Post by Jo » Fri, 27 Jun 2003 10:26:40



Hello,

I am attemting to install a machine that only has a USB CDROM
attached.  I compiled and burned a 2.5.72 kernel image with all the
necessary drivers.  The CD boots fine and asks for a root filesystem
floppy.  I created a root filesystem image on a second CD.  At the
prompt, I replace the kernel image CD with the root filesystem CD.
The kernel complains that it cannot find the filesystem at sector 0 on
fd0.  I need to somehow get it to look at sr0, the USB CDROM device.
Does anyone have any idea how to go about this?  I tried using rdev to
change the root device, but that didn't seem to work (could be
operator error).  I also tried burning the kernel image and rootfs on
the same CD, using rdev to provide a rootfs offset to the kernel, but
that did not seem to work either.  I tried using lilo to setup a
bootdisk by first creating an environment using /dev/ram, copying it
to a file, and mounting it over /dev/loop, but lilo didn't cooperate.

Any documentation pointers and/or ideas would be extremely appreciated
- I am knee deep in coasters.  I have looked into the bootdisk howto
among others and did not find a suitable solution.

Thanks in advance.

 
 
 

root filesystems on a bootable USB CDROM

Post by Nico Kadel-Garci » Fri, 27 Jun 2003 21:41:40



> Hello,

> I am attemting to install a machine that only has a USB CDROM
> attached.  I compiled and burned a 2.5.72 kernel image with all the
> necessary drivers.  The CD boots fine and asks for a root filesystem
> floppy.  I created a root filesystem image on a second CD.  At the
> prompt, I replace the kernel image CD with the root filesystem CD.
> The kernel complains that it cannot find the filesystem at sector 0 on
> fd0.  I need to somehow get it to look at sr0, the USB CDROM device.
> Does anyone have any idea how to go about this?  I tried using rdev to
> change the root device, but that didn't seem to work (could be
> operator error).  I also tried burning the kernel image and rootfs on
> the same CD, using rdev to provide a rootfs offset to the kernel, but
> that did not seem to work either.  I tried using lilo to setup a
> bootdisk by first creating an environment using /dev/ram, copying it
> to a file, and mounting it over /dev/loop, but lilo didn't cooperate.

> Any documentation pointers and/or ideas would be extremely appreciated
> - I am knee deep in coasters.  I have looked into the bootdisk howto
> among others and did not find a suitable solution.

> Thanks in advance.

Take the disk out. Install the OS on another machine, and put the disk back.

Also, *do not* use the latest bleeding edge kernels unless you are
prepared to bleed. We appreciate the guys who take the cuts and blunt
the sharp bits for the rest of us, but most of us don't have that many
bandaids.

 
 
 

root filesystems on a bootable USB CDROM

Post by Byron A Je » Fri, 27 Jun 2003 21:55:59




>Hello,

>I am attemting to install a machine that only has a USB CDROM
>attached.  I compiled and burned a 2.5.72 kernel image with all the
>necessary drivers.  The CD boots fine and asks for a root filesystem
>floppy.  I created a root filesystem image on a second CD.  At the
>prompt, I replace the kernel image CD with the root filesystem CD.
>The kernel complains that it cannot find the filesystem at sector 0 on
>fd0.  I need to somehow get it to look at sr0, the USB CDROM device.
>Does anyone have any idea how to go about this?

It doesn't. That mechanism is solely for a floppy root.

Quote:>  I tried using rdev to
>change the root device, but that didn't seem to work (could be
>operator error).

Nope. It doesn't work.

Quote:>  I also tried burning the kernel image and rootfs on
>the same CD, using rdev to provide a rootfs offset to the kernel, but
>that did not seem to work either.  I tried using lilo to setup a
>bootdisk by first creating an environment using /dev/ram, copying it
>to a file, and mounting it over /dev/loop, but lilo didn't cooperate.

The tool that you need is the Initial ramdisk, which is designed precisely
for this purpose. The initial ramdisk is a filesystem (which can be compressed)
that is loaded along with the kernel by the bootloader. The kernel will mount
the initrd after booting, and will execute a program/script named linuxrc if
it exists in the root directory of the initrd.

If you want to see all of this in action, simply boot any existing distribution
CDROM. Slackware, RedHat, gentoo, and especially KNOPPIX all use this technique
to get going.

Quote:

>Any documentation pointers and/or ideas would be extremely appreciated
>- I am knee deep in coasters.  I have looked into the bootdisk howto
>among others and did not find a suitable solution.

Well my confusion is why you are trying to craft this by hand? If the kernel
recognizes and maps the USB CDROM as /dev/sr0, then any distribution worth
its salt will pick it up upon boot.

The final element that you failed to inform us: what exactly are you trying
to install. That info would be a big help.

BAJ

 
 
 

root filesystems on a bootable USB CDROM

Post by Jo » Sat, 28 Jun 2003 07:50:09





> >Hello,

> >I am attemting to install a machine that only has a USB CDROM
> >attached.  I compiled and burned a 2.5.72 kernel image with all the
> >necessary drivers.  The CD boots fine and asks for a root filesystem
> >floppy.  I created a root filesystem image on a second CD.  At the
> >prompt, I replace the kernel image CD with the root filesystem CD.
> >The kernel complains that it cannot find the filesystem at sector 0 on
> >fd0.  I need to somehow get it to look at sr0, the USB CDROM device.
> >Does anyone have any idea how to go about this?

> It doesn't. That mechanism is solely for a floppy root.

> >  I tried using rdev to
> >change the root device, but that didn't seem to work (could be
> >operator error).

> Nope. It doesn't work.

> >  I also tried burning the kernel image and rootfs on
> >the same CD, using rdev to provide a rootfs offset to the kernel, but
> >that did not seem to work either.  I tried using lilo to setup a
> >bootdisk by first creating an environment using /dev/ram, copying it
> >to a file, and mounting it over /dev/loop, but lilo didn't cooperate.

> The tool that you need is the Initial ramdisk, which is designed precisely
> for this purpose. The initial ramdisk is a filesystem (which can be compressed)
> that is loaded along with the kernel by the bootloader. The kernel will mount
> the initrd after booting, and will execute a program/script named linuxrc if
> it exists in the root directory of the initrd.

> If you want to see all of this in action, simply boot any existing distribution
> CDROM. Slackware, RedHat, gentoo, and especially KNOPPIX all use this technique
> to get going.

> >Any documentation pointers and/or ideas would be extremely appreciated
> >- I am knee deep in coasters.  I have looked into the bootdisk howto
> >among others and did not find a suitable solution.

> Well my confusion is why you are trying to craft this by hand? If the kernel
> recognizes and maps the USB CDROM as /dev/sr0, then any distribution worth
> its salt will pick it up upon boot.

> The final element that you failed to inform us: what exactly are you trying
> to install. That info would be a big help.

> BAJ

I need to craft this by hand (using 2.5) because the installation
machine contains a large RAID array with 2 TB of disk space and I
cannot get a normal distribution such as Debian and/or RedHat to
install.  The 2.4 limit is 2 TB and some of the distros are limited to
1 TB (ascertained through experimentation).
 
 
 

root filesystems on a bootable USB CDROM

Post by mjt » Sun, 29 Jun 2003 22:09:43



> Take the disk out. Install the OS on another machine, and put the disk
> back.

> Also, *do not* use the latest bleeding edge kernels unless you are
> prepared to bleed. We appreciate the guys who take the cuts and blunt
> the sharp bits for the rest of us, but most of us don't have that many
> bandaids.

.... and ensure detection of the target machine's is successful,
or satisfy the configuration manually :)

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Michael J. Tobler: motorcyclist, surfer,  #    Black holes result
 skydiver, and author: "Inside Linux",     #   when God divides the  
 "C++ HowTo", "C++ Unleashed"              #     universe by zero

 
 
 

1. INSTALL: (FAQ?)-Disappearing CDROM and non bootable roots!

I posted an earlier message and received the appropriate assistance.

However, now when I boot off of my media

        (created with the following commands:
        mkisofs -o /fs02/OpenBSD-3.1-sparc.iso -T -l -L -V "OpenBSD31SPARC" -r /fs02/sparc_inst/sparc64
        mksunbootcd -d -v /fs02/OpenBSD-3.1-sparc.iso floppy31.fs floppy31.fs floppy31.fs floppy31.fs floppy31.fs
)

Well the floppy image that comes with 3.1 doesn't have CD support, and the
miniroot isn't bootable.

So what's an SA to do?

2. 3c905 (Boomarang) support in 2.1.x

3. Possible to have root filesystem from cdrom?

4. How to mount nfs from "net" boot floppy

5. boot/mount root filesystem with cdrom

6. C Compiler Internals, Libraries, assembler etc.

7. How can I separate root filesystem and /usr filesystem

8. Desktop doesnt fit into screen

9. root vs.non-root filesystem space

10. only root can mount /dev/cdrom on /mnt/cdrom

11. mount error: mount only root can mount /dev/cdrom on cdrom

12. strange root permissions on cdrom root dir

13. mount error: mount only root can mount /dev/cdrom on cdrom