LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-04-2018, 03:11 AM   #1
navneethr
Member
 
Registered: Jan 2010
Posts: 76
Blog Entries: 1

Rep: Reputation: 16
fc23 starting in non gui mode after installing some rpms..


Hello,
I am using fc23..Accidently I deleted some files.
I then downloaded some rpms related to getting back deleted files..testdisk
After running the rpms associated with it ...now my system just boots up but goes in the text mode for login.
Logging in is possible this way but its of no use really.
When I try to use startx command there is also no success
I booted through the recovery link but no success.
Can someone let me know how this can be resolved.
 
Old 10-04-2018, 06:43 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 20,665

Rep: Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079
Quote:
Originally Posted by navneethr View Post
Hello,
I am using fc23..Accidently I deleted some files.
I then downloaded some rpms related to getting back deleted files..testdisk After running the rpms associated with it ...now my system just boots up but goes in the text mode for login. Logging in is possible this way but its of no use really. When I try to use startx command there is also no success I booted through the recovery link but no success.
Can someone let me know how this can be resolved.
No idea, since you give us no details at all. Just saying "deleted files", and "no success" tells us nothing; without error messages or information, there's nothing we can tell you. We don't know what you deleted, how you deleted it, or how to get you back where you were.

Personally, since your Fedora installation is old, I'd just reload the latest version and move forward. Will probably take you less time to install new than it will to hunt and peck, and try to get RPM's installed piecemeal.
 
Old 10-04-2018, 10:14 AM   #3
navneethr
Member
 
Registered: Jan 2010
Posts: 76
Blog Entries: 1

Original Poster
Rep: Reputation: 16
True...the fc23 installation had everything set up to run my applications. I dont want to load them for a new fc installation like fc28.
Also I lost quite a lot of important files during the delete command. Would like to get them back if possible via some other rpms that I could install.


Sorry...I should have given more information...

I used the rm -rf *View in my home folder...I was a normal user. It deleted the folder View and all its contents which had some important files that I was working on.

Nothing was wrong with the system after that...All was fine.

After I trying to run dnf install on a list of rpms related to geting back the deleted files I went into text mode login.

The system does not give me any error..It just goes into text login mode.
I get an error saying unable to open display as I was running the gedit program in my batch file when I login in text mode.


Anyways after reading on the net a little ...I used dnf history and have realized the ID's from 179 to 184 were installed yesterday.
This means I have to uninstall everything till the ID 179
Please see dnfOct10-03.txt

Also please see the output when I tried to undo for 184 via the command dnf history undo 184 in the dnfUndo184.txt

Also please see the info on 184 after running the

dnf history info 184 command in the dnf184Info.txt

For some reason I am unable to rollback to the 179 ID before which everything was fine.


I am cut pasting the contents of the files just in case its easier to see this way rather than download and open the files..

=========== dnf10-03.txt ====================

184 | | 2018-10-03 15:51 | E, U | 33 **
183 | | 2018-10-03 15:51 | Update | 1
182 | | 2018-10-03 15:50 | E, U | 9 EE
181 | | 2018-10-03 15:49 | E, U | 26
180 | | 2018-10-03 15:48 | E, U | 29
179 | | 2018-10-03 15:48 | E, U | 8


=========================================

~]$ cat dnfUndo184.txt

Last metadata expiration check performed 2 days, 23:10:57 ago on Mon Oct 1 20:16:29 2018.
Undoing transaction 184, from Wed Oct 3 15:51:12 2018
** Erase control-center-1:3.18.1-1.fc23.x86_64 (unknown)
** Upgraded dbus-1:1.10.0-1.fc23.x86_64 (unknown)
Upgrade 1:1.10.14-1.fc23.x86_64 (unknown)
** Upgraded dbus-libs-1:1.10.0-1.fc23.x86_64 (unknown)
Upgrade 1:1.10.14-1.fc23.x86_64 (unknown)
** Erase dbus-x11-1:1.10.0-1.fc23.x86_64 (unknown)
** Erase gdm-1:3.18.0-1.fc23.x86_64 (unknown)
Erase gnome-initial-setup-3.18.0-1.fc23.x86_64 (unknown)
** Erase gnome-session-3.18.1.2-1.fc23.x86_64 (unknown)
** Erase gnome-session-wayland-session-3.18.1.2-1.fc23.x86_64 (unknown)
** Erase gnome-session-xsession-3.18.1.2-1.fc23.x86_64 (unknown)
Erase gnome-shell-3.18.1-1.fc23.x86_64 (unknown)
Erase gnome-shell-extension-alternate-tab-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-apps-menu-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-background-logo-3.18.0-1.fc23.noarch (unknown)
Erase gnome-shell-extension-common-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-launch-new-instance-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-places-menu-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-window-list-3.18.1-1.fc23.noarch (unknown)
** Erase gnome-terminal-3.18.1-1.fc23.x86_64 (unknown)
** Erase ibus-1.5.11-1.fc23.x86_64 (unknown)
** Erase ibus-gtk2-1.5.11-1.fc23.x86_64 (unknown)
** Erase ibus-gtk3-1.5.11-1.fc23.x86_64 (unknown)
** Erase ibus-hangul-1.5.0-5.fc23.x86_64 (unknown)
** Erase ibus-kkc-1.5.22-3.fc23.x86_64 (unknown)
** Erase ibus-libpinyin-1.7.2-1.fc23.x86_64 (unknown)
** Erase ibus-libzhuyin-1.7.4-2.fc23.x86_64 (unknown)
** Erase ibus-m17n-1.3.4-19.fc23.x86_64 (unknown)
Erase ibus-qt-1.3.3-8.fc23.x86_64 (unknown)
** Erase ibus-rawcode-1.3.2-6.fc23.x86_64 (unknown)
** Erase ibus-setup-1.5.11-1.fc23.noarch (unknown)
Erase ibus-typing-booster-1.2.13-1.fc23.noarch (unknown)
** Erase ibus-wayland-1.5.11-1.fc23.x86_64 (unknown)
** Erase mutter-3.18.1-4.fc23.x86_64 (unknown)
Erase pulseaudio-gdm-hooks-7.0-1.fc23.x86_64 (unknown)
No package ibus-setup-0:1.5.11-1.fc23.noarch available.
========================================
$ cat dnfInfo184.txt
Last metadata expiration check performed 2 days, 23:25:40 ago on Mon Oct 1 20:16:29 2018.
Transaction ID : 184
Begin time : Wed Oct 3 15:51:12 2018
Begin rpmdb : 1614:4dc41096c077db47ada851d2e17e8621ebdd2459
User : navneeth <navneeth>
Return-Code : ** Aborted **
Transaction performed with:
Installed dnf-1.1.3-1.fc23.noarch (unknown)
Installed rpm-4.13.0-0.rc1.3.fc23.x86_64 (unknown)
Packages Altered:
** Erase control-center-1:3.18.1-1.fc23.x86_64 (unknown)
** Upgraded dbus-1:1.10.0-1.fc23.x86_64 (unknown)
Upgrade 1:1.10.14-1.fc23.x86_64 (unknown)
** Upgraded dbus-libs-1:1.10.0-1.fc23.x86_64 (unknown)
Upgrade 1:1.10.14-1.fc23.x86_64 (unknown)
** Erase dbus-x11-1:1.10.0-1.fc23.x86_64 (unknown)
** Erase gdm-1:3.18.0-1.fc23.x86_64 (unknown)
Erase gnome-initial-setup-3.18.0-1.fc23.x86_64 (unknown)
** Erase gnome-session-3.18.1.2-1.fc23.x86_64 (unknown)
** Erase gnome-session-wayland-session-3.18.1.2-1.fc23.x86_64 (unknown)
** Erase gnome-session-xsession-3.18.1.2-1.fc23.x86_64 (unknown)
Erase gnome-shell-3.18.1-1.fc23.x86_64 (unknown)
Erase gnome-shell-extension-alternate-tab-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-apps-menu-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-background-logo-3.18.0-1.fc23.noarch (unknown)
Erase gnome-shell-extension-common-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-launch-new-instance-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-places-menu-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-window-list-3.18.1-1.fc23.noarch (unknown)
** Erase gnome-terminal-3.18.1-1.fc23.x86_64 (unknown)
** Erase ibus-1.5.11-1.fc23.x86_64 (unknown)
** Erase ibus-gtk2-1.5.11-1.fc23.x86_64 (unknown)
** Erase ibus-gtk3-1.5.11-1.fc23.x86_64 (unknown)
** Erase ibus-hangul-1.5.0-5.fc23.x86_64 (unknown)
** Erase ibus-kkc-1.5.22-3.fc23.x86_64 (unknown)
** Erase ibus-libpinyin-1.7.2-1.fc23.x86_64 (unknown)
** Erase ibus-libzhuyin-1.7.4-2.fc23.x86_64 (unknown)
** Erase ibus-m17n-1.3.4-19.fc23.x86_64 (unknown)
Erase ibus-qt-1.3.3-8.fc23.x86_64 (unknown)
** Erase ibus-rawcode-1.3.2-6.fc23.x86_64 (unknown)
** Erase ibus-setup-1.5.11-1.fc23.noarch (unknown)
Erase ibus-typing-booster-1.2.13-1.fc23.noarch (unknown)
** Erase ibus-wayland-1.5.11-1.fc23.x86_64 (unknown)
** Erase mutter-3.18.1-4.fc23.x86_64 (unknown)
Erase pulseaudio-gdm-hooks-7.0-1.fc23.x86_64 (unknown)
Attached Files
File Type: txt dnfInfo184.txt (3.4 KB, 1 views)
File Type: txt dnfOct10-03.txt (480 Bytes, 1 views)
File Type: txt dnfUndo184.txt (3.1 KB, 1 views)
 
Old 10-04-2018, 01:25 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 20,665

Rep: Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079
Quote:
Originally Posted by navneethr View Post
True...the fc23 installation had everything set up to run my applications. I dont want to load them for a new fc installation like fc28.
...which doesn't matter at all, since (at some point) your system WILL die, and you will be forced to reload, and set up your system again. So why not get it over with?
Quote:
Also I lost quite a lot of important files during the delete command. Would like to get them back if possible via some other rpms that I could install.
Probably not any longer, since you're continuing to use the system, and shoving RPM's around. So you've probably overwritten a lot of those sectors. Don't you have backups???
Quote:
Sorry...I should have given more information...

I used the rm -rf *View in my home folder...I was a normal user. It deleted the folder View and all its contents which had some important files that I was working on. Nothing was wrong with the system after that...All was fine.

After I trying to run dnf install on a list of rpms related to geting back the deleted files I went into text mode login.
Again, you don't say WHAT RPM's you removed, and if you were in your home folder and deleted files, then that has nothing to do with your actual SYSTEM. Chances are, you blew away some desktop config files. Create another user ID from the console, and try to log in with that.
Quote:
The system does not give me any error..It just goes into text login mode. I get an error saying unable to open display as I was running the gedit program in my batch file when I login in text mode. Anyways after reading on the net a little ...I used dnf history and have realized the ID's from 179 to 184 were installed yesterday. This means I have to uninstall everything till the ID 179
Please see dnfOct10-03.txt

Also please see the output when I tried to undo for 184 via the command dnf history undo 184 in the dnfUndo184.txt Also please see the info on 184 after running the dnf history info 184 command in the dnf184Info.txt For some reason I am unable to rollback to the 179 ID before which everything was fine. I am cut pasting the contents of the files just in case its easier to see this way rather than download and open the files..
You've erased a LOT of system files, which you COULD NOT HAVE DONE if you were your 'regular' user, in your home folder. You're omitting something here, but it doesn't matter. At this point, you're still have the same two choices from before:
  • Load RPM's one at a time (and all of their dependencies too), which will take hours, and leave you with a shaky system, and your files will still be missing.
  • Load a fresh version of Fedora in about 20 minutes, and restore your files from backup
Your choice.
 
Old 10-05-2018, 03:12 AM   #5
navneethr
Member
 
Registered: Jan 2010
Posts: 76
Blog Entries: 1

Original Poster
Rep: Reputation: 16
Thanks for your suggestions.
Unfortunately.I did not take backups...A very foolish thing I did..The fc23 installation had everything set up for tomcat, eclipse, jdk, mysql, apache, svn etc and several other installations...Hence would like to do my best to retrieve the fc23 as it may also give me a chance to retrieve my lost files which were quite large in number..

However would like to point out that after I deleted the files by mistake as a normal user...I ran some dnf commands as root on some rpms which I thought would help me restore the lost files..

Please see below some info from the dnf history commands.

This is the output I got after running dnf history undo 184
This was the last ID as per dnf history which aborted.

====
Last metadata expiration check performed 2 days, 23:10:57 ago on Mon Oct 1 20:16:29 2018.
Undoing transaction 184, from Wed Oct 3 15:51:12 2018
** Erase control-center-1:3.18.1-1.fc23.x86_64 (unknown)
** Upgraded dbus-1:1.10.0-1.fc23.x86_64 (unknown)
Upgrade 1:1.10.14-1.fc23.x86_64 (unknown)
** Upgraded dbus-libs-1:1.10.0-1.fc23.x86_64 (unknown)
Upgrade 1:1.10.14-1.fc23.x86_64 (unknown)
** Erase dbus-x11-1:1.10.0-1.fc23.x86_64 (unknown)
** Erase gdm-1:3.18.0-1.fc23.x86_64 (unknown)
Erase gnome-initial-setup-3.18.0-1.fc23.x86_64 (unknown)
** Erase gnome-session-3.18.1.2-1.fc23.x86_64 (unknown)
** Erase gnome-session-wayland-session-3.18.1.2-1.fc23.x86_64 (unknown)
** Erase gnome-session-xsession-3.18.1.2-1.fc23.x86_64 (unknown)
Erase gnome-shell-3.18.1-1.fc23.x86_64 (unknown)
Erase gnome-shell-extension-alternate-tab-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-apps-menu-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-background-logo-3.18.0-1.fc23.noarch (unknown)
Erase gnome-shell-extension-common-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-launch-new-instance-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-places-menu-3.18.1-1.fc23.noarch (unknown)
Erase gnome-shell-extension-window-list-3.18.1-1.fc23.noarch (unknown)
** Erase gnome-terminal-3.18.1-1.fc23.x86_64 (unknown)
** Erase ibus-1.5.11-1.fc23.x86_64 (unknown)
** Erase ibus-gtk2-1.5.11-1.fc23.x86_64 (unknown)
** Erase ibus-gtk3-1.5.11-1.fc23.x86_64 (unknown)
** Erase ibus-hangul-1.5.0-5.fc23.x86_64 (unknown)
** Erase ibus-kkc-1.5.22-3.fc23.x86_64 (unknown)
** Erase ibus-libpinyin-1.7.2-1.fc23.x86_64 (unknown)
** Erase ibus-libzhuyin-1.7.4-2.fc23.x86_64 (unknown)
** Erase ibus-m17n-1.3.4-19.fc23.x86_64 (unknown)
Erase ibus-qt-1.3.3-8.fc23.x86_64 (unknown)
** Erase ibus-rawcode-1.3.2-6.fc23.x86_64 (unknown)
** Erase ibus-setup-1.5.11-1.fc23.noarch (unknown)
Erase ibus-typing-booster-1.2.13-1.fc23.noarch (unknown)
** Erase ibus-wayland-1.5.11-1.fc23.x86_64 (unknown)
** Erase mutter-3.18.1-4.fc23.x86_64 (unknown)
Erase pulseaudio-gdm-hooks-7.0-1.fc23.x86_64 (unknown)
No package ibus-setup-0:1.5.11-1.fc23.noarch available.
 
Old 10-05-2018, 06:11 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 20,665

Rep: Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079Reputation: 5079
Quote:
Originally Posted by navneethr View Post
Thanks for your suggestions.
Unfortunately.I did not take backups...A very foolish thing I did
Then you have lost your files. Move forward.
Quote:
The fc23 installation had everything set up for tomcat, eclipse, jdk, mysql, apache, svn etc and several other installations...Hence would like to do my best to retrieve the fc23 as it may also give me a chance to retrieve my lost files which were quite large in number.. However would like to point out that after I deleted the files by mistake as a normal user...I ran some dnf commands as root on some rpms which I thought would help me restore the lost files..
AGAIN: after doing this, you most likely overwrote those files; YOU CANNOT RECOVER THEM. And saying "ran some dnf commands" tells us nothing.
Quote:
Please see below some info from the dnf history commands. This is the output I got after running dnf history undo 184 This was the last ID as per dnf history which aborted.
Right; you posted this before. And again, you have removed a LOT of system files, and you *STILL* have the same two options as before:
  1. Load all the missing RPM's one by one
  2. Reinstall latest Fedora
Pick one. Your files are gone, and you can't recover them, because you didn't have backups.
 
Old 10-06-2018, 02:13 AM   #7
navneethr
Member
 
Registered: Jan 2010
Posts: 76
Blog Entries: 1

Original Poster
Rep: Reputation: 16
Thank you for your suggestions...I appreciate the time and effort you have given me... Best Wishes and Have a good day.
 
Old 10-11-2018, 07:15 PM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,483

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
If you want to recover the deleted files, don't use the same drive any further. The more you use the drive, the more you overwrite the deleted files!

Connect the drive to a different system. From that system, use 'foremost' to carve out the deleted files. It might take a while to learn foremost. But it's worth it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing Oracle or Running OUI in Command Line Mode instead of GUI devUnix Linux - General 1 09-19-2013 09:30 PM
Having a problem starting CentOS 6 in GUI mode Nitesh Vashisht Linux - Newbie 11 12-28-2012 07:30 PM
starting BLFS in GUI mode by default mohit.jain Linux From Scratch 3 11-29-2006 04:45 AM
GUI based application for Installing RPMs for Red Hat Linux 9? AskMe Linux - Software 3 07-29-2004 07:16 AM
starting into text mode after installing NVIDIA driver kaega2 Linux - Hardware 2 09-30-2003 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration