Slackware TTY - that stupid penguin

This is a discussion on Slackware TTY - that stupid penguin within the Tech Board forums, part of the Community Boards category; Originally Posted by sean The particular computer in question that started this thread, however, is purely for my hobbyist-kernel-hacking. So ...

  1. #16
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by sean View Post
    The particular computer in question that started this thread, however, is purely for my hobbyist-kernel-hacking. So it frequently needs a reinstall -
    Not that I do any kernel hacking, but why would this lead to a reinstall? You do know you can use grub to select a kernel at boot time (and so always have access to a working kernel), right?

    When I use to do weird things, I just had a set of boot floppies (then later, a boot cd) with a console only repair set-up (vim, mc, rpm, chroot, etc.). If I did something to a system file, I backed it up first. Then if I couldn't boot, it was just a matter of using the rescue CD to mount the filesystem and swap the files back (or whatever). That'd also allow you to resolve any "mystery" there might be about how you wrecked the system -- which if you reinstall, all such evidence is gone.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  2. #17
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Not that I do any kernel hacking, but why would this lead to a reinstall?
    In theory, it shouldn't. But I only recently started doing it, and while I was going through the process of recompiling and running a vanilla kernel from scratch - I frequently did something wrong because I didn't understand it all and accidentally screwed it up. I'd call "make install" not really understanding everything it would do - and it would overwrite my lilo config file and thus - the option to boot into a working kernel. Now that I'm more familiar with the process and Lilo, it almost never happens.

  3. #18
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by sean View Post
    I'd call "make install" not really understanding everything it would do -
    Yeah, quite often when I make a kernel I will just use "make bzImage" then copy the kernel image (it's in arch/x86/boot/bzImage) into the boot directory and manually add lines to grub config (grub is much nicer and easier than lilo IMO, but if you are already getting comfortable with lilo the it doesn't make much dif, you can manually edit lilo's config too). So everything remains the way I want. If you also need some modules, you can do the same with them using "make modules" (instead of "make modules-install"). "make install" doesn't have any further significance.

    Oh and you have to use mkinitrd if your distro uses an intial ramdisk. But the whole affair doesn't take more than a couple of minutes.
    Last edited by MK27; 11-17-2009 at 03:41 PM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  4. #19
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Yeah that's what I started doing. My problem was that every half-decent tutorial did some things slightly differently and didn't explain any of their thinking - so I had to a ton of reading and playing before I got it.

  5. #20
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    In the olden days I had this same issue with the lilo.conf file and make install. Then, after about the 20th time I screwed myself up (I could still get to it via any boot disk and chroot to the filesystem, then run lilo) I read the manual on lilo.conf and the documentation about make install in the Linux kernel -- WOW, what a difference. You only have to make changes to your lilo.conf file to keep you other stuff protected -- that'd be don't name your kernel images either /boot/vmlinuz or /boot/vmlinuz.old and you never get a problem.

    I like /boot/vmlinuz.setup for the initial kernel image (the one that I put out there with the really big initrd.img too so that Justin Case can get back into my computer) and /boot/vmlinuz.orig for a ____WORKING____ kernel.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. IP mapped to tty port
    By lollobrigido in forum Linux Programming
    Replies: 6
    Last Post: 03-03-2008, 04:01 PM
  2. Stupid penguins
    By hk_mp5kpdw in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 03-14-2005, 11:25 PM
  3. Replies: 2
    Last Post: 12-09-2004, 02:59 PM
  4. Slackware?
    By Strut in forum Linux Programming
    Replies: 16
    Last Post: 02-22-2003, 12:10 PM
  5. Controlling terminal tty
    By pdstatha in forum C Programming
    Replies: 0
    Last Post: 04-02-2002, 03:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21