Tuesday, May 21, 2024
 Popular · Latest · Hot · Upcoming
14
rated 0 times [  14] [ 0]  / answers: 1 / hits: 104374  / 2 Years ago, fri, july 1, 2022, 3:33:55

I've had a lot of problems lately and now I'm having problems logging in at the login screen. I'm giving up and just want to reset and start over. How can I "factory reset" Ubuntu, in this situation, or, for future reference, in general?


More From » reset

 Answers
3

I can see a couple of options but they depend on you being able to get to a command prompt with a working internet connection.




  1. Install another desktop.

  2. Burn a new USB installer from command line.




Install another desktop




This does not guarantee a working desktop though. Your problem might be something related to video card and also present in other desktops. Drop to a command line and start of with this:



sudo apt-get update


and then pick ONE of these (to install that specific desktop):



xubuntu-desktop 
lubuntu-desktop
ubuntu-mate-desktop


I only listed a few (you could also install kUbuntu but for just getting a desktop to be able to make an installation disk might be overkill).




Burn a new USB installer from command line




Download Ubuntu from command line with



wget http://releases.ubuntu.com/14.04/ubuntu-14.04-desktop-amd64.iso


(change the url to a release you want. see http://releases.ubuntu.com and the directories below that for what you need). It will show something like this:



~/Downloads$ wget http://releases.ubuntu.com/14.04/ubuntu-14.04-desktop-amd64.iso
--2015-02-28 21:09:59-- http://releases.ubuntu.com/14.04/ubuntu-14.04-desktop-amd64.iso
Resolving releases.ubuntu.com (releases.ubuntu.com)...
91.189.92.151, 2001:67c:1360:8c01::1e
Connecting to releases.ubuntu.com (releases.ubuntu.com)|
91.189.92.151|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1010827264 (964M) [application/x-iso9660-image]
Saving to: ‘ubuntu-14.04-desktop-amd64.iso 6% 58,05M 1,36MB/s eta 7m 47s


and then "dd" the ISO to the USB flash drive. Pay extra attention to the device name. If you mess this up you could overwrite your current install... I tend to use dmesg:



[26005.823077] sd 7:0:0:0: Attached scsi generic sg3 type 0
[26006.953612] sd 7:0:0:0: [sdc] 30299520 512-byte logical blocks: (15.5 GB/14.4 GiB)
[26006.954291] sd 7:0:0:0: [sdc] Write Protect is off
[26006.954298] sd 7:0:0:0: [sdc] Mode Sense: 23 00 00 00
[26006.954912] sd 7:0:0:0: [sdc] No Caching mode page found
[26006.954918] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[26006.972919] sdc: sdc1
[26006.976297] sd 7:0:0:0: [sdc] Attached SCSI removable disk


So that would be "sdc". This will burn it (skip the 1st one if you are still in Downloads, skip the 2nd one if it is already installed):



cd ~/Downloads
sudo apt-get install gddrescue
sudo ddrescue -d -D --force ubuntu-14.04-desktop-amd64.iso /dev/sdc





Results:



GNU ddrescue 1.19
Press Ctrl-C to interrupt
rescued: 63504 kB, errsize: 230 B, current rate: 196 kB/s
ipos: 63504 kB, errors: 1, average rate: 12700 kB/s
opos: 63504 kB, run time: 5 s, successful read: 0 s ago
Finished


and an image of the freshly created USB ISO:



enter image description here


[#21125] Saturday, July 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
azaaburge

Total Points: 266
Total Questions: 85
Total Answers: 109

Location: Djibouti
Member since Sat, Oct 29, 2022
2 Years ago
azaaburge questions
Thu, Jun 2, 22, 23:28, 2 Years ago
Sun, Oct 17, 21, 05:20, 3 Years ago
Fri, Jun 25, 21, 16:22, 3 Years ago
;