LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-06-2018, 10:53 PM   #1
Daveed
LQ Newbie
 
Registered: Aug 2018
Posts: 3

Rep: Reputation: Disabled
Forgot my Linux 18.2 password


Well, here it is. I have a macBook Pro running Yosemite 10.10.5. I have partitioned my hard drive to load Linux 18.2. Everything went well until after a couple months i tried to get back on it and I forgot my password. I went through the sequence: reboot, press esc after the white screen turns off, press e, scroll down and remove ro ...... handoff... line and replace it with rw init=/bin/bash and then press F10. Then I entered passwd and when prompted I simply pressed a. when asked again I entered a again. (to keep it simple)...All this with no success since it is repetitively goes back to ( i don't exactly remember the term now) something like root: none.... Then I enter exit and it switches to Mac. I try again and then it does the whole thing until the moment I press F10 the whole screen goes blank (dark). No command to change this, only holding the shutdown button...
Any input? Should I attempt to reload Linux? I tried to start anew by eliminating the partition named diskOs5 but it says it cannot do that since it journaled. i cannot seem to disable this.
Really, all I want is to get back on linux 18.2
Thanks,
Daveed
 
Old 08-06-2018, 11:37 PM   #2
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Rep: Reputation: 58
don't worry i'm using it. i'll give it to you when i'm done.
 
Old 08-06-2018, 11:43 PM   #3
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Rep: Reputation: 58
(i hope you didn't encrypt linux drive)

Your apple's Sierra OS has plenty of BSD unix commands (even chroot), but i don't explain how.

Your easiest route is to boot off a rescue disk (anonymous unix login). Once logged in you can do any number of things to effect a change in password. The first step of which is to mount(1) the disk so you have access to it. From there you can chroot to the (disk inside apple), then run typical commands to specify password (being root you'll not be required to have old one, depending on options maybe)
 
Old 08-06-2018, 11:44 PM   #4
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Rep: Reputation: 58
weigh the above with how long it takes you personally to achieve those goals (get rescue disk, use rescue disk) againt the time it takes you personally to re-install the OS of preference
 
Old 08-07-2018, 01:45 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
X-LFS, you know you can edit posts, right?
no need to post 3 in a row in less than 10min.
and your first reply would have been better discarded, no?

but i agree, it could be that the password asked for is the disk encryption password.
really hard (impossible) to get around that if forgotten. otherwise, what would be the point of encryption.

Last edited by ondoho; 08-07-2018 at 01:46 AM.
 
Old 08-11-2018, 03:45 PM   #6
Daveed
LQ Newbie
 
Registered: Aug 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Well, I am so sorry but after many days... I still cannot make sense out of what is being said here. Not that people are not trying but my tech knowledge is more step by step. ( I am not as young as I used to be...) thank you all for putting your words here.
To my knowledge , I have not encrypted anything. Still at this point, I think my only solution now maybe to erase everything ( after a solid back-up that is ) and start anew... Unless you can direct me to a post that explains it all.... I do not want to prolong this post much longer. I do appreciate people's input though. Thanks again!
 
Old 08-11-2018, 04:49 PM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Boot to a install or rescue disk (search for that here on LQ or on the 'net -- I don't have the know-how to share).
I just read some step-by-step instructions on another post, but I'm not finding it now. Essentially, once the 'puter is booted to the rescue disk, you'll be able to set the password on the installed Linux instance.

Maybe someone will post better instructions here...but what I'm remembering was a post in the last day or so.

PS: #4 has a point. If you haven't used the 'puter in so long that you've forgotten the password, maybe reinstall would be quickest...surely your last backup would be sufficient.

Last edited by scasey; 08-11-2018 at 04:52 PM.
 
Old 08-12-2018, 10:18 PM   #8
Daveed
LQ Newbie
 
Registered: Aug 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Well, thanks X-LFS 2010, scasey and ondoho! This is more help than I could have just by myself! Rescue disk may be a go... we'll let you know...
 
Old 08-13-2018, 06:34 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
If you've got Internet and can download a disc image, I strongly recommend SystemRescueCD. It's got loads of useful tools in it. Burn it to a disc, boot from it, then follow the step-by-step instructions in post #3.

Last edited by hazel; 08-13-2018 at 06:37 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
forgot root password of linux? Shahid nx Linux - Newbie 1 07-10-2012 11:58 AM
forgot my linux username and password kumarajai86 Red Hat 3 01-26-2009 12:04 PM
Forgot password Suse Linux 10 hhhhhh Linux - Software 9 06-03-2008 04:49 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
I forgot both my username and password for Linux mse100% Linux - Security 5 01-22-2007 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration