Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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)
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
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.
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!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.