justlinux.com
Sat, 20-Mar-2010 06:36:53 GMT
internet.com
Forum: Registered Users: 73709, Online: 184
nhfs Here you can view your subscribed threads, work with private messages and edit your profile and preferences Registration is free! Calendar Find other members Frequently Asked Questions Search Home Home

Help File Library: Bailing Out of Password Trouble with tomsrtbt


Written By: Willis (sonic.tooth@verizon.net)

So you just installed your brand-spanking new Linux system with the newest kernel, etc..

The installer asks you to create a root password--first you try your dog's name, and the system rejects it as being too insecure, so you sit down and pick eight random letters and numbers and punch them in.

Congratulations you have a new root password! Which you will promptly forget. Now your new Linux system has become an intelligent start up program.

Or, say you accidentally set your run level to 0 or set the wrong vga text buffer; both of these would render your system either inoperable or very hard to use.

That's where a boot and root disk comes in handy. Specifically, Tomsrtbt.

This disk fits more then any other rescue disk in the world on it. You can boot into your system and change anything without having to login, or go through the boot up process, either of which could be the problem preventing you from using your system.

In this Help File I will show you how to create this disk in both Windows and Linux and how to use it to fix two common problems.

First you have to go to the website and download the software; you want either the tar.gz (for installation on a Linux system) or the .zip one (for installation on a DOS or Windows computer). We're going to concentrate on the Linux side of this software utility.

Installing it in Linux is not diffcult. One thing to note is that when I make a reference to [tomsrtbt version] I am referring to the file you just downloaded, as the version numbers and file names can change.

  1. gunzip [tomsrtbt version].tar.gz
    
    That will unzip the file.
  2. tar -zxf [tomsrtbt version].tar
    
    That will extract the files to a new directory called [tomsrtbt version] For a fast method try tar -zxvf [tomsrtbt version].tar.gz but I can't guarantee that will work
  3. Go into the new directory
    cd [tomsrtbt version]
    
  4. Then change your user to root using su and then your root password when it asks for it
  5. Type
    ./install.s
    
    It will prompt you for a blank floppy stick one in the drive and it will copy all the files to it and make it bootable.

Now you're finished with the installation. With your new tomsrtbt disk you can fix all kinds of problems.

You Forgot Your Root Password

  1. Try to remember
  2. Insert your tomrtbt disk and boot up your machine
  3. If it boots to your Linux system then go into your BIOS and set it to boot to "a:" first. You can access your BIOS control panel on the startup, when it says something like "Press DEL for setup"
  4. Watch as tomsrtbt loads it self (may take some time)
  5. Login as root (it will tell you the password)
  6. Now to mount your Linux system, type
    vi /etc/fstab
    
  7. Add a line at the very bottom by pressing INS or "I" that reads
    /dev/hd(drive letter and partition number) /linux auto defaults 0 0
    
    For example:
    /dev/hda1  /linux  auto  defaults    0  0
    
  8. Press ESC and then type
    :wq
    
    and Enter.
  9. Now type
    mount /linux
    
  10. Hopefully if you type
    cd /linux
    
    you should be in your computer
  11. Now type
    vi /linux/etc/passwd
    
  12. Go to the part where it says root:(some stuff). Press x on the characters after the root: prompt until it is gone and then type
    :wq
    
  13. Now reboot and you can login as root with no password
  14. DON'T FORGET TO EDIT /etc/passwd again and put something back into the password file if there is still nothing after root:.

You Set init Level to 0

  1. Do everything up to step 10 in the previous section.
  2. Type
    vi /etc/initab
    
  3. Scroll down to where it says id:0(or 6):initdefault:.
  4. Change the 0 or 6 to another number. Read right above this line for the descriptions of the numbers.
  5. Type
    :wq
    
    reboot and you're done.

If your computer keeps booting into tomsrtbt every time you reboot, take the disk out of the drive and then reboot. tomsrtbt loads itself into RAM so you can take the disk out after you initially login.


internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
internet.commerce
Be a Commerce Partner












The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers