LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-23-2021, 04:07 AM   #1
Lisareaves
LQ Newbie
 
Registered: Apr 2021
Posts: 9

Rep: Reputation: Disabled
Unhappy I deleted everything by accident. cannot log in to desktop


SO my problem is this.

I was promoted to fix 2 broken packages in the synaptic, i was unsure of the the packages so i deleted the (big mistake)

When i logged into my computer i got the error message of zero disk space left. Usually i would delete some old kernals to fix this but i could not delete them because broken packages would not allow it.

So now when i turn on my computer it comes up with the usual log in

'' please unlock disk sda3_crypt

i enter my usual password and it takes me to another screen which shows

''unable to launch cinnamon- session- cinnamon X session ---
cinnamon-session-cinnamon not found: falling back to default session

there is an okay button to click and then i just get a black screen with the cursor

Can i recover everything i had saved on my desktop? I really need to recover this :-(

I messed up
 
Old 04-23-2021, 04:16 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Try to log in via a virtual console (Ctrl+Alt+F3), then
Code:
sudo apt-get -f install
 
Old 04-23-2021, 04:44 AM   #3
Lisareaves
LQ Newbie
 
Registered: Apr 2021
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thanks for the reply

at what stage do i bash this command? Ctrl+Alt+F3
 
Old 04-23-2021, 04:47 AM   #4
Lisareaves
LQ Newbie
 
Registered: Apr 2021
Posts: 9

Original Poster
Rep: Reputation: Disabled
Whatever i try i get this screen

''unable to launch cinnamon- session- cinnamon X session ---
cinnamon-session-cinnamon not found: falling back to default session
 
Old 04-23-2021, 05:44 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by Lisareaves View Post
at what stage do i bash this command? Ctrl+Alt+F3
Before you log in.
 
Old 04-23-2021, 05:59 AM   #6
Lisareaves
LQ Newbie
 
Registered: Apr 2021
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
Before you log in.
error: can't find command 'sudo' :-(
 
Old 04-23-2021, 06:23 AM   #7
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
What is your distribution? If you can log in as root (the superuser) then you don't need sudo.
 
Old 04-23-2021, 06:58 AM   #8
Lisareaves
LQ Newbie
 
Registered: Apr 2021
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
What is your distribution? If you can log in as root (the superuser) then you don't need sudo.


Yes i am the only user, i have a USB with mint on, if i install will it bring back my files or totally wipe them and make new? Sorry i am not very tech savvy
 
Old 04-23-2021, 09:41 AM   #9
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
Quote:
Originally Posted by Lisareaves View Post
error: can't find command 'sudo' :-(
Hold your horses.
What happens when you enter the key combination Ctrl-Alt-F3 - do you get to a text interface login prompt?
If so, log in as a normal user, with your normal credentials.
 
Old 04-24-2021, 06:10 AM   #10
Lisareaves
LQ Newbie
 
Registered: Apr 2021
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Hold your horses.
What happens when you enter the key combination Ctrl-Alt-F3 - do you get to a text interface login prompt?
If so, log in as a normal user, with your normal credentials.
sorry for the slow reply

Ctrl-Alt-F3 brings up GNU GRUB

*Ubuntu
advanced options for Ubuntu
System set up

option fro C for commands and E for Edit the commands before booting

Thanks for your help
 
Old 04-24-2021, 06:55 AM   #11
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
When at GRUB menu, under "Advanced options for Ubuntu" you should have an entry for booting in recovery mode. Try it.
 
Old 04-24-2021, 07:02 AM   #12
Lisareaves
LQ Newbie
 
Registered: Apr 2021
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
When at GRUB menu, under "Advanced options for Ubuntu" you should have an entry for booting in recovery mode. Try it.
From recovery mode i get some options like fix broken packages

There is one pop up that says i must get back into read only mode..............

But this below is the message i get when i try to boot up in recovery mode

''unable to launch cinnamon- session- cinnamon X session ---
cinnamon-session-cinnamon not found: falling back to default session

I feel like i have deleted everything??

Thanks for your help
 
Old 04-24-2021, 07:43 PM   #13
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 335

Rep: Reputation: Disabled
Quote:
Originally Posted by Lisareaves View Post
Can i recover everything i had saved on my desktop? I really need to recover this
Probably.

Perhaps a better question is why can you not recover "everything I had saved on my desktop" from your enternal backup.

If you do not have an external hard drive, then go out and get an external drive as at least as big as the internal HDD before you read any further. aka NOW!

By the way, keep your external drive up to date.

Quote:
i enter my usual password and it takes me to another screen which shows

''unable to launch cinnamon- session- cinnamon X session ---
cinnamon-session-cinnamon not found: falling back to default session

there is an okay button to click and then i just get a black screen with the cursor
At this stage type

Code:
ls
If your computer responds with an alphabet list, then all is good. Your information is still there and can be copied to your newly acquired external drive and it just a matter of copying your data to the external dive.

Edit to add. If your computer comes back with an alphabet list try

Code:
 ls /home
Your computer should then list your data. end edit.

Once the data is copied to the new external drive (which could take hours.... how many depends upon many things) you simply need delete one of your files.

If not the computer does not respond with an alphabet list, you have a big problem.

Last edited by quickbreakfast; 04-24-2021 at 08:41 PM.
 
Old 04-24-2021, 08:04 PM   #14
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 335

Rep: Reputation: Disabled
Quote:
Originally Posted by Lisareaves View Post
I feel like i have deleted everything??
I reckon your root partition is full. Not that you have deleted everything.

Deleting everything would be a response to an instruction you gave the computer.

When you fix this problem, I suggest creating a separate /home partition....... Which I'll help with after you have your data on an external drive.
 
Old 04-27-2021, 01:26 AM   #15
Lisareaves
LQ Newbie
 
Registered: Apr 2021
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by quickbreakfast View Post
I reckon your root partition is full. Not that you have deleted everything.

Deleting everything would be a response to an instruction you gave the computer.

When you fix this problem, I suggest creating a separate /home partition....... Which I'll help with after you have your data on an external drive.
Thank you so much for your reply. I will follow your advice. What you explain is clear and reads exactly as my problem.
In lockdown right now so struggling to get an external hardrive :-/

But once i do get it i will update you here :-)

this '' I reckon your root partition is full. Not that you have deleted everything.''

I think you are correct as it usually says disk space running low after an update but this time it said zero disk space.
(i usually just delete some old kernels to resolve this)

Ok let's try! forever grateful
 
  


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
Accident deleted log file in server edwardkhong2012 Linux - Newbie 2 05-07-2012 09:38 PM
deleted video group by accident ncsuapex Slackware 5 04-15-2006 08:18 AM
Deleted ls by accident cake81 Linux - Newbie 4 01-19-2006 04:01 AM
chsh accident; big accident. shinystuffrox *BSD 3 06-06-2005 07:06 AM
deleted cdrom by accident chronos Linux - General 1 12-16-2000 06:36 PM

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

All times are GMT -5. The time now is 03:49 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