Filesystem problems
Tofloor
poster avatar
klenta
deepin
2017-05-18 23:42
Author
Yesterday I performed a fresh install, opened steam, clicked 'download cs:go' and gone to sleep. When I woke up, I saw that laptop is in sleep mode (as me ) and steam filechecking  was paused, then I resumed it; after reboot I wasn't able to login, there was only initframs and advice to run fsck /dev/sda6;
That was ok but after I logged into OS, my filesystem had turned read/only : all folders are with "locked" icon and 'mount' output is
> /dev/sda6 on / type ext4 (ro,relatime,data=ordered)
Can't use even apt install <...> now. What should I do?
Reply Favorite View the author
All Replies
ARWhooo
deepin
2017-05-19 00:14
#1
please execute this command in terminal and upload the feedback log files so we can help analyse your problem:
sudo deepin-feedback-cli
Reply View the author
ARWhooo
deepin
2017-05-19 00:14
#2
What's the error message of apt install <...>?
Reply View the author
klenta
deepin
2017-05-19 05:10
#3
Sadly, after doing something with patrition from another distro, I wiped it and now got a fresh install. Now installing CS from steam to check if bug will appear again, please don't close this thread, I will post logs
Reply View the author
klenta
deepin
2017-05-19 05:48
#4
Yes, this error appeared again and my /dev/sda6 is now r/o.

When steam checks files of just installed game :

  1. an error occurred while updating cs (disk read error) : /home/me/.steam/ ...
Copy the Code


After this, for example lets install scrot :
  1. me@ya:~$ sudo apt-get install scrot
  2. sudo: unable to mkdir /var/lib/sudo/ts: Read-only file system

  3. We trust you have received the usual lecture from the local System
  4. Administrator. It usually boils down to these three things:

  5.     #1) Respect the privacy of others.
  6.     #2) Think before you type.
  7.     #3) With great power comes great responsibility.

  8. [sudo] password for me:
  9. Reading package lists... Done
  10. Building dependency tree      
  11. Reading state information... Done
  12. W: Not using locking for read only lock file /var/lib/dpkg/lock
  13. E: Unable to locate package scrot
Copy the Code

Whatever I'm doing with sudo, it mentions that filesystem is ro :
  1. me@ya:~$ sudo shutdown
  2. sudo: unable to mkdir /var/lib/sudo/ts: Read-only file system

  3. We trust you have received the usual lecture from the local System
  4. Administrator. It usually boils down to these three things:

  5.     #1) Respect the privacy of others.
  6.     #2) Think before you type.
  7.     #3) With great power comes great responsibility.

  8. [sudo] password for me:
  9. Shutdown scheduled for Thu 2017-05-18 16:45:24 MSK, use 'shutdown -c' to cancel.
Copy the Code


Trying to execute sudo deepin-feedback-cli
  1. /usr/bin/deepin-feedback-cli: line 453: /tmp/deepin-feedback-cli-Deepin-15.4-all-20170518-164616/sysinfo.md: No such file or directory
  2.   -> executing sliceinfo_package...
  3. /usr/bin/deepin-feedback-cli: line 445: /tmp/deepin-feedback-cli-Deepin-15.4-all-20170518-164616/packages.md: No such file or directory
  4.   -> executing sliceinfo_device...
  5. /usr/bin/deepin-feedback-cli: line 447: /tmp/deepin-feedback-cli-Deepin-15.4-all-20170518-164616/devices.md: No such file or directory
  6.   -> executing sliceinfo_fonts...
  7. /usr/bin/deepin-feedback-cli: line 450: /tmp/deepin-feedback-cli-Deepin-15.4-all-20170518-164616/fonts: No such file or directory
  8.   -> executing sliceinfo_gsettings...
  9. /usr/bin/deepin-feedback-cli: line 448: /tmp/deepin-feedback-cli-Deepin-15.4-all-20170518-164616/gsettings.md: No such file or directory
  10.   -> executing sliceinfo_service...
  11. /usr/bin/deepin-feedback-cli: line 443: /tmp/deepin-feedback-cli-Deepin-15.4-all-20170518-164616/services.md: No such file or directory
  12.   -> executing sliceinfo_audio...
  13. /usr/bin/deepin-feedback-cli: line 453: /tmp/deepin-feedback-cli-Deepin-15.4-all-20170518-164616/sysinfo.md: No such file or directory
  14. ==> Archive files...
  15. ls: cannot access '/tmp/deepin-feedback-cli-Deepin-15.4-all-20170518-164616': No such file or directory
  16. tar: Cowardly refusing to create an empty archive
  17. Try 'tar --help' or 'tar --usage' for more information.
  18. stat: cannot stat 'deepin-feedback-cli-Deepin-15.4-all-20170518-164616.tar.gz': No such file or directory
  19. /usr/bin/deepin-feedback-cli: line 817: [: : integer expression expected
  20. ==> Finished, please report a bug to Deepin team with deepin-feedback-cli-Deepin-15.4-all-20170518-164616.tar.gz in current folder as an attachment:
  21.   -> http://feedback.deepin.org/feedback
  22. me@ya:~$

Copy the Code


Reply View the author
klenta
deepin
2017-05-19 05:50
#5
Tried to fix it with :  --
  1. sudo mount -o remount,rw /
Copy the Code

But that didn't helped --
  1. sudo: unable to mkdir /var/lib/sudo/ts: Read-only file system
  2. mount: cannot remount /dev/sda6 read-write, is write-protected
Copy the Code

Reply View the author
klenta
deepin
2017-05-19 05:56
#6
df -h ==>
  1. Filesystem      Size  Used Avail Use% Mounted on
  2. udev            2.5G     0  2.5G   0% /dev
  3. tmpfs           516M  1.6M  515M   1% /run
  4. /dev/sda6        46G   22G   23G  49% /
  5. tmpfs           2.6G  134M  2.4G   6% /dev/shm
  6. tmpfs           5.0M  4.0K  5.0M   1% /run/lock
  7. tmpfs           2.6G     0  2.6G   0% /sys/fs/cgroup
  8. tmpfs           516M   24K  516M   1% /run/user/1000
Copy the Code

Reply View the author
黑色
deepin
2017-05-19 06:25
#7
if you cannot fix the filesystem from another distro or live (running fsck without mounting /),maybe you got to check your disk for badblocks......it could be a hardware failure
Reply View the author
klenta
deepin
2017-05-19 10:10
#8
https://bbs.deepin.org/post/139641
if you cannot fix the filesystem from another distro or live (running fsck without mounting /),maybe ...

Thanks, I will try it on another disk..
Reply View the author
klenta
deepin
2017-05-19 10:31
#9
F*CK! After running fsck.ext3 /dev/sda6 in Recovery mode, it worked and my system became r/w.
But right when I opened steam, it continued verifying files of Counter-Strike and the entire OS locked R/O!!!

The f*** is wrong, steam doesn't even has root privileges to mess with my f/s! BTW on ubuntu I was able to play the same game.
Reply View the author
liujianfeng
deepin
2017-05-19 18:34
#10
rm -r ~/.steam
something went wrong when you were sleeping, deleting the steam data may help
Reply View the author
黑色
deepin
2017-05-19 19:42
#11
https://bbs.deepin.org/post/139641
F*CK! After running fsck.ext3 /dev/sda6 in Recovery mode, it worked and my system became r/w.
But ri ...

reinstall steam or check your disk.....may be something wrong with steam ....still I feel problem with your hard disk,steam itself works perfectly on this distro
Reply View the author