Recover files after uninstalling ubuntu-desktop with tasksel?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I am going to do my best to explain what happened:




  1. I had been using Ubuntu 18.04.1, and a friend wanted me to install Drupal on my computer. I followed this guide blindly: https://www.youtube.com/watch?v=UKSjO0irgHg (which was a terrible idea since its from 2015).

  2. The guide instructed me to install tasksel, so I did.

  3. I then ran 'sudo tasksel'

  4. In tasksel I selected 'basic ubuntu server', 'LAMP server', and 'postgreSQL database', as well as 'ubuntu desktop' because I figured I just wanted to use Drupal right on my desktop for testing purposes.

  5. Then in the video, the next step said I just have to enter my mysql password... and since I never had an option to create a mysql password I just assumed the previous step didn't work... so I did steps 3 and 4 again... which without warning uninstalled ubuntu desktop.

  6. All of the sudden all my sidebar programs were gone and I couldn't access files.. so I restarted my computer and since then whenever I select Ubuntu from grub it just gives me a loading screen forever.


Is it possible to fix this and get into my previous installation of ubuntu desktop? How?



Other answers say to just 'upgrade' ubuntu with a bootable drive.. this doesnt give me a safe option to keep my files. All options say 'will delete all files'



If it's not possible to get into my previous installation, how can I recover my files? They were important :(



Thank you so much for your help.










share|improve this question































    0















    I am going to do my best to explain what happened:




    1. I had been using Ubuntu 18.04.1, and a friend wanted me to install Drupal on my computer. I followed this guide blindly: https://www.youtube.com/watch?v=UKSjO0irgHg (which was a terrible idea since its from 2015).

    2. The guide instructed me to install tasksel, so I did.

    3. I then ran 'sudo tasksel'

    4. In tasksel I selected 'basic ubuntu server', 'LAMP server', and 'postgreSQL database', as well as 'ubuntu desktop' because I figured I just wanted to use Drupal right on my desktop for testing purposes.

    5. Then in the video, the next step said I just have to enter my mysql password... and since I never had an option to create a mysql password I just assumed the previous step didn't work... so I did steps 3 and 4 again... which without warning uninstalled ubuntu desktop.

    6. All of the sudden all my sidebar programs were gone and I couldn't access files.. so I restarted my computer and since then whenever I select Ubuntu from grub it just gives me a loading screen forever.


    Is it possible to fix this and get into my previous installation of ubuntu desktop? How?



    Other answers say to just 'upgrade' ubuntu with a bootable drive.. this doesnt give me a safe option to keep my files. All options say 'will delete all files'



    If it's not possible to get into my previous installation, how can I recover my files? They were important :(



    Thank you so much for your help.










    share|improve this question



























      0












      0








      0








      I am going to do my best to explain what happened:




      1. I had been using Ubuntu 18.04.1, and a friend wanted me to install Drupal on my computer. I followed this guide blindly: https://www.youtube.com/watch?v=UKSjO0irgHg (which was a terrible idea since its from 2015).

      2. The guide instructed me to install tasksel, so I did.

      3. I then ran 'sudo tasksel'

      4. In tasksel I selected 'basic ubuntu server', 'LAMP server', and 'postgreSQL database', as well as 'ubuntu desktop' because I figured I just wanted to use Drupal right on my desktop for testing purposes.

      5. Then in the video, the next step said I just have to enter my mysql password... and since I never had an option to create a mysql password I just assumed the previous step didn't work... so I did steps 3 and 4 again... which without warning uninstalled ubuntu desktop.

      6. All of the sudden all my sidebar programs were gone and I couldn't access files.. so I restarted my computer and since then whenever I select Ubuntu from grub it just gives me a loading screen forever.


      Is it possible to fix this and get into my previous installation of ubuntu desktop? How?



      Other answers say to just 'upgrade' ubuntu with a bootable drive.. this doesnt give me a safe option to keep my files. All options say 'will delete all files'



      If it's not possible to get into my previous installation, how can I recover my files? They were important :(



      Thank you so much for your help.










      share|improve this question
















      I am going to do my best to explain what happened:




      1. I had been using Ubuntu 18.04.1, and a friend wanted me to install Drupal on my computer. I followed this guide blindly: https://www.youtube.com/watch?v=UKSjO0irgHg (which was a terrible idea since its from 2015).

      2. The guide instructed me to install tasksel, so I did.

      3. I then ran 'sudo tasksel'

      4. In tasksel I selected 'basic ubuntu server', 'LAMP server', and 'postgreSQL database', as well as 'ubuntu desktop' because I figured I just wanted to use Drupal right on my desktop for testing purposes.

      5. Then in the video, the next step said I just have to enter my mysql password... and since I never had an option to create a mysql password I just assumed the previous step didn't work... so I did steps 3 and 4 again... which without warning uninstalled ubuntu desktop.

      6. All of the sudden all my sidebar programs were gone and I couldn't access files.. so I restarted my computer and since then whenever I select Ubuntu from grub it just gives me a loading screen forever.


      Is it possible to fix this and get into my previous installation of ubuntu desktop? How?



      Other answers say to just 'upgrade' ubuntu with a bootable drive.. this doesnt give me a safe option to keep my files. All options say 'will delete all files'



      If it's not possible to get into my previous installation, how can I recover my files? They were important :(



      Thank you so much for your help.







      18.04 lamp tasksel






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 11 at 0:48







      DylanLalonde

















      asked Feb 8 at 7:06









      DylanLalondeDylanLalonde

      11




      11






















          2 Answers
          2






          active

          oldest

          votes


















          0














          Having done something similar myself, if you can access the Ubuntu console via recovery mode or login screen console via Ctrl+Alt+F2, you may be able to either:




          1. manually mount another drive to back up your files (via the console) and then install Ubuntu over your broken installation


          or




          1. attempt to fix Ubuntu by reinstalling what you uninstalled.


          Option 2 would be easier if you hadn't rebooted and the console was still up since you would know what was uninstalled (though I guess you could repeat the steps in a virtual machine on another computer to find out).



          If you need to access the Internet via the console to download missing files, this requires manually building a connection by configuring a certain text file and then manually updating, but I don't recall how to do the configuration at the moment.






          share|improve this answer


























          • When I press CTRL + ALT + F2 to access Ubuntu console while it's showing the load screen I just get a black screen with a cursor up in the top left of the screen with nothing before or after it. When I typed anything into it it just leaves it there, creates a new line, and doesn't seem to do anything.

            – DylanLalonde
            Feb 8 at 23:12











          • The shortcut I mentioned is for the login screen. I know which screen you're talking about, but I've never used it for anything so I don't know what it does. Guess you're stuck trying the recovery mode console (which uses a different shortcut).

            – Patrick Dark
            Feb 9 at 0:30



















          0














          I resolved my own issue in the following way:




          1. Entered Ubuntu Recovery mode through GRUB

          2. Dropped to root shell prompt

          3. Used sudo su [username] to login to my user account

          4. Inserted a usb drive

          5. Created a mount point: sudo mkdir /media/usb

          6. Mounted the usb: sudo mount /dev/sdb1 /media/usb

          7. Copied the files from /home/[user] to the usb: sudo cp -r /home/[user]/* /media/usb/

          8. Unmounted the usb: sudo umount /media/usb


          I can now access my files from that usb on other computers without issue!






          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%2f1116585%2frecover-files-after-uninstalling-ubuntu-desktop-with-tasksel%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









            0














            Having done something similar myself, if you can access the Ubuntu console via recovery mode or login screen console via Ctrl+Alt+F2, you may be able to either:




            1. manually mount another drive to back up your files (via the console) and then install Ubuntu over your broken installation


            or




            1. attempt to fix Ubuntu by reinstalling what you uninstalled.


            Option 2 would be easier if you hadn't rebooted and the console was still up since you would know what was uninstalled (though I guess you could repeat the steps in a virtual machine on another computer to find out).



            If you need to access the Internet via the console to download missing files, this requires manually building a connection by configuring a certain text file and then manually updating, but I don't recall how to do the configuration at the moment.






            share|improve this answer


























            • When I press CTRL + ALT + F2 to access Ubuntu console while it's showing the load screen I just get a black screen with a cursor up in the top left of the screen with nothing before or after it. When I typed anything into it it just leaves it there, creates a new line, and doesn't seem to do anything.

              – DylanLalonde
              Feb 8 at 23:12











            • The shortcut I mentioned is for the login screen. I know which screen you're talking about, but I've never used it for anything so I don't know what it does. Guess you're stuck trying the recovery mode console (which uses a different shortcut).

              – Patrick Dark
              Feb 9 at 0:30
















            0














            Having done something similar myself, if you can access the Ubuntu console via recovery mode or login screen console via Ctrl+Alt+F2, you may be able to either:




            1. manually mount another drive to back up your files (via the console) and then install Ubuntu over your broken installation


            or




            1. attempt to fix Ubuntu by reinstalling what you uninstalled.


            Option 2 would be easier if you hadn't rebooted and the console was still up since you would know what was uninstalled (though I guess you could repeat the steps in a virtual machine on another computer to find out).



            If you need to access the Internet via the console to download missing files, this requires manually building a connection by configuring a certain text file and then manually updating, but I don't recall how to do the configuration at the moment.






            share|improve this answer


























            • When I press CTRL + ALT + F2 to access Ubuntu console while it's showing the load screen I just get a black screen with a cursor up in the top left of the screen with nothing before or after it. When I typed anything into it it just leaves it there, creates a new line, and doesn't seem to do anything.

              – DylanLalonde
              Feb 8 at 23:12











            • The shortcut I mentioned is for the login screen. I know which screen you're talking about, but I've never used it for anything so I don't know what it does. Guess you're stuck trying the recovery mode console (which uses a different shortcut).

              – Patrick Dark
              Feb 9 at 0:30














            0












            0








            0







            Having done something similar myself, if you can access the Ubuntu console via recovery mode or login screen console via Ctrl+Alt+F2, you may be able to either:




            1. manually mount another drive to back up your files (via the console) and then install Ubuntu over your broken installation


            or




            1. attempt to fix Ubuntu by reinstalling what you uninstalled.


            Option 2 would be easier if you hadn't rebooted and the console was still up since you would know what was uninstalled (though I guess you could repeat the steps in a virtual machine on another computer to find out).



            If you need to access the Internet via the console to download missing files, this requires manually building a connection by configuring a certain text file and then manually updating, but I don't recall how to do the configuration at the moment.






            share|improve this answer















            Having done something similar myself, if you can access the Ubuntu console via recovery mode or login screen console via Ctrl+Alt+F2, you may be able to either:




            1. manually mount another drive to back up your files (via the console) and then install Ubuntu over your broken installation


            or




            1. attempt to fix Ubuntu by reinstalling what you uninstalled.


            Option 2 would be easier if you hadn't rebooted and the console was still up since you would know what was uninstalled (though I guess you could repeat the steps in a virtual machine on another computer to find out).



            If you need to access the Internet via the console to download missing files, this requires manually building a connection by configuring a certain text file and then manually updating, but I don't recall how to do the configuration at the moment.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 8 at 12:43









            grooveplex

            2,21411433




            2,21411433










            answered Feb 8 at 9:14









            Patrick DarkPatrick Dark

            1015




            1015













            • When I press CTRL + ALT + F2 to access Ubuntu console while it's showing the load screen I just get a black screen with a cursor up in the top left of the screen with nothing before or after it. When I typed anything into it it just leaves it there, creates a new line, and doesn't seem to do anything.

              – DylanLalonde
              Feb 8 at 23:12











            • The shortcut I mentioned is for the login screen. I know which screen you're talking about, but I've never used it for anything so I don't know what it does. Guess you're stuck trying the recovery mode console (which uses a different shortcut).

              – Patrick Dark
              Feb 9 at 0:30



















            • When I press CTRL + ALT + F2 to access Ubuntu console while it's showing the load screen I just get a black screen with a cursor up in the top left of the screen with nothing before or after it. When I typed anything into it it just leaves it there, creates a new line, and doesn't seem to do anything.

              – DylanLalonde
              Feb 8 at 23:12











            • The shortcut I mentioned is for the login screen. I know which screen you're talking about, but I've never used it for anything so I don't know what it does. Guess you're stuck trying the recovery mode console (which uses a different shortcut).

              – Patrick Dark
              Feb 9 at 0:30

















            When I press CTRL + ALT + F2 to access Ubuntu console while it's showing the load screen I just get a black screen with a cursor up in the top left of the screen with nothing before or after it. When I typed anything into it it just leaves it there, creates a new line, and doesn't seem to do anything.

            – DylanLalonde
            Feb 8 at 23:12





            When I press CTRL + ALT + F2 to access Ubuntu console while it's showing the load screen I just get a black screen with a cursor up in the top left of the screen with nothing before or after it. When I typed anything into it it just leaves it there, creates a new line, and doesn't seem to do anything.

            – DylanLalonde
            Feb 8 at 23:12













            The shortcut I mentioned is for the login screen. I know which screen you're talking about, but I've never used it for anything so I don't know what it does. Guess you're stuck trying the recovery mode console (which uses a different shortcut).

            – Patrick Dark
            Feb 9 at 0:30





            The shortcut I mentioned is for the login screen. I know which screen you're talking about, but I've never used it for anything so I don't know what it does. Guess you're stuck trying the recovery mode console (which uses a different shortcut).

            – Patrick Dark
            Feb 9 at 0:30













            0














            I resolved my own issue in the following way:




            1. Entered Ubuntu Recovery mode through GRUB

            2. Dropped to root shell prompt

            3. Used sudo su [username] to login to my user account

            4. Inserted a usb drive

            5. Created a mount point: sudo mkdir /media/usb

            6. Mounted the usb: sudo mount /dev/sdb1 /media/usb

            7. Copied the files from /home/[user] to the usb: sudo cp -r /home/[user]/* /media/usb/

            8. Unmounted the usb: sudo umount /media/usb


            I can now access my files from that usb on other computers without issue!






            share|improve this answer






























              0














              I resolved my own issue in the following way:




              1. Entered Ubuntu Recovery mode through GRUB

              2. Dropped to root shell prompt

              3. Used sudo su [username] to login to my user account

              4. Inserted a usb drive

              5. Created a mount point: sudo mkdir /media/usb

              6. Mounted the usb: sudo mount /dev/sdb1 /media/usb

              7. Copied the files from /home/[user] to the usb: sudo cp -r /home/[user]/* /media/usb/

              8. Unmounted the usb: sudo umount /media/usb


              I can now access my files from that usb on other computers without issue!






              share|improve this answer




























                0












                0








                0







                I resolved my own issue in the following way:




                1. Entered Ubuntu Recovery mode through GRUB

                2. Dropped to root shell prompt

                3. Used sudo su [username] to login to my user account

                4. Inserted a usb drive

                5. Created a mount point: sudo mkdir /media/usb

                6. Mounted the usb: sudo mount /dev/sdb1 /media/usb

                7. Copied the files from /home/[user] to the usb: sudo cp -r /home/[user]/* /media/usb/

                8. Unmounted the usb: sudo umount /media/usb


                I can now access my files from that usb on other computers without issue!






                share|improve this answer















                I resolved my own issue in the following way:




                1. Entered Ubuntu Recovery mode through GRUB

                2. Dropped to root shell prompt

                3. Used sudo su [username] to login to my user account

                4. Inserted a usb drive

                5. Created a mount point: sudo mkdir /media/usb

                6. Mounted the usb: sudo mount /dev/sdb1 /media/usb

                7. Copied the files from /home/[user] to the usb: sudo cp -r /home/[user]/* /media/usb/

                8. Unmounted the usb: sudo umount /media/usb


                I can now access my files from that usb on other computers without issue!







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Feb 9 at 21:42

























                answered Feb 9 at 1:13









                DylanLalondeDylanLalonde

                11




                11






























                    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%2f1116585%2frecover-files-after-uninstalling-ubuntu-desktop-with-tasksel%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 to change which sound is reproduced for terminal bell?

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?