Resetting Ubuntu to factory settings












13















I've had a lot of problems lately and now when I yet to login the login appears then quickly disappears. Now I'm giving up and just want to reset and start over. But can't login to make a live USB , anyone have an idea of what I can do to get in and access my browser make a live USB and rest?










share|improve this question

















This question has an open bounty worth +200
reputation from Zanna ending in 7 days.


The question is widely applicable to a large audience. A detailed canonical answer is required to address all the concerns.


I think this question would benefit from an answer that explains at beginner level that Ubuntu does not have a factory reset per se, but discusses various ways a system can be recovered, linking to high quality posts on methods for different situations and summarising them, and/or giving easy to follow instructions on how to do them.

















  • How did you install the current OS? " But can't login to make a live USB" why not?

    – Rinzwind
    Feb 28 '15 at 20:00











  • @Rinzwind I had a live USB but no longer have it, and not my system won't let me login it just boots to my home screen wallpaper and and ubuntu logo in the middle and I'm just stuck there and can access anything

    – cmehmen
    Feb 28 '15 at 20:02











  • can you get use a terminal (control alt f1) and log in? If so and answer might be provided where you use wget to download an ubuntu iso and command line to write it to an USB (not seen one yet though ;) )

    – Rinzwind
    Feb 28 '15 at 20:06













  • @Rinzwind yes I can

    – cmehmen
    Feb 28 '15 at 20:07











  • @Rinzwind perhaps another option would be for the OP to install an alternate desktop (such as LXDE) from the CLI and then log in to that to make a new USB

    – steeldriver
    Feb 28 '15 at 20:19
















13















I've had a lot of problems lately and now when I yet to login the login appears then quickly disappears. Now I'm giving up and just want to reset and start over. But can't login to make a live USB , anyone have an idea of what I can do to get in and access my browser make a live USB and rest?










share|improve this question

















This question has an open bounty worth +200
reputation from Zanna ending in 7 days.


The question is widely applicable to a large audience. A detailed canonical answer is required to address all the concerns.


I think this question would benefit from an answer that explains at beginner level that Ubuntu does not have a factory reset per se, but discusses various ways a system can be recovered, linking to high quality posts on methods for different situations and summarising them, and/or giving easy to follow instructions on how to do them.

















  • How did you install the current OS? " But can't login to make a live USB" why not?

    – Rinzwind
    Feb 28 '15 at 20:00











  • @Rinzwind I had a live USB but no longer have it, and not my system won't let me login it just boots to my home screen wallpaper and and ubuntu logo in the middle and I'm just stuck there and can access anything

    – cmehmen
    Feb 28 '15 at 20:02











  • can you get use a terminal (control alt f1) and log in? If so and answer might be provided where you use wget to download an ubuntu iso and command line to write it to an USB (not seen one yet though ;) )

    – Rinzwind
    Feb 28 '15 at 20:06













  • @Rinzwind yes I can

    – cmehmen
    Feb 28 '15 at 20:07











  • @Rinzwind perhaps another option would be for the OP to install an alternate desktop (such as LXDE) from the CLI and then log in to that to make a new USB

    – steeldriver
    Feb 28 '15 at 20:19














13












13








13


2






I've had a lot of problems lately and now when I yet to login the login appears then quickly disappears. Now I'm giving up and just want to reset and start over. But can't login to make a live USB , anyone have an idea of what I can do to get in and access my browser make a live USB and rest?










share|improve this question
















I've had a lot of problems lately and now when I yet to login the login appears then quickly disappears. Now I'm giving up and just want to reset and start over. But can't login to make a live USB , anyone have an idea of what I can do to get in and access my browser make a live USB and rest?







reset






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 25 '16 at 22:18









Zanna

50.6k13136241




50.6k13136241










asked Feb 28 '15 at 19:57









cmehmencmehmen

1263411




1263411






This question has an open bounty worth +200
reputation from Zanna ending in 7 days.


The question is widely applicable to a large audience. A detailed canonical answer is required to address all the concerns.


I think this question would benefit from an answer that explains at beginner level that Ubuntu does not have a factory reset per se, but discusses various ways a system can be recovered, linking to high quality posts on methods for different situations and summarising them, and/or giving easy to follow instructions on how to do them.








This question has an open bounty worth +200
reputation from Zanna ending in 7 days.


The question is widely applicable to a large audience. A detailed canonical answer is required to address all the concerns.


I think this question would benefit from an answer that explains at beginner level that Ubuntu does not have a factory reset per se, but discusses various ways a system can be recovered, linking to high quality posts on methods for different situations and summarising them, and/or giving easy to follow instructions on how to do them.















  • How did you install the current OS? " But can't login to make a live USB" why not?

    – Rinzwind
    Feb 28 '15 at 20:00











  • @Rinzwind I had a live USB but no longer have it, and not my system won't let me login it just boots to my home screen wallpaper and and ubuntu logo in the middle and I'm just stuck there and can access anything

    – cmehmen
    Feb 28 '15 at 20:02











  • can you get use a terminal (control alt f1) and log in? If so and answer might be provided where you use wget to download an ubuntu iso and command line to write it to an USB (not seen one yet though ;) )

    – Rinzwind
    Feb 28 '15 at 20:06













  • @Rinzwind yes I can

    – cmehmen
    Feb 28 '15 at 20:07











  • @Rinzwind perhaps another option would be for the OP to install an alternate desktop (such as LXDE) from the CLI and then log in to that to make a new USB

    – steeldriver
    Feb 28 '15 at 20:19



















  • How did you install the current OS? " But can't login to make a live USB" why not?

    – Rinzwind
    Feb 28 '15 at 20:00











  • @Rinzwind I had a live USB but no longer have it, and not my system won't let me login it just boots to my home screen wallpaper and and ubuntu logo in the middle and I'm just stuck there and can access anything

    – cmehmen
    Feb 28 '15 at 20:02











  • can you get use a terminal (control alt f1) and log in? If so and answer might be provided where you use wget to download an ubuntu iso and command line to write it to an USB (not seen one yet though ;) )

    – Rinzwind
    Feb 28 '15 at 20:06













  • @Rinzwind yes I can

    – cmehmen
    Feb 28 '15 at 20:07











  • @Rinzwind perhaps another option would be for the OP to install an alternate desktop (such as LXDE) from the CLI and then log in to that to make a new USB

    – steeldriver
    Feb 28 '15 at 20:19

















How did you install the current OS? " But can't login to make a live USB" why not?

– Rinzwind
Feb 28 '15 at 20:00





How did you install the current OS? " But can't login to make a live USB" why not?

– Rinzwind
Feb 28 '15 at 20:00













@Rinzwind I had a live USB but no longer have it, and not my system won't let me login it just boots to my home screen wallpaper and and ubuntu logo in the middle and I'm just stuck there and can access anything

– cmehmen
Feb 28 '15 at 20:02





@Rinzwind I had a live USB but no longer have it, and not my system won't let me login it just boots to my home screen wallpaper and and ubuntu logo in the middle and I'm just stuck there and can access anything

– cmehmen
Feb 28 '15 at 20:02













can you get use a terminal (control alt f1) and log in? If so and answer might be provided where you use wget to download an ubuntu iso and command line to write it to an USB (not seen one yet though ;) )

– Rinzwind
Feb 28 '15 at 20:06







can you get use a terminal (control alt f1) and log in? If so and answer might be provided where you use wget to download an ubuntu iso and command line to write it to an USB (not seen one yet though ;) )

– Rinzwind
Feb 28 '15 at 20:06















@Rinzwind yes I can

– cmehmen
Feb 28 '15 at 20:07





@Rinzwind yes I can

– cmehmen
Feb 28 '15 at 20:07













@Rinzwind perhaps another option would be for the OP to install an alternate desktop (such as LXDE) from the CLI and then log in to that to make a new USB

– steeldriver
Feb 28 '15 at 20:19





@Rinzwind perhaps another option would be for the OP to install an alternate desktop (such as LXDE) from the CLI and then log in to that to make a new USB

– steeldriver
Feb 28 '15 at 20:19










2 Answers
2






active

oldest

votes


















11














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






share|improve this answer





















  • 1





    than you so much I almost got it to work but I had a faulty usb so I went and got a new one and when I run dmesg I get--"sd 6:0:0:0: [sdb] Write Cache: diabled, read cache: enabled, doesn't support DPO or FUA. That's the only thing that differs from your code should I just continue or do I need to do another step?

    – cmehmen
    Mar 1 '15 at 19:32











  • that is fine. all you should need is the device name

    – Rinzwind
    Mar 1 '15 at 19:34











  • which is sdb and not sdc in his case

    – sg2
    8 hours ago



















0














Reinstalling can mean erasing everything, reformatting the partition, loosing all data and installing Ubuntu with a brand new /home/user directory. This is the common result when doing a google search.



This answer is about reinstalling Ubuntu and keeping /home/user directory. The following is from: Ubuntu Reinstallation





Ubuntu Reinstallation



Introduction



Sometimes reinstalling is the quickest way to solve a problem, for example if an upgrade failed or if your graphics driver is broken. When reinstalling, you're most likely want to preserve two things:





  • /home folder with your files and settings

  • Entries in boot menu (if you have multiple OS installed)


How To Reinstall Ubuntu



Since Hardy it is possible to reinstall Ubuntu without losing the content of the /home folder (the folder that contains program settings, internet bookmarks, emails and all your documents, music, videos and other user files). This can be done even if /home is not on a separate partition (which is the case by default if you did not manually separate it when installing Ubuntu originally). This tutorial can also be used to upgrade Ubuntu (eg 11.04 -> 12.04 from a 12.04 live-CD).



Before doing anything



This operation should not damage your documents but, for security, backup your documents and settings (including /home hidden files) on external disk or DVDs. (eg via CloneZilla) Note: Some special applications settings may be in system folders, eg LAMP, see below in the thread.



Run the Ubuntu installer




  • Run the UbuntuInstaller

  • Follow the prompts until the "Installation type" (or "Allocate disk space") menu

  • Choose the right option as described below:


Choose the right option



There are two possibilities - choose the one that fits what the installer is showing:




  • If an "Upgrade 1X.XX to 1Y.YY" option is available (like in the screenshot below), choose it.


enter image description here




  • Or, if the above option is not available, choose manual partitioning ("Something-else" option), then select Ubuntu system partition, set its mount point as "/". Be sure to keep the same format type, the same size, and untick the "Format" checkbox or all data on "/" will be deleted!. Also set other partitions (/boot, /home... see DiskSpace) if needed.


Then finish the installation process. (this may take several hours, like a normal install)



After reinstalling



After reinstalling, user accounts must be re-created with the same login and password.



See also




  1. Discussion on the forum


Create a Live USB




  • How to Create a Bootable Linux USB Flash Drive, the Easy Way






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f591167%2fresetting-ubuntu-to-factory-settings%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    11














    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






    share|improve this answer





















    • 1





      than you so much I almost got it to work but I had a faulty usb so I went and got a new one and when I run dmesg I get--"sd 6:0:0:0: [sdb] Write Cache: diabled, read cache: enabled, doesn't support DPO or FUA. That's the only thing that differs from your code should I just continue or do I need to do another step?

      – cmehmen
      Mar 1 '15 at 19:32











    • that is fine. all you should need is the device name

      – Rinzwind
      Mar 1 '15 at 19:34











    • which is sdb and not sdc in his case

      – sg2
      8 hours ago
















    11














    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






    share|improve this answer





















    • 1





      than you so much I almost got it to work but I had a faulty usb so I went and got a new one and when I run dmesg I get--"sd 6:0:0:0: [sdb] Write Cache: diabled, read cache: enabled, doesn't support DPO or FUA. That's the only thing that differs from your code should I just continue or do I need to do another step?

      – cmehmen
      Mar 1 '15 at 19:32











    • that is fine. all you should need is the device name

      – Rinzwind
      Mar 1 '15 at 19:34











    • which is sdb and not sdc in his case

      – sg2
      8 hours ago














    11












    11








    11







    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






    share|improve this answer















    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







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Feb 28 '15 at 20:42

























    answered Feb 28 '15 at 20:24









    RinzwindRinzwind

    206k28397528




    206k28397528








    • 1





      than you so much I almost got it to work but I had a faulty usb so I went and got a new one and when I run dmesg I get--"sd 6:0:0:0: [sdb] Write Cache: diabled, read cache: enabled, doesn't support DPO or FUA. That's the only thing that differs from your code should I just continue or do I need to do another step?

      – cmehmen
      Mar 1 '15 at 19:32











    • that is fine. all you should need is the device name

      – Rinzwind
      Mar 1 '15 at 19:34











    • which is sdb and not sdc in his case

      – sg2
      8 hours ago














    • 1





      than you so much I almost got it to work but I had a faulty usb so I went and got a new one and when I run dmesg I get--"sd 6:0:0:0: [sdb] Write Cache: diabled, read cache: enabled, doesn't support DPO or FUA. That's the only thing that differs from your code should I just continue or do I need to do another step?

      – cmehmen
      Mar 1 '15 at 19:32











    • that is fine. all you should need is the device name

      – Rinzwind
      Mar 1 '15 at 19:34











    • which is sdb and not sdc in his case

      – sg2
      8 hours ago








    1




    1





    than you so much I almost got it to work but I had a faulty usb so I went and got a new one and when I run dmesg I get--"sd 6:0:0:0: [sdb] Write Cache: diabled, read cache: enabled, doesn't support DPO or FUA. That's the only thing that differs from your code should I just continue or do I need to do another step?

    – cmehmen
    Mar 1 '15 at 19:32





    than you so much I almost got it to work but I had a faulty usb so I went and got a new one and when I run dmesg I get--"sd 6:0:0:0: [sdb] Write Cache: diabled, read cache: enabled, doesn't support DPO or FUA. That's the only thing that differs from your code should I just continue or do I need to do another step?

    – cmehmen
    Mar 1 '15 at 19:32













    that is fine. all you should need is the device name

    – Rinzwind
    Mar 1 '15 at 19:34





    that is fine. all you should need is the device name

    – Rinzwind
    Mar 1 '15 at 19:34













    which is sdb and not sdc in his case

    – sg2
    8 hours ago





    which is sdb and not sdc in his case

    – sg2
    8 hours ago













    0














    Reinstalling can mean erasing everything, reformatting the partition, loosing all data and installing Ubuntu with a brand new /home/user directory. This is the common result when doing a google search.



    This answer is about reinstalling Ubuntu and keeping /home/user directory. The following is from: Ubuntu Reinstallation





    Ubuntu Reinstallation



    Introduction



    Sometimes reinstalling is the quickest way to solve a problem, for example if an upgrade failed or if your graphics driver is broken. When reinstalling, you're most likely want to preserve two things:





    • /home folder with your files and settings

    • Entries in boot menu (if you have multiple OS installed)


    How To Reinstall Ubuntu



    Since Hardy it is possible to reinstall Ubuntu without losing the content of the /home folder (the folder that contains program settings, internet bookmarks, emails and all your documents, music, videos and other user files). This can be done even if /home is not on a separate partition (which is the case by default if you did not manually separate it when installing Ubuntu originally). This tutorial can also be used to upgrade Ubuntu (eg 11.04 -> 12.04 from a 12.04 live-CD).



    Before doing anything



    This operation should not damage your documents but, for security, backup your documents and settings (including /home hidden files) on external disk or DVDs. (eg via CloneZilla) Note: Some special applications settings may be in system folders, eg LAMP, see below in the thread.



    Run the Ubuntu installer




    • Run the UbuntuInstaller

    • Follow the prompts until the "Installation type" (or "Allocate disk space") menu

    • Choose the right option as described below:


    Choose the right option



    There are two possibilities - choose the one that fits what the installer is showing:




    • If an "Upgrade 1X.XX to 1Y.YY" option is available (like in the screenshot below), choose it.


    enter image description here




    • Or, if the above option is not available, choose manual partitioning ("Something-else" option), then select Ubuntu system partition, set its mount point as "/". Be sure to keep the same format type, the same size, and untick the "Format" checkbox or all data on "/" will be deleted!. Also set other partitions (/boot, /home... see DiskSpace) if needed.


    Then finish the installation process. (this may take several hours, like a normal install)



    After reinstalling



    After reinstalling, user accounts must be re-created with the same login and password.



    See also




    1. Discussion on the forum


    Create a Live USB




    • How to Create a Bootable Linux USB Flash Drive, the Easy Way






    share|improve this answer




























      0














      Reinstalling can mean erasing everything, reformatting the partition, loosing all data and installing Ubuntu with a brand new /home/user directory. This is the common result when doing a google search.



      This answer is about reinstalling Ubuntu and keeping /home/user directory. The following is from: Ubuntu Reinstallation





      Ubuntu Reinstallation



      Introduction



      Sometimes reinstalling is the quickest way to solve a problem, for example if an upgrade failed or if your graphics driver is broken. When reinstalling, you're most likely want to preserve two things:





      • /home folder with your files and settings

      • Entries in boot menu (if you have multiple OS installed)


      How To Reinstall Ubuntu



      Since Hardy it is possible to reinstall Ubuntu without losing the content of the /home folder (the folder that contains program settings, internet bookmarks, emails and all your documents, music, videos and other user files). This can be done even if /home is not on a separate partition (which is the case by default if you did not manually separate it when installing Ubuntu originally). This tutorial can also be used to upgrade Ubuntu (eg 11.04 -> 12.04 from a 12.04 live-CD).



      Before doing anything



      This operation should not damage your documents but, for security, backup your documents and settings (including /home hidden files) on external disk or DVDs. (eg via CloneZilla) Note: Some special applications settings may be in system folders, eg LAMP, see below in the thread.



      Run the Ubuntu installer




      • Run the UbuntuInstaller

      • Follow the prompts until the "Installation type" (or "Allocate disk space") menu

      • Choose the right option as described below:


      Choose the right option



      There are two possibilities - choose the one that fits what the installer is showing:




      • If an "Upgrade 1X.XX to 1Y.YY" option is available (like in the screenshot below), choose it.


      enter image description here




      • Or, if the above option is not available, choose manual partitioning ("Something-else" option), then select Ubuntu system partition, set its mount point as "/". Be sure to keep the same format type, the same size, and untick the "Format" checkbox or all data on "/" will be deleted!. Also set other partitions (/boot, /home... see DiskSpace) if needed.


      Then finish the installation process. (this may take several hours, like a normal install)



      After reinstalling



      After reinstalling, user accounts must be re-created with the same login and password.



      See also




      1. Discussion on the forum


      Create a Live USB




      • How to Create a Bootable Linux USB Flash Drive, the Easy Way






      share|improve this answer


























        0












        0








        0







        Reinstalling can mean erasing everything, reformatting the partition, loosing all data and installing Ubuntu with a brand new /home/user directory. This is the common result when doing a google search.



        This answer is about reinstalling Ubuntu and keeping /home/user directory. The following is from: Ubuntu Reinstallation





        Ubuntu Reinstallation



        Introduction



        Sometimes reinstalling is the quickest way to solve a problem, for example if an upgrade failed or if your graphics driver is broken. When reinstalling, you're most likely want to preserve two things:





        • /home folder with your files and settings

        • Entries in boot menu (if you have multiple OS installed)


        How To Reinstall Ubuntu



        Since Hardy it is possible to reinstall Ubuntu without losing the content of the /home folder (the folder that contains program settings, internet bookmarks, emails and all your documents, music, videos and other user files). This can be done even if /home is not on a separate partition (which is the case by default if you did not manually separate it when installing Ubuntu originally). This tutorial can also be used to upgrade Ubuntu (eg 11.04 -> 12.04 from a 12.04 live-CD).



        Before doing anything



        This operation should not damage your documents but, for security, backup your documents and settings (including /home hidden files) on external disk or DVDs. (eg via CloneZilla) Note: Some special applications settings may be in system folders, eg LAMP, see below in the thread.



        Run the Ubuntu installer




        • Run the UbuntuInstaller

        • Follow the prompts until the "Installation type" (or "Allocate disk space") menu

        • Choose the right option as described below:


        Choose the right option



        There are two possibilities - choose the one that fits what the installer is showing:




        • If an "Upgrade 1X.XX to 1Y.YY" option is available (like in the screenshot below), choose it.


        enter image description here




        • Or, if the above option is not available, choose manual partitioning ("Something-else" option), then select Ubuntu system partition, set its mount point as "/". Be sure to keep the same format type, the same size, and untick the "Format" checkbox or all data on "/" will be deleted!. Also set other partitions (/boot, /home... see DiskSpace) if needed.


        Then finish the installation process. (this may take several hours, like a normal install)



        After reinstalling



        After reinstalling, user accounts must be re-created with the same login and password.



        See also




        1. Discussion on the forum


        Create a Live USB




        • How to Create a Bootable Linux USB Flash Drive, the Easy Way






        share|improve this answer













        Reinstalling can mean erasing everything, reformatting the partition, loosing all data and installing Ubuntu with a brand new /home/user directory. This is the common result when doing a google search.



        This answer is about reinstalling Ubuntu and keeping /home/user directory. The following is from: Ubuntu Reinstallation





        Ubuntu Reinstallation



        Introduction



        Sometimes reinstalling is the quickest way to solve a problem, for example if an upgrade failed or if your graphics driver is broken. When reinstalling, you're most likely want to preserve two things:





        • /home folder with your files and settings

        • Entries in boot menu (if you have multiple OS installed)


        How To Reinstall Ubuntu



        Since Hardy it is possible to reinstall Ubuntu without losing the content of the /home folder (the folder that contains program settings, internet bookmarks, emails and all your documents, music, videos and other user files). This can be done even if /home is not on a separate partition (which is the case by default if you did not manually separate it when installing Ubuntu originally). This tutorial can also be used to upgrade Ubuntu (eg 11.04 -> 12.04 from a 12.04 live-CD).



        Before doing anything



        This operation should not damage your documents but, for security, backup your documents and settings (including /home hidden files) on external disk or DVDs. (eg via CloneZilla) Note: Some special applications settings may be in system folders, eg LAMP, see below in the thread.



        Run the Ubuntu installer




        • Run the UbuntuInstaller

        • Follow the prompts until the "Installation type" (or "Allocate disk space") menu

        • Choose the right option as described below:


        Choose the right option



        There are two possibilities - choose the one that fits what the installer is showing:




        • If an "Upgrade 1X.XX to 1Y.YY" option is available (like in the screenshot below), choose it.


        enter image description here




        • Or, if the above option is not available, choose manual partitioning ("Something-else" option), then select Ubuntu system partition, set its mount point as "/". Be sure to keep the same format type, the same size, and untick the "Format" checkbox or all data on "/" will be deleted!. Also set other partitions (/boot, /home... see DiskSpace) if needed.


        Then finish the installation process. (this may take several hours, like a normal install)



        After reinstalling



        After reinstalling, user accounts must be re-created with the same login and password.



        See also




        1. Discussion on the forum


        Create a Live USB




        • How to Create a Bootable Linux USB Flash Drive, the Easy Way







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 1 hour ago









        WinEunuuchs2UnixWinEunuuchs2Unix

        45.3k1086176




        45.3k1086176






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f591167%2fresetting-ubuntu-to-factory-settings%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局