USB thumb stick with live Ubuntu 18.04 and persistence has stopped working after out of memory error and shutdown

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite
1












My USB which had worked OK for a week or so suddenly no longer works.



It boots up to the Ubuntu logo showing the blinking progress spots until the screen suddenly goes dark and a scrolling text message is displayed. It scrolls so fast I have great difficulty reading it. I tried the advice of one of the subscribers and tried typing ESC and also pressing the ESC key. This did produce some text but I couldn't read it all as it kept scrolling so fast.



After much concentration I think I managed to get one line read verbatim. It appeared after a lot of entries which seem to be OK'd and reads as follows:



[157.187130] [drm:intel-enable-lvds [i915]<ERROR>timed out waiting for panel to power on


The above line is replicated repeatedly but each starts with a different ref #.



I was installing a program when I got a message that I was out of memory and the installation couldn't proceed. I shut down thinking that I would gain memory space since the installation hadn't completed. I thought I would then be able to reboot and once up and running delete some programs to free up space. Unfortunately I wasn't able to boot up properly again.



I would be grateful if anyone could enlighten me as to what, if anything, I can do to rectify this.



Obviously, I could just build another USB live boot but I had quite a number of programs installed and I had problems with every one of them struggling to install them (which wasn't the case when using Knoppix 8.1 live USB where it worked right from the start and all Linux and Wine programs installed easily and worked perfectly).







share|improve this question


























    up vote
    1
    down vote

    favorite
    1












    My USB which had worked OK for a week or so suddenly no longer works.



    It boots up to the Ubuntu logo showing the blinking progress spots until the screen suddenly goes dark and a scrolling text message is displayed. It scrolls so fast I have great difficulty reading it. I tried the advice of one of the subscribers and tried typing ESC and also pressing the ESC key. This did produce some text but I couldn't read it all as it kept scrolling so fast.



    After much concentration I think I managed to get one line read verbatim. It appeared after a lot of entries which seem to be OK'd and reads as follows:



    [157.187130] [drm:intel-enable-lvds [i915]<ERROR>timed out waiting for panel to power on


    The above line is replicated repeatedly but each starts with a different ref #.



    I was installing a program when I got a message that I was out of memory and the installation couldn't proceed. I shut down thinking that I would gain memory space since the installation hadn't completed. I thought I would then be able to reboot and once up and running delete some programs to free up space. Unfortunately I wasn't able to boot up properly again.



    I would be grateful if anyone could enlighten me as to what, if anything, I can do to rectify this.



    Obviously, I could just build another USB live boot but I had quite a number of programs installed and I had problems with every one of them struggling to install them (which wasn't the case when using Knoppix 8.1 live USB where it worked right from the start and all Linux and Wine programs installed easily and worked perfectly).







    share|improve this question
























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      My USB which had worked OK for a week or so suddenly no longer works.



      It boots up to the Ubuntu logo showing the blinking progress spots until the screen suddenly goes dark and a scrolling text message is displayed. It scrolls so fast I have great difficulty reading it. I tried the advice of one of the subscribers and tried typing ESC and also pressing the ESC key. This did produce some text but I couldn't read it all as it kept scrolling so fast.



      After much concentration I think I managed to get one line read verbatim. It appeared after a lot of entries which seem to be OK'd and reads as follows:



      [157.187130] [drm:intel-enable-lvds [i915]<ERROR>timed out waiting for panel to power on


      The above line is replicated repeatedly but each starts with a different ref #.



      I was installing a program when I got a message that I was out of memory and the installation couldn't proceed. I shut down thinking that I would gain memory space since the installation hadn't completed. I thought I would then be able to reboot and once up and running delete some programs to free up space. Unfortunately I wasn't able to boot up properly again.



      I would be grateful if anyone could enlighten me as to what, if anything, I can do to rectify this.



      Obviously, I could just build another USB live boot but I had quite a number of programs installed and I had problems with every one of them struggling to install them (which wasn't the case when using Knoppix 8.1 live USB where it worked right from the start and all Linux and Wine programs installed easily and worked perfectly).







      share|improve this question














      My USB which had worked OK for a week or so suddenly no longer works.



      It boots up to the Ubuntu logo showing the blinking progress spots until the screen suddenly goes dark and a scrolling text message is displayed. It scrolls so fast I have great difficulty reading it. I tried the advice of one of the subscribers and tried typing ESC and also pressing the ESC key. This did produce some text but I couldn't read it all as it kept scrolling so fast.



      After much concentration I think I managed to get one line read verbatim. It appeared after a lot of entries which seem to be OK'd and reads as follows:



      [157.187130] [drm:intel-enable-lvds [i915]<ERROR>timed out waiting for panel to power on


      The above line is replicated repeatedly but each starts with a different ref #.



      I was installing a program when I got a message that I was out of memory and the installation couldn't proceed. I shut down thinking that I would gain memory space since the installation hadn't completed. I thought I would then be able to reboot and once up and running delete some programs to free up space. Unfortunately I wasn't able to boot up properly again.



      I would be grateful if anyone could enlighten me as to what, if anything, I can do to rectify this.



      Obviously, I could just build another USB live boot but I had quite a number of programs installed and I had problems with every one of them struggling to install them (which wasn't the case when using Knoppix 8.1 live USB where it worked right from the start and all Linux and Wine programs installed easily and worked perfectly).









      share|improve this question













      share|improve this question




      share|improve this question








      edited May 28 at 20:03









      Zanna

      47.8k13116226




      47.8k13116226










      asked May 28 at 16:00









      Col

      61




      61




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          1
          down vote













          Before putting a lot of effort into fixing the persistent USB, consider a full install to a USB instead. Persistent installs lack certain important things, like kernel security updates.



          There are lots of suggestions from a Google search on:



           free up space on an Ubuntu persistent USB 


          Your options:



          1. Use a bigger persistent file if less than 4G.

          2. Use a Persistent partition for larger than 4G storage.

          3. Use a home-rw file for up to 4G more storage,

          4. Cleanup the existing persistent storage.

          The persistent storge file just contains a ext filesystem, which may be mounted with the loop option. Remove things like /var/log files, /var/cache/apt/archives deb files, etc. A new (larger?) file may be created (empty), moutned, then filled with the old information.






          share|improve this answer



























            up vote
            1
            down vote













            A Persistent install uses a file or partition named casper-rw, (or home-rw).
            A casper-rw file is usually located on a FAT32 partition, and is limited to 4GB by the file system, however YUMI can make larger casper-rw files on a NTFS partition. Persistent partitions are only limited in size by disk size and are generally on an ext2 or ext4 file system.



            If casper-rw becomes full the persistent drive will not boot.



            A casper-rw file can be mounted and data removed to make the drive bootable again.



            To mount casper-rw file, (booting from a second drive).



            Create directory:



            sudo mkdir /media/casper


            Then mount drive:



            sudo mount -o loop casper-rw /media/casper/


            After a few files are removed the Persistent drive should boot.



            If you need more persistence space, you can create a home-rw persistence file up to 4GB, (by copying and renaming a fresh casper-rw file). It will contain all your home folder data, or you can make the boot drive using YUMI to make a large NTFS casper-rw file, or use mkusb to make an unlimited casper-rw partition.



            If you will be needing to update or upgrade your boot drive it is probably best to do a Full install to the drive.



            Nowadays with large USB3 flash drives, Full installs are quite practical. A Full install is more secure, can use encrypted home directory, is updateable, upgradeable, boots faster, makes better use of disk space, can use proprietary drivers, etc, However a Full install is not much use for installing Ubuntu, and takes longer to make.



            Home can be moved from casper-rw to home-rw using rsync, (I prefer grsync for the GUI).






            share|improve this answer





























              up vote
              0
              down vote













              Backup and restore a persistent live drive



              Persistent live drives are sensitive to corruption. So it is a good idea to have a good backup routine.




              • Backup the content of the casper-rw file/partition often. Make it a routine. See this link,



                Backup and restore of persistent overlay data




              • There are reasons to backup 'only' the /home directory (inside the casper-rw file/partition. See this link,



                How do I upgrade a mkusb Persistent Live system from 16.04 to 18.04



              • If there is a home-rw file/partition, back it up too.


              • Test that you can restore from the backup to create a working persistent live drive. (Test it before you have problems.)


              Repair a persistent live drive




              • Even when the file system of the casper-rw file/partition is healthy, there are problems, when it is full.



                • boot from another drive or boot live-only (without the boot option persistent) into the persistent live drive

                • create directories to be mountpoints


                • mount the casper-rw file system (loop mount if in a file)



                   sudo mount /dev/sdxn mountpoint # casper-rw partition

                  sudo mount /dev/sdxn mountpoint1 # casper-rw file
                  sudo mount -o loop mountpoint1/casper-rw mountpoint2


                • remove some files that are not necessary


                • unmount and reboot, and persistence will work again, if the only problem was that it was full.



              • If the file system of the casper-rw file/partition is damaged you can repair it according to the following link,



                Repair the partition table and file system of a pendrive



                sudo e2fsck -f /dev/sdxn # casper-rw partition
                sudo e2fsck -f mountpoint/casper-rw # casper-rw file


                where x is the drive letter and n is the partition number.




              • If the damage is too severe, repairing the file system may not help, and the only options are to



                • restore from a backup

                • try to recover the most valuable files with recovery tools, for example testdisk or photorec from cgsecurity.org


              Install Ubuntu into a USB pendrive



              It can be a good alternative to create an installed Ubuntu system in a fast USB 3 pendrive. This is described with many details in the following link,



              Boot Ubuntu from external drive






              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',
                convertImagesToLinks: true,
                noModals: false,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                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%2f1041251%2fusb-thumb-stick-with-live-ubuntu-18-04-and-persistence-has-stopped-working-after%23new-answer', 'question_page');

                );

                Post as a guest






























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                1
                down vote













                Before putting a lot of effort into fixing the persistent USB, consider a full install to a USB instead. Persistent installs lack certain important things, like kernel security updates.



                There are lots of suggestions from a Google search on:



                 free up space on an Ubuntu persistent USB 


                Your options:



                1. Use a bigger persistent file if less than 4G.

                2. Use a Persistent partition for larger than 4G storage.

                3. Use a home-rw file for up to 4G more storage,

                4. Cleanup the existing persistent storage.

                The persistent storge file just contains a ext filesystem, which may be mounted with the loop option. Remove things like /var/log files, /var/cache/apt/archives deb files, etc. A new (larger?) file may be created (empty), moutned, then filled with the old information.






                share|improve this answer
























                  up vote
                  1
                  down vote













                  Before putting a lot of effort into fixing the persistent USB, consider a full install to a USB instead. Persistent installs lack certain important things, like kernel security updates.



                  There are lots of suggestions from a Google search on:



                   free up space on an Ubuntu persistent USB 


                  Your options:



                  1. Use a bigger persistent file if less than 4G.

                  2. Use a Persistent partition for larger than 4G storage.

                  3. Use a home-rw file for up to 4G more storage,

                  4. Cleanup the existing persistent storage.

                  The persistent storge file just contains a ext filesystem, which may be mounted with the loop option. Remove things like /var/log files, /var/cache/apt/archives deb files, etc. A new (larger?) file may be created (empty), moutned, then filled with the old information.






                  share|improve this answer






















                    up vote
                    1
                    down vote










                    up vote
                    1
                    down vote









                    Before putting a lot of effort into fixing the persistent USB, consider a full install to a USB instead. Persistent installs lack certain important things, like kernel security updates.



                    There are lots of suggestions from a Google search on:



                     free up space on an Ubuntu persistent USB 


                    Your options:



                    1. Use a bigger persistent file if less than 4G.

                    2. Use a Persistent partition for larger than 4G storage.

                    3. Use a home-rw file for up to 4G more storage,

                    4. Cleanup the existing persistent storage.

                    The persistent storge file just contains a ext filesystem, which may be mounted with the loop option. Remove things like /var/log files, /var/cache/apt/archives deb files, etc. A new (larger?) file may be created (empty), moutned, then filled with the old information.






                    share|improve this answer












                    Before putting a lot of effort into fixing the persistent USB, consider a full install to a USB instead. Persistent installs lack certain important things, like kernel security updates.



                    There are lots of suggestions from a Google search on:



                     free up space on an Ubuntu persistent USB 


                    Your options:



                    1. Use a bigger persistent file if less than 4G.

                    2. Use a Persistent partition for larger than 4G storage.

                    3. Use a home-rw file for up to 4G more storage,

                    4. Cleanup the existing persistent storage.

                    The persistent storge file just contains a ext filesystem, which may be mounted with the loop option. Remove things like /var/log files, /var/cache/apt/archives deb files, etc. A new (larger?) file may be created (empty), moutned, then filled with the old information.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered May 28 at 22:21









                    ubfan1

                    8,56631527




                    8,56631527






















                        up vote
                        1
                        down vote













                        A Persistent install uses a file or partition named casper-rw, (or home-rw).
                        A casper-rw file is usually located on a FAT32 partition, and is limited to 4GB by the file system, however YUMI can make larger casper-rw files on a NTFS partition. Persistent partitions are only limited in size by disk size and are generally on an ext2 or ext4 file system.



                        If casper-rw becomes full the persistent drive will not boot.



                        A casper-rw file can be mounted and data removed to make the drive bootable again.



                        To mount casper-rw file, (booting from a second drive).



                        Create directory:



                        sudo mkdir /media/casper


                        Then mount drive:



                        sudo mount -o loop casper-rw /media/casper/


                        After a few files are removed the Persistent drive should boot.



                        If you need more persistence space, you can create a home-rw persistence file up to 4GB, (by copying and renaming a fresh casper-rw file). It will contain all your home folder data, or you can make the boot drive using YUMI to make a large NTFS casper-rw file, or use mkusb to make an unlimited casper-rw partition.



                        If you will be needing to update or upgrade your boot drive it is probably best to do a Full install to the drive.



                        Nowadays with large USB3 flash drives, Full installs are quite practical. A Full install is more secure, can use encrypted home directory, is updateable, upgradeable, boots faster, makes better use of disk space, can use proprietary drivers, etc, However a Full install is not much use for installing Ubuntu, and takes longer to make.



                        Home can be moved from casper-rw to home-rw using rsync, (I prefer grsync for the GUI).






                        share|improve this answer


























                          up vote
                          1
                          down vote













                          A Persistent install uses a file or partition named casper-rw, (or home-rw).
                          A casper-rw file is usually located on a FAT32 partition, and is limited to 4GB by the file system, however YUMI can make larger casper-rw files on a NTFS partition. Persistent partitions are only limited in size by disk size and are generally on an ext2 or ext4 file system.



                          If casper-rw becomes full the persistent drive will not boot.



                          A casper-rw file can be mounted and data removed to make the drive bootable again.



                          To mount casper-rw file, (booting from a second drive).



                          Create directory:



                          sudo mkdir /media/casper


                          Then mount drive:



                          sudo mount -o loop casper-rw /media/casper/


                          After a few files are removed the Persistent drive should boot.



                          If you need more persistence space, you can create a home-rw persistence file up to 4GB, (by copying and renaming a fresh casper-rw file). It will contain all your home folder data, or you can make the boot drive using YUMI to make a large NTFS casper-rw file, or use mkusb to make an unlimited casper-rw partition.



                          If you will be needing to update or upgrade your boot drive it is probably best to do a Full install to the drive.



                          Nowadays with large USB3 flash drives, Full installs are quite practical. A Full install is more secure, can use encrypted home directory, is updateable, upgradeable, boots faster, makes better use of disk space, can use proprietary drivers, etc, However a Full install is not much use for installing Ubuntu, and takes longer to make.



                          Home can be moved from casper-rw to home-rw using rsync, (I prefer grsync for the GUI).






                          share|improve this answer
























                            up vote
                            1
                            down vote










                            up vote
                            1
                            down vote









                            A Persistent install uses a file or partition named casper-rw, (or home-rw).
                            A casper-rw file is usually located on a FAT32 partition, and is limited to 4GB by the file system, however YUMI can make larger casper-rw files on a NTFS partition. Persistent partitions are only limited in size by disk size and are generally on an ext2 or ext4 file system.



                            If casper-rw becomes full the persistent drive will not boot.



                            A casper-rw file can be mounted and data removed to make the drive bootable again.



                            To mount casper-rw file, (booting from a second drive).



                            Create directory:



                            sudo mkdir /media/casper


                            Then mount drive:



                            sudo mount -o loop casper-rw /media/casper/


                            After a few files are removed the Persistent drive should boot.



                            If you need more persistence space, you can create a home-rw persistence file up to 4GB, (by copying and renaming a fresh casper-rw file). It will contain all your home folder data, or you can make the boot drive using YUMI to make a large NTFS casper-rw file, or use mkusb to make an unlimited casper-rw partition.



                            If you will be needing to update or upgrade your boot drive it is probably best to do a Full install to the drive.



                            Nowadays with large USB3 flash drives, Full installs are quite practical. A Full install is more secure, can use encrypted home directory, is updateable, upgradeable, boots faster, makes better use of disk space, can use proprietary drivers, etc, However a Full install is not much use for installing Ubuntu, and takes longer to make.



                            Home can be moved from casper-rw to home-rw using rsync, (I prefer grsync for the GUI).






                            share|improve this answer














                            A Persistent install uses a file or partition named casper-rw, (or home-rw).
                            A casper-rw file is usually located on a FAT32 partition, and is limited to 4GB by the file system, however YUMI can make larger casper-rw files on a NTFS partition. Persistent partitions are only limited in size by disk size and are generally on an ext2 or ext4 file system.



                            If casper-rw becomes full the persistent drive will not boot.



                            A casper-rw file can be mounted and data removed to make the drive bootable again.



                            To mount casper-rw file, (booting from a second drive).



                            Create directory:



                            sudo mkdir /media/casper


                            Then mount drive:



                            sudo mount -o loop casper-rw /media/casper/


                            After a few files are removed the Persistent drive should boot.



                            If you need more persistence space, you can create a home-rw persistence file up to 4GB, (by copying and renaming a fresh casper-rw file). It will contain all your home folder data, or you can make the boot drive using YUMI to make a large NTFS casper-rw file, or use mkusb to make an unlimited casper-rw partition.



                            If you will be needing to update or upgrade your boot drive it is probably best to do a Full install to the drive.



                            Nowadays with large USB3 flash drives, Full installs are quite practical. A Full install is more secure, can use encrypted home directory, is updateable, upgradeable, boots faster, makes better use of disk space, can use proprietary drivers, etc, However a Full install is not much use for installing Ubuntu, and takes longer to make.



                            Home can be moved from casper-rw to home-rw using rsync, (I prefer grsync for the GUI).







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Jun 3 at 16:21

























                            answered Jun 3 at 15:51









                            C.S.Cameron

                            3,7741924




                            3,7741924




















                                up vote
                                0
                                down vote













                                Backup and restore a persistent live drive



                                Persistent live drives are sensitive to corruption. So it is a good idea to have a good backup routine.




                                • Backup the content of the casper-rw file/partition often. Make it a routine. See this link,



                                  Backup and restore of persistent overlay data




                                • There are reasons to backup 'only' the /home directory (inside the casper-rw file/partition. See this link,



                                  How do I upgrade a mkusb Persistent Live system from 16.04 to 18.04



                                • If there is a home-rw file/partition, back it up too.


                                • Test that you can restore from the backup to create a working persistent live drive. (Test it before you have problems.)


                                Repair a persistent live drive




                                • Even when the file system of the casper-rw file/partition is healthy, there are problems, when it is full.



                                  • boot from another drive or boot live-only (without the boot option persistent) into the persistent live drive

                                  • create directories to be mountpoints


                                  • mount the casper-rw file system (loop mount if in a file)



                                     sudo mount /dev/sdxn mountpoint # casper-rw partition

                                    sudo mount /dev/sdxn mountpoint1 # casper-rw file
                                    sudo mount -o loop mountpoint1/casper-rw mountpoint2


                                  • remove some files that are not necessary


                                  • unmount and reboot, and persistence will work again, if the only problem was that it was full.



                                • If the file system of the casper-rw file/partition is damaged you can repair it according to the following link,



                                  Repair the partition table and file system of a pendrive



                                  sudo e2fsck -f /dev/sdxn # casper-rw partition
                                  sudo e2fsck -f mountpoint/casper-rw # casper-rw file


                                  where x is the drive letter and n is the partition number.




                                • If the damage is too severe, repairing the file system may not help, and the only options are to



                                  • restore from a backup

                                  • try to recover the most valuable files with recovery tools, for example testdisk or photorec from cgsecurity.org


                                Install Ubuntu into a USB pendrive



                                It can be a good alternative to create an installed Ubuntu system in a fast USB 3 pendrive. This is described with many details in the following link,



                                Boot Ubuntu from external drive






                                share|improve this answer


























                                  up vote
                                  0
                                  down vote













                                  Backup and restore a persistent live drive



                                  Persistent live drives are sensitive to corruption. So it is a good idea to have a good backup routine.




                                  • Backup the content of the casper-rw file/partition often. Make it a routine. See this link,



                                    Backup and restore of persistent overlay data




                                  • There are reasons to backup 'only' the /home directory (inside the casper-rw file/partition. See this link,



                                    How do I upgrade a mkusb Persistent Live system from 16.04 to 18.04



                                  • If there is a home-rw file/partition, back it up too.


                                  • Test that you can restore from the backup to create a working persistent live drive. (Test it before you have problems.)


                                  Repair a persistent live drive




                                  • Even when the file system of the casper-rw file/partition is healthy, there are problems, when it is full.



                                    • boot from another drive or boot live-only (without the boot option persistent) into the persistent live drive

                                    • create directories to be mountpoints


                                    • mount the casper-rw file system (loop mount if in a file)



                                       sudo mount /dev/sdxn mountpoint # casper-rw partition

                                      sudo mount /dev/sdxn mountpoint1 # casper-rw file
                                      sudo mount -o loop mountpoint1/casper-rw mountpoint2


                                    • remove some files that are not necessary


                                    • unmount and reboot, and persistence will work again, if the only problem was that it was full.



                                  • If the file system of the casper-rw file/partition is damaged you can repair it according to the following link,



                                    Repair the partition table and file system of a pendrive



                                    sudo e2fsck -f /dev/sdxn # casper-rw partition
                                    sudo e2fsck -f mountpoint/casper-rw # casper-rw file


                                    where x is the drive letter and n is the partition number.




                                  • If the damage is too severe, repairing the file system may not help, and the only options are to



                                    • restore from a backup

                                    • try to recover the most valuable files with recovery tools, for example testdisk or photorec from cgsecurity.org


                                  Install Ubuntu into a USB pendrive



                                  It can be a good alternative to create an installed Ubuntu system in a fast USB 3 pendrive. This is described with many details in the following link,



                                  Boot Ubuntu from external drive






                                  share|improve this answer
























                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    Backup and restore a persistent live drive



                                    Persistent live drives are sensitive to corruption. So it is a good idea to have a good backup routine.




                                    • Backup the content of the casper-rw file/partition often. Make it a routine. See this link,



                                      Backup and restore of persistent overlay data




                                    • There are reasons to backup 'only' the /home directory (inside the casper-rw file/partition. See this link,



                                      How do I upgrade a mkusb Persistent Live system from 16.04 to 18.04



                                    • If there is a home-rw file/partition, back it up too.


                                    • Test that you can restore from the backup to create a working persistent live drive. (Test it before you have problems.)


                                    Repair a persistent live drive




                                    • Even when the file system of the casper-rw file/partition is healthy, there are problems, when it is full.



                                      • boot from another drive or boot live-only (without the boot option persistent) into the persistent live drive

                                      • create directories to be mountpoints


                                      • mount the casper-rw file system (loop mount if in a file)



                                         sudo mount /dev/sdxn mountpoint # casper-rw partition

                                        sudo mount /dev/sdxn mountpoint1 # casper-rw file
                                        sudo mount -o loop mountpoint1/casper-rw mountpoint2


                                      • remove some files that are not necessary


                                      • unmount and reboot, and persistence will work again, if the only problem was that it was full.



                                    • If the file system of the casper-rw file/partition is damaged you can repair it according to the following link,



                                      Repair the partition table and file system of a pendrive



                                      sudo e2fsck -f /dev/sdxn # casper-rw partition
                                      sudo e2fsck -f mountpoint/casper-rw # casper-rw file


                                      where x is the drive letter and n is the partition number.




                                    • If the damage is too severe, repairing the file system may not help, and the only options are to



                                      • restore from a backup

                                      • try to recover the most valuable files with recovery tools, for example testdisk or photorec from cgsecurity.org


                                    Install Ubuntu into a USB pendrive



                                    It can be a good alternative to create an installed Ubuntu system in a fast USB 3 pendrive. This is described with many details in the following link,



                                    Boot Ubuntu from external drive






                                    share|improve this answer














                                    Backup and restore a persistent live drive



                                    Persistent live drives are sensitive to corruption. So it is a good idea to have a good backup routine.




                                    • Backup the content of the casper-rw file/partition often. Make it a routine. See this link,



                                      Backup and restore of persistent overlay data




                                    • There are reasons to backup 'only' the /home directory (inside the casper-rw file/partition. See this link,



                                      How do I upgrade a mkusb Persistent Live system from 16.04 to 18.04



                                    • If there is a home-rw file/partition, back it up too.


                                    • Test that you can restore from the backup to create a working persistent live drive. (Test it before you have problems.)


                                    Repair a persistent live drive




                                    • Even when the file system of the casper-rw file/partition is healthy, there are problems, when it is full.



                                      • boot from another drive or boot live-only (without the boot option persistent) into the persistent live drive

                                      • create directories to be mountpoints


                                      • mount the casper-rw file system (loop mount if in a file)



                                         sudo mount /dev/sdxn mountpoint # casper-rw partition

                                        sudo mount /dev/sdxn mountpoint1 # casper-rw file
                                        sudo mount -o loop mountpoint1/casper-rw mountpoint2


                                      • remove some files that are not necessary


                                      • unmount and reboot, and persistence will work again, if the only problem was that it was full.



                                    • If the file system of the casper-rw file/partition is damaged you can repair it according to the following link,



                                      Repair the partition table and file system of a pendrive



                                      sudo e2fsck -f /dev/sdxn # casper-rw partition
                                      sudo e2fsck -f mountpoint/casper-rw # casper-rw file


                                      where x is the drive letter and n is the partition number.




                                    • If the damage is too severe, repairing the file system may not help, and the only options are to



                                      • restore from a backup

                                      • try to recover the most valuable files with recovery tools, for example testdisk or photorec from cgsecurity.org


                                    Install Ubuntu into a USB pendrive



                                    It can be a good alternative to create an installed Ubuntu system in a fast USB 3 pendrive. This is described with many details in the following link,



                                    Boot Ubuntu from external drive







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Jun 4 at 6:50

























                                    answered Jun 4 at 6:44









                                    sudodus

                                    19.8k32666




                                    19.8k32666






















                                         

                                        draft saved


                                        draft discarded


























                                         


                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function ()
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041251%2fusb-thumb-stick-with-live-ubuntu-18-04-and-persistence-has-stopped-working-after%23new-answer', 'question_page');

                                        );

                                        Post as a guest













































































                                        Popular posts from this blog

                                        pylint3 and pip3 broken

                                        Missing snmpget and snmpwalk

                                        How to enroll fingerprints to Ubuntu 17.10 with VFS491