[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ttylinux:326] Running ttylinux-flash on a non ttylinux Linux host
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
> Booted up into ttylinux on my USB flash drive after that perfectly.
> 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
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
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>"
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
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.