root password

After changing update repo from 12.3 to 13.1 using YAST root password was not accepted. I don’t have CD/DVD and was not able to enter GRUB at least using these instructions https://en.opensuse.org/SDB:Recover_root_password#Set_root_password

You just changed the update repo. :’(
I guess now you know that does not work. Your system is now part 12.3 and part 13.1 and broken.

Maybe some one can lead you trough a way to fix it but my opinion is that is far easier to just reinstall and learn from your mistake.

Well just adding the 13.1 update repo wouldn’t break anything. But installing the updates could.

But at the moment I see nothing in the update repo really that could cause such a problem.

So have you tried adding “init=/bin/bash” to the boot options?
Press ‘e’ at the boot menu, search for a line starting with “linux” and append it at the end. Then press ‘F10’ to boot.
You should get to a text console then without having to enter any password. You should be able to reset your root passwd there.

On 2013-11-21 21:46, wolfi323 wrote:
>
> gogalthorp;2599976 Wrote:
>> You just changed the update repo. :’(
>> I guess now you know that does not work. Your system is now part 12.3
>> and part 13.1 and broken.
>>
> Well just adding the 13.1 update repo wouldn’t break anything. But
> installing the updates could.
>
> But at the moment I see nothing in the update repo really that could
> cause such a problem.

If the update was applied, there are two roads.

One, go ahead, change the other 3 repos, do a full dup - assuming the
system still runs.

If the system is broken, instead do an offline upgrade with the DVD.

And cross your fingers.

But none of them changes root’s password.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Thank you very much for all replies.

I just added the 13.1 update repo (actually I replaced the 12.3 with 13.1). I do NOT applied any update. But I used YAST2 to add that repo, after that I tried to add others using zypper, but as zypper reqires root I used sudo and pass failed. After that I tried to reboot and it failed again. I also tried pass from GUI, same.

I don’t see boot menu during boot and shift pressing also does not give menu. I have GRUB2. I do not have CD/DVD drive on machine.

During system boot I see error on kernel update fails. But system works 100% fine, I just can’t access root features.

BTW: I have a CRT monitor and /etc/default/grub is

# If you change this file, run 'grub2-mkconfig -o /boot/grub2/grub.cfg' afterwards to update
# /boot/grub2/grub.cfg.
GRUB_DISTRIBUTOR="openSUSE"


GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash=silent"
GRUB_CMDLINE_LINUX=""


# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"


# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console


# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480


# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true


# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"


# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GRUB_BACKGROUND=/boot/grub2/themes/openSUSE/background.png
GRUB_THEME=/boot/grub2/themes/openSUSE/theme.txt

On 2013-11-22 10:46, rafisv wrote:

> During system boot I see error on kernel update fails. But system works
> 100% fine, I just can’t access root features.

Surely you did something else you don’t remember now. There is a
procedure to create new root password. It is on the wiki somewhere - if
that is the problem.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I definitely do not do anything else, because I entered root pass to run YaST, changed one repo name and after that I run zupper from command promt using sudo and password failed.

Now during boot I don’t see any errors.

Can’t recore root pass using this procedure as boot menu is not displayed even if I press shift and hold it or press periodically beginning from BIOS. Keyboard looks like normal as I can enter BIOS by del
https://en.opensuse.org/SDB:Recover_root_password#Set_root_password

Is any key I can force GRUB terminal mode without changing /etc/default/grub?

No. You definitely need a Live image, boot from USB, mount the root fs of the install, chroot to it and then change root’s password.

On 2013-11-22 11:26, rafisv wrote:
>
> I definitely do not do anything else, because I entered root pass to run
> YaST, changed one repo name and after that I run zupper from command
> promt using sudo and password failed.

I’m absolutely sure you did something else at some moment. What, I can
not imagine.

You can use a live rescue system to change any file in the system. The
repos are defined in “/etc/zypp/repos.d/”, so you can edit that back to
12.3…

Or, reinstall.

Or, instead reinstall, upgrade to 12.3 or 13.1 (same or next version)
using the DVD offline method. /Might/ work.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

You have to comment out the line with GRUB_HIDDEN_TIMEOUT to see the menu (put a ‘#’ at the beginning).
Forcing the menu with ‘Shift’ only works if “GRUB_DISABLE_OS_PROBER=true” is set as well apparently.

So if you cannot login as root, you will definitely need a LiveCD or similar…

On 2013-11-22 12:36, wolfi323 wrote:
>
> rafisv;2600222 Wrote:
>>
>> GRUB_HIDDEN_TIMEOUT=0
>> GRUB_HIDDEN_TIMEOUT_QUIET=true
>>
> You have to comment out the line with GRUB_HIDDEN_TIMEOUT to see the
> menu (put a ‘#’ at the beginning).
> Forcing the menu with ‘Shift’ only works if
> “GRUB_DISABLE_OS_PROBER=true” is set as well apparently.

Mmm, right…

That’s not something that could happen just by changing a repository…
somebody did that change. I can not imagine how ??

> So if you cannot login as root, you will definitely need a LiveCD or
> similar…

Yep.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Used live flash and chroot. Problem solved thanks