I'm sure this problem has been posted before...

Discussion in 'all things UNIX' started by Mr. Y, May 21, 2013.

Thread Status:
Not open for further replies.
  1. Mr. Y

    Mr. Y Registered Member

    Joined:
    Jan 11, 2006
    Posts:
    257
    I accidentally trashed my Mint hard drive.
    So I pulled out an old Ubuntu hard drive to use- BUT I CAN'T remember the log-in.

    How do I get around this log-in problem?

    Thank you ahead of time!
     
  2. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    8,695
    In grub menu, press e to edit.
    Append in the kernel line init=/bin/bash.
    Boot in runlevel 1.
    Check if / is mounted as rw (with df), if not then remount:
    mount -o remount rw /
    Change to relevant user with su - <name>.
    Run passwd command to change password.
    Change password as you see fit.
    Reboot and you're good.

    That's one possibility.

    Mrk
     
  3. Mr. Y

    Mr. Y Registered Member

    Joined:
    Jan 11, 2006
    Posts:
    257
    Thank you! I will give it a try
     
Loading...
Thread Status:
Not open for further replies.