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

Re: [ttylinux:326] Running ttylinux-flash on a non ttylinux Linux host

First of all, I apologize for the slew of posts. I wish there was an edit button.

Anyway, I've just tried to use ttylinux-installer instead of ttylinux-flash to install ttylinux into a USB flash drive, so that the installation includes a file system on the drive rather than a ramdisk. The installation process completed successfully, with my flash drive boot partition being /dev/sda1, and I also installed LILO in the mbr.

When I tried to boot up from this flash drive, I was able to get to the LILO prompt and select the sole ttylinux image, and the kernel loaded until it tried to open the root device, after which I got the following kernel panic:

VFS: Cannot open root device "801" or unknown-block(8,1)
Please append a correct "root=" boot option; here are the available partitions:
0b00         1048575 sr0 driver: sr
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
Pid: 1, comm: swapper Not tainted #1

This is a similar error as the ones I get when I try to copy a working Linux disk image into a flash drive. Is it a case of the USB device not being detected as /dev/sda1 yet before the kernel tries to open it as the root device? How can this be solved?

On Friday, March 1, 2013 2:45:03 PM UTC+8, galapogos wrote:
I just had an idea. Is it possible to not use a ramdisk with ttylinux on a USB flash drive? If I'm able to install the root file system directly in a ext2 partition in my flash drive, I won't need to even run init, but can simply boot up to a shell, bypassing all the messages and login. Will that work?

In the ttylinux documentation under 3.4.5 manual installation at http://www.ttylinux.net/Documents/multi/node25.html there is a section on installing ttylinux to boot with file system on a hard drive. I've done that as well as the 3.4.6, ignoring timezone and dialup networking information. I'm however unsure of how I can run lilo to write to my flash drive while I'm booted up from the ttylinux CDROM. Also, the lilo.conf I get after following those instructions appear to be the one in the earlier compressed root file system with the %TTYLINUX_BOOT_DEV% and %TTYLINUX_ROOT_DEV% rather than the one with /dev/sda. Is that right?

On Friday, March 1, 2013 12:50:31 PM UTC+8, galapogos wrote:

On Friday, March 1, 2013 12:26:06 PM UTC+8, djerome wrote:
On 02/28/13 20:58, galapogos wrote:
> OK, turns out it needs to be /mnt/flash and /dev/sdd.
So, like I said about exactly precise, even I missed that...

> However, after that I got another error message saying LILO isn't in
> the PATH. I'm not using LILO on my Ubuntu so I had to boot up from a
> ttylinux CD-ROM, mount the CD-ROM, and run the install script, which
> worked!
> Booted up into ttylinux on my USB flash drive after that perfectly.
> Thanks!
> However, I have a few more questions...
> 1. I wish to change LILO options in lilo.conf. I tried doing this then
> running lilo again, but I get the following error message:
> Fatal: raid_setup: stat("%TTYLINUX_BOOT_DEV%")
> How do I rectify this?
Ooo, I think that is not a good idea. The lilo.conf that was used to put
the lilo boot
loader code into the boot sector of the flash drive was built and used
by the
ttylinux-flash script; it is on the flash drive, not in the live RAM
disk system. Mount
the flash drive at /mnt/flash and see the /mnt/flash/boot/lio.conf file;
is the file you want to change. The you can run lilo from the command
line, like:

lilo -C /mnt/flash/boot/lilo.conf

This is scary. I do not expect it to work. There is a better description,
it is section "3. Lilo Method" here:
Thanks for the quick reply. I did that, and it worked.

> 2. I wish to suppress all boot up message, including the kernel
> printks. Is this possible with the stock kernel by appending something
> in LILO?
Change this line (preserving the actual <UUID> string)

       append = "ro ttylinux-flash=<UUID>"

to be

      append = "quiet ro ttylinux-flash=<UUID>"

Thanks. This sorta worked as well, except there are still some LILO messages that need cleaning up, and there are some other messages which I believe are from initrd that are appearing, stuff like "file systems checked ......... [ OK]" and other info messages which I wish to remove as well. Basically I'm trying to boot up without any messages at all, all the way till the shell.

> 3. I wish to auto-login, is this possible?
That would involve opening the initrd file system, making some changes
I can't think of now, and then remaking the initrd file system. I really
do not
know about making an automatic login.
OK, hopefully someone else has some knowledge of this? Would this be specific to ttylinux, or will the procedure be similar to other distributions?

Once again, thanks! Really appreciate the help so far.