3 Replies Latest reply on Dec 13, 2014 6:19 AM by Tim_LHUILLIER

    Read-only file system

    Tim_LHUILLIER

      Hi,

       

      I have a problem with my edison. I falshed ublinux and installed three packages. But since the first reboot my edison is "Read-Only".

      I try to resolve my problem, i asked help in my best friend Google but often for to resolve this problem, if to do

       

      mount / -o remount,rw
      
      

       

      Output is :

      mount: / not mounted or bad option

       

       

      I try too :

       

      rm /var/lib/apt/lists/lock
      
      

       

      Output is :

      rm: cannot remove `/var/lib/apt/lists/lock': Read-only file system

       

       

      I don't understant how to do.

       

      How the edison is yourself locked in Read-only  ?

       

      Thanks

       

      # UPDATE 1

       

      I tried :

       

      root@ubilinux:~# lsblk
      NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
      mmcblk0rpmb  179:96   0     4M  0 disk 
      mmcblk0boot0 179:32   0     4M  1 disk 
      mmcblk0boot1 179:64   0     4M  1 disk 
      mmcblk0      179:0    0   3.7G  0 disk 
      ├─mmcblk0p1  179:1    0     2M  0 part 
      ├─mmcblk0p2  179:2    0     1M  0 part 
      ├─mmcblk0p3  179:3    0     2M  0 part 
      ├─mmcblk0p4  179:4    0     1M  0 part 
      ├─mmcblk0p5  179:5    0     1M  0 part 
      ├─mmcblk0p6  179:6    0    24M  0 part 
      ├─mmcblk0p7  179:7    0    32M  0 part /boot
      ├─mmcblk0p8  179:8    0   1.5G  0 part /
      ├─mmcblk0p9  179:9    0   512M  0 part 
      └─mmcblk0p10 179:10   0   1.6G  0 part /home
      
      root@ubilinux:~# mount -o remount,rw /dev/mmcblk0p8 
      mount: / not mounted or bad option
      
        • 1. Re: Read-only file system
          CMata_Intel

          Hi Tim_LHUILLIER ;

           

          The message "Read-only file system" is a message that the system enters in order to prevent damage to the system, it allows you to save data. In this page you'll find a version of Ublinux for Edison, I don't know if you used that page to get it but I know there were an update on October 31th; in this other thread ubilinux (Debian) now available from Emutex Labs they talk about a good funcionality of it.

          The problem that you are obtaining, probably is a result of something that came wrong while the installation of packages of the Ubilinux system. You could check the /etc/fstab if the boot configuration is set as read-only, also with dmesg commands you could find which file is causing you problems. Now, the Ublinux system is not supported by us so you could try this or can install again your Ublinux distribution from scratch and see if it works.

           

          Regards;

          CMata

          • 2. Re: Read-only file system
            geeksville

            Hi,

            I encountered the same problem.  It seems to me that the emutex root filesystem is not mounted read-only during normal operation.  Which is a bad thing because corruption can happen if the power is pulled at random.  Your filesystem is read-only because consistency checks failed at boot.  (You can confirm by looking for error msgs in dmesg output.

             

            You can _probably_ fix it by running "e2fsck /dev/root" and then after that finishes rebooting.

             

            Please let me know if this works for you also.

            • 3. Re: Read-only file system
              Tim_LHUILLIER

              Yes very thanks,

               

              I had this problem a second times. I fix it with your cmd (geeksville)

              Thank you very much.

               

              But in production isn't good, if the edison will block in Read-Only...