justlinux.com
Sat, 17-May-2008 00:58:55 GMT
internet.com
Forum: Registered Users: 72237, Online: 306
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
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
internet.commerce
Be a Commerce Partner
SMS Gateway
PDA Phones & Cases
Online Universities
Televisions
Laptops
Send Text Messages
Desktop Computers
Prepaid Phone Card
Boat Donations
Web Design

Access FREE HP High-Availability Solutions for Exchange 2007 Tools:
Whitepaper:
Backup and Recovery Best Practices for Microsoft Exchange Server 2007 with HP
Whitepaper:
Best Practices for HP Servers and HP Enterprise Virtual Array in a Microsoft Exchange
Whitepaper:
Optimizing HP Servers with Microsoft SQL Server 2008



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Microsoft Article: 7.0, Microsoft's Lucky Version?
Microsoft Article: Hyper-V--The Killer Feature in Windows Server 2008
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Windows Server 2008
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES