LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-24-2023, 08:31 AM   #16
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,605

Rep: Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548


Same thread has been cross-posted here: //forums.fedoraforum.org/showthread.php?330908-cannot-open-access-to-console-the-root-account-is-locked

 
Old 07-24-2023, 11:50 PM   #17
slayer21
LQ Newbie
 
Registered: Jul 2023
Posts: 26

Original Poster
Rep: Reputation: 0
I wrote fedora to the usb and when I boot from the usb it gives me this error.. https://forums.fedoraforum.org/attac...9&d=1690260382 I feel like throwing the pc out of the window
 
Old 07-25-2023, 12:41 AM   #18
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Maybe you can boot from another drive, mount all your partitions, and bind mount /sys, /proc, and /dev, and then chroot into your mounted file sytem. Then you should be able to correct permissions and set root password, etc.
 
Old 07-25-2023, 01:06 AM   #19
slayer21
LQ Newbie
 
Registered: Jul 2023
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by slac-in-the-box View Post
Maybe you can boot from another drive, mount all your partitions, and bind mount /sys, /proc, and /dev, and then chroot into your mounted file sytem. Then you should be able to correct permissions and set root password, etc.
.I tried the usb on another laptop and it works normally so there is a problem with my laptop.Does the problem with Grub that I wrote above play a role?Or does it have to do with the usbguard that I put in fedora and creates a problem on the usb? https://forums.fedoraforum.org/attac...5&d=1690126897
 
Old 08-02-2023, 08:15 AM   #20
slayer21
LQ Newbie
 
Registered: Jul 2023
Posts: 26

Original Poster
Rep: Reputation: 0
nobody can find a solution
 
Old 08-02-2023, 08:42 AM   #21
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,587
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Quote:
Originally Posted by slayer21 View Post
.Or does it have to do with the usbguard that I put in fedora and creates a problem on the usb?
Now that sounds like a reasonable suggestion! I have just googled https://www.kernel.org/doc/Documenta...horization.txt and it would indeed give a result similar to this.

The /sys directory is transient (it's not really a directory at all but a window into the kernel disguised as a directory tree). Consequently to have something like this set permanently, it would have to be reset on a per-session basis by a startup script (probably rc.local). Can you recall editing such a script? If so, re-editing it might give you a way to fix the problem if you could just once get the system up and running!

Could you boot from a cdrom if usb doesn't work?

Last edited by hazel; 08-02-2023 at 08:46 AM.
 
Old 08-03-2023, 04:12 AM   #22
slayer21
LQ Newbie
 
Registered: Jul 2023
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hazel View Post
Now that sounds like a reasonable suggestion! I have just googled https://www.kernel.org/doc/Documenta...horization.txt and it would indeed give a result similar to this.

The /sys directory is transient (it's not really a directory at all but a window into the kernel disguised as a directory tree). Consequently to have something like this set permanently, it would have to be reset on a per-session basis by a startup script (probably rc.local). Can you recall editing such a script? If so, re-editing it might give you a way to fix the problem if you could just once get the system up and running!

Could you boot from a cdrom if usb doesn't work?
the usb does not work, it keeps giving an invalid image message when I boot from usb.I tried a different usb and again the same thing came up and after that when I enter windows the usb says write protected. I tried cd and boot but it didn't work because it gives me the error with grub ,Minimal BASH-like line editing is supported.I gave some commands that I found on the internet and it gave me these results,I don't know if they help us in any way https://ibb.co/ww1RXYx
 
Old 08-03-2023, 05:42 AM   #23
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,587
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
I can't help you any further. I don't use GRUB and don't understand it. Over to someone else!
 
Old 08-03-2023, 06:10 AM   #24
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,524

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
If you are still getting the error about unlocking the root account, the solution is at the link posted in post 15 at the fedora site. You need to boot the USB and chroot to the system installed. There is a link on that page which explains how to do that.

The image you posted in your last post shows sdb3 as a vfat partition (EFI partition) and the filesystems on sdb2 and sdb3 are unknown. You might try running fsck on those partitions from the USB if they are Linux partitions/filesystems. Those are the only partitions shown so what are they? You indicate you have windows and Linux installed, are they on the same drive or another drive?
 
Old 08-03-2023, 07:03 AM   #25
slayer21
LQ Newbie
 
Registered: Jul 2023
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
If you are still getting the error about unlocking the root account, the solution is at the link posted in post 15 at the fedora site. You need to boot the USB and chroot to the system installed. There is a link on that page which explains how to do that.

The image you posted in your last post shows sdb3 as a vfat partition (EFI partition) and the filesystems on sdb2 and sdb3 are unknown. You might try running fsck on those partitions from the USB if they are Linux partitions/filesystems. Those are the only partitions shown so what are they? You indicate you have windows and Linux installed, are they on the same drive or another drive?
the issue is that my usb is giving me errors of the type invalid image.I don't know if it's due to the usbguard that I put in fedora and I couldn't delete it afterwards.I tried to boot with cd and it throws me to the black screen with the grub message. I am impressed that no one here is aware of this.Is this problem so unique?Can I do any action from within windows?Where in windows I enter through the bios because no operation system starts automatically so that I can choose
 
Old 08-03-2023, 12:51 PM   #26
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,524

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
Angry

Quote:
the issue is that my usb is giving me errors of the type invalid image
That is complete unrelated to the original post and title of your thread. I would suggest you start a new thread with the information about "invalid image" when booting from your USB. People who have familiarity with that type problem are not going to look at a thread with the title you have.

I would suggest you look into the possibility of "usbguard" causing the problem. The link below to Red Hat gives a detailed explanation of its use.

https://access.redhat.com/documentat...using-usbguard

Reading through post 5, that is the problem which you caused yourself and why you should avoid taking actions you do not understand, or at least keep notes of exactly what you did so you can undo them later.
 
Old 08-03-2023, 06:57 PM   #27
slayer21
LQ Newbie
 
Registered: Jul 2023
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
That is complete unrelated to the original post and title of your thread. I would suggest you start a new thread with the information about "invalid image" when booting from your USB. People who have familiarity with that type problem are not going to look at a thread with the title you have.

I would suggest you look into the possibility of "usbguard" causing the problem. The link below to Red Hat gives a detailed explanation of its use.

https://access.redhat.com/documentat...using-usbguard

Reading through post 5, that is the problem which you caused yourself and why you should avoid taking actions you do not understand, or at least keep notes of exactly what you did so you can undo them later.
the initial problem was the thread title.then when i tried to boot with usb the problem with the usb appeared .the article you posted is useless in the sense that i can't even get into fedora.not even grub comes out to choose an operating system
 
Old 08-04-2023, 04:49 AM   #28
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,524

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
I posted the link to show what is required to install the software (usbguard) and how to configure it so you could check against your notes to see if you configured it correctly. usbguard is probably what is keeping you from booting your usb according to the site I linked. The initial problem solution is explained in the link in post 15 which you cannot do as your usbguard software is preventing it. If you have a DVD player you might try that.
 
Old 08-05-2023, 08:46 AM   #29
slayer21
LQ Newbie
 
Registered: Jul 2023
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
I posted the link to show what is required to install the software (usbguard) and how to configure it so you could check against your notes to see if you configured it correctly. usbguard is probably what is keeping you from booting your usb according to the site I linked. The initial problem solution is explained in the link in post 15 which you cannot do as your usbguard software is preventing it. If you have a DVD player you might try that.
I tried it with dvd but it takes me to the grub problem : Minimal BASH like line editing is supported.So it doesn't work.Can I through windows solve this problem?
 
Old 08-06-2023, 05:29 AM   #30
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,524

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
Quote:
Can I through windows solve this problem?
A default windows system is unable to read much less write to a Linux filesystem so, no. There is 3rd party software which might be able to access Linux from windows but I don't know what it might be or how well it might work. Have you tried to chroot as explained in the link posted in post 15 above. If so, what happened. You should be able to do that if you use the same method you did to post the ls commands from Grub in your earlier post. ls simply gives information and doesn't do/change anything. The chroot commands can make changes.
 
  


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
Cannot open access to console, the root account is locked in emergency mode LEON71 Linux - Desktop 2 03-16-2021 08:21 AM
cannot open access to console the root account is locked (parrot sec is) AIM5657 Linux - Newbie 4 09-26-2018 05:37 PM
root account can access the internet, the other account can only access google omizt Linux - Newbie 101 02-13-2012 02:22 PM
Why is my common account can't open Terminal in XFCE4 but root account? notsay Slackware 4 08-18-2007 11:29 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:48 PM.

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