Topic: Forgot password

Hi!
How i can restore root password? I boot in single user mode? then do:

#mount -w /
mount: Mounting /dev/hda on / filed: Divece or resource busy
#

Re: Forgot password

I presume you installed ttylinux from a CD-ROM image you burned to CD-ROM and booted. You should boot the CD-ROM again and mount the hard drive partition. You can pick any sub-directory in the /mnt directory. In your post you are trying to mount the entire disk device. That doesn't work; you need to mount the ttylinux root partition, maybe /dev/hda1. In that case the mount command example would be:

     $ mount /dev/hda1 /mnt/flash

You will need to find the correct /dev/hda[1-8]. When successfully mounted, check the /etc directory:

     $ ls -l /mnt/flash/etc/

To see if it is the ttylinux root directory that you mounted: you should see the files named "ttylinux-build" and "ttylinux-target".

When booted from the CD-ROM the mount command would mount the hard drive ttylinux root partition on the booted RAM disk file system at /mnt/flash. Don't worry about the directory being named flash, it is just a name.

Then copy the original ttylinux /etc/passwd and /etc/shadow files from the booted RAM disk to the installed ttylinux on the hard drive:

     $ rm -f /mnt/flash/etc/passwd
     $ rm -f /mnt/flash/etc/shadow
     $ cp -a /etc/passwd /mnt/flash/etc/
     $ cp -a /etc/shadow /mnt/flash/etc/

Now, take out the CD-ROM and reboot the hard drive ttylinux.

Re: Forgot password

Thanks for the help!

$ mount /dev/hda1 /mnt/flash

You will need to find the correct /dev/hda[1-8].

Not working

$ mount /dev/hda /mnt/flash - OK

P.S. ttylinux 5.0

Re: Forgot password

I don't know ttylinux 5.0, but I think you may have mounted the CD-ROM, not a hard drive partition. What do you get with this command after having mounted the file system:

     $ ls -l /mnt/flash