read only root SSD

The next boot after the updates of 26 Aug I lost write access to my root partition on an SSD drive and internet (DNS fails but ip works). All indications are that the drive and partitions are mounted read write. Any attempt to change, add or delete files on the root device (/dev/sda1) gives “Read-only file system”.
Example: in /root directory

echo “test” > temp

-bash: temp: Read-only file system

Below are relevant files and outputs (zypp/history /etc/fstab /etc/mtab mount smartctl)

– tail -100 /var/log/zypp/history –

2014-08-26 21:05:22|install|kexec-tools|2.0.3-5.4.1|x86_64||download.opensuse.org-update|919b04f0fc6b3ff4828cc951337805dc3ed1d70fd18f14cc2017e2b0f1f2b63b|

2014-08-26 21:06:33 ucode-amd-20130714git-2.21.1.noarch.rpm installed ok

Additional rpm output:

Scanning scripts …

Resolve dependencies …

Install symlinks in /lib/mkinitrd/setup …

Install symlinks in /lib/mkinitrd/boot …

Scanning scripts …

Resolve dependencies …

Install symlinks in /lib/mkinitrd/setup …

Install symlinks in /lib/mkinitrd/boot …

Kernel image: /boot/vmlinuz-3.11.10-17-desktop

Initrd image: /boot/initrd-3.11.10-17-desktop

Root device: UUID=c4db234c-c43f-41c8-8189-3473503eb826 (/dev/sda1) (mounted on / as btrfs)

Resume device: /dev/sdb3

Microcode: Adding AMD microcode microcode_amd_fam15h.bin

Kernel Modules: thermal_sys thermal processor fan scsi_dh scsi_dh_alua scsi_dh_emc scsi_dh_hp_sw scsi_dh_rdac libcrc32c xor zlib_deflate raid6_pq btrfs arcmsr xhci-hcd hid-logitech-dj hid-holtek-kbd hid-lenovo-tpkbd hid-ortek hid-roccat hid-roccat-common hid-roccat-arvo hid-roccat-isku hid-samsung ohci-pci crc32c-intel

Features: acpi amd_microcode plymouth block usb btrfs resume.userspace resume.kernel

Kernel image: /boot/vmlinuz-3.11.10-21-desktop

Initrd image: /boot/initrd-3.11.10-21-desktop

Root device: UUID=c4db234c-c43f-41c8-8189-3473503eb826 (/dev/sda1) (mounted on / as btrfs)

Resume device: /dev/sdb3

Microcode: Adding AMD microcode microcode_amd_fam15h.bin

Kernel Modules: thermal_sys thermal processor fan scsi_dh scsi_dh_alua scsi_dh_emc scsi_dh_hp_sw scsi_dh_rdac libcrc32c xor zlib_deflate raid6_pq btrfs arcmsr xhci-hcd hid-logitech-dj hid-holtek-kbd hid-lenovo-tpkbd hid-ortek hid-roccat hid-roccat-common hid-roccat-arvo hid-roccat-isku hid-samsung ohci-pci crc32c-intel

Features: acpi amd_microcode plymouth block usb btrfs resume.userspace resume.kernel

Scanning scripts …

Resolve dependencies …

Install symlinks in /lib/mkinitrd/setup …

Install symlinks in /lib/mkinitrd/boot …

Kernel image: /boot/vmlinuz-3.11.10-17-desktop

Initrd image: /boot/initrd-3.11.10-17-desktop

Root device: UUID=c4db234c-c43f-41c8-8189-3473503eb826 (/dev/sda1) (mounted on / as btrfs)

Resume device: /dev/sdb3

Microcode: Adding AMD microcode microcode_amd_fam15h.bin

Kernel Modules: thermal_sys thermal processor fan scsi_dh scsi_dh_alua scsi_dh_emc scsi_dh_hp_sw scsi_dh_rdac libcrc32c xor zlib_deflate raid6_pq btrfs arcmsr xhci-hcd hid-logitech-dj hid-holtek-kbd hid-lenovo-tpkbd hid-ortek hid-roccat hid-roccat-common hid-roccat-arvo hid-roccat-isku hid-samsung ohci-pci crc32c-intel

Features: acpi amd_microcode plymouth block usb btrfs resume.userspace resume.kernel

Kernel image: /boot/vmlinuz-3.11.10-21-desktop

Initrd image: /boot/initrd-3.11.10-21-desktop

Root device: UUID=c4db234c-c43f-41c8-8189-3473503eb826 (/dev/sda1) (mounted on / as btrfs)

Resume device: /dev/sdb3

Microcode: Adding AMD microcode microcode_amd_fam15h.bin

Kernel Modules: thermal_sys thermal processor fan scsi_dh scsi_dh_alua scsi_dh_emc scsi_dh_hp_sw scsi_dh_rdac libcrc32c xor zlib_deflate raid6_pq btrfs arcmsr xhci-hcd hid-logitech-dj hid-holtek-kbd hid-lenovo-tpkbd hid-ortek hid-roccat hid-roccat-common hid-roccat-arvo hid-roccat-isku hid-samsung ohci-pci crc32c-intel

Features: acpi amd_microcode plymouth block usb btrfs resume.userspace resume.kernel

2014-08-26 21:06:33|install|ucode-amd|20130714git-2.21.1|noarch||download.opensuse.org-update|d11716e109783b95a02e96b2eeab7b93749991dc7d8057bbd8e323c1b58f9009|
2014-08-26 21:06:58|install|google-chrome-stable|37.0.2062.94-1|i386|root@linux-j865|google-chrome|03d2693861bfe1dc34769fbf1cbf8fb6254b527c|

–/etc/fstab—

/dev/sdb3 swap swap defaults 0 0
/dev/disk/by-id/scsi-2001b4d2006000000-part1 swap swap defaults 0 0
UUID=c4db234c-c43f-41c8-8189-3473503eb826 / btrfs defaults 0 0
/dev/sdb1 /boot ext4 acl,user_xattr 1 2
/dev/sdb4 /home ext4 defaults 1 2
UUID=e779bc35-7462-4260-876f-29266f4448f8 /tmp btrfs defaults 0 0
UUID=afaafaa8-4fe9-43e7-8cd8-e3b31e550ea6 /var btrfs defaults 0 0

–/etc/mtab–

rootfs / rootfs rw 0 0
devtmpfs /dev devtmpfs rw,relatime,size=66088080k,nr_inodes=16522020,mode=755 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/sda1 / btrfs rw,relatime,space_cache 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct,cpu 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/net_cls cgroup rw,nosuid,nodev,noexec,relatime,net_cls 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=37,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,relatime 0 0
/dev/sdc4 /tmp btrfs rw,relatime,space_cache 0 0
/dev/sdc3 /var btrfs rw,relatime,space_cache 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
/dev/sdb4 /home ext4 rw,relatime,data=ordered 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
/dev/sdb1 /boot ext4 rw,relatime,data=ordered 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=100 0 0
gvfsd-fuse /var/run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=100 0 0
/dev/sdh1 /run/media/s13.1/491C-92BD vfat rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro 0 0
/dev/sdh1 /var/run/media/s13.1/491C-92BD vfat rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro 0 0

–mount–

devtmpfs on /dev type devtmpfs (rw,relatime,size=66088080k,nr_inodes=16522020,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
/dev/sda1 on / type btrfs (rw,relatime,space_cache)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=37,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
/dev/sdc4 on /tmp type btrfs (rw,relatime,space_cache)
/dev/sdc3 on /var type btrfs (rw,relatime,space_cache)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sdb4 on /home type ext4 (rw,relatime,data=ordered)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sdb1 on /boot type ext4 (rw,relatime,data=ordered)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
gvfsd-fuse on /var/run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
/dev/sdh1 on /run/media/s13.1/491C-92BD type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
/dev/sdh1 on /var/run/media/s13.1/491C-92BD type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro)

– smartctl -a /dev/sda1 –

smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.11.10-21-desktop] (SUSE RPM)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor: INTEL
Product: SSDSC2CW120A3
Revision: R001
User Capacity: 120,034,123,776 bytes [120 GB]
Logical block size: 512 bytes
Rotation Rate: 10000 rpm
Logical Unit id: 0x001b4d20807a2120
Serial number: CVCV203508Z7120B
Device type: disk
Transport protocol: Fibre channel (FCP-2)
Local Time is: Fri Aug 29 10:03:35 2014 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Disabled or Not Supported

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Current Drive Temperature: 30 C
Drive Trip Temperature: 25 C

Manufactured in week 30 of year 2002
Specified cycle count over device lifetime: 4278190080
Accumulated start-stop cycles: 256
Elements in grown defect list: 0

Error counter log:
Errors Corrected by Total Correction Gigabytes Total
ECC rereads/ errors algorithm processed uncorrected
fast | delayed rewrites corrected invocations [10^9 bytes] errors
read: 0 0 0 0 0 0.000 0
write: 0 0 0 0 0 0.000 0

Non-medium error count: 0

Device does not support Self Test logging

Please help. I may need to reinstall on the other disk.

On 2014-08-29 16:46, doudavisej wrote:
>
> The next boot after the updates of 26 Aug I lost write access to my root
> partition on an SSD drive and internet (DNS fails but ip works). All
> indications are that the drive and partitions are mounted read write.
> Any attempt to change, add or delete files on the root device
> (/dev/sda1) gives “Read-only file system”.

Any other partition in sda?

> Below are relevant files and outputs (zypp/history /etc/fstab
> /etc/mtab mount smartctl)

messages log would be interesting.

Also an fsck run on it.

A comment: When pasting here computer commands and such, please use a
CODE BLOCK, so that the forum software doesn’t do silly things like
converting URLS to tiny urls or otherwise hide or alter the commands you
entered. You get them by clicking on the ‘#’ button in the forum editor.
See photo

> --/etc/fstab—
>


> UUID=c4db234c-c43f-41c8-8189-3473503eb826 /     btrfs     defaults              0 0

I’m not very familiar with btrfs. Did you write that “0 0”, or did YaST?

>
> – smartctl -a /dev/sda1 –

Ah, no. Run it against sda, not sda1.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Robin

Only one partition on sda

fsck only gives an exit code of 0 - No errors and returns instantly. It is mounted / partion.

smartctl gives the same result with /dev/sda

dmesg just after
reboot
echo “test” > ~/temp


    4.227927] raid6: using ssse3x2 recovery algorithm
    4.231189] bio: create slab <bio-1> at 1
    4.231623] Btrfs loaded
    4.261623] device fsid c4db234c-c43f-41c8-8189-3473503eb826 devid 1 transid 12149 /dev/sda1
    4.264873] device fsid c4db234c-c43f-41c8-8189-3473503eb826 devid 1 transid 12149 /dev/sda1
    4.269091] device fsid afaafaa8-4fe9-43e7-8cd8-e3b31e550ea6 devid 1 transid 47092 /dev/sdc3
    4.272364] device fsid e779bc35-7462-4260-876f-29266f4448f8 devid 1 transid 27955 /dev/sdc4
    4.275722] device fsid e779bc35-7462-4260-876f-29266f4448f8 devid 1 transid 27955 /dev/sdc4
    4.278548] device fsid afaafaa8-4fe9-43e7-8cd8-e3b31e550ea6 devid 1 transid 47092 /dev/sdc3
    4.282050] usb 4-2: New USB device found, idVendor=046d, idProduct=c318
    4.282053] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
. . . 
    4.695188] device fsid c4db234c-c43f-41c8-8189-3473503eb826 devid 1 transid 12149 /dev/sda1
    4.695620] btrfs: disk space caching is enabled
    4.845346] systemd[1]: systemd 208 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX -IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ)
    4.861431] systemd[1]: Inserted module 'autofs4'
    4.861890] systemd[1]: Set hostname to <linux-j865>.
    4.905105] device-mapper: uevent: version 1.0.3
    4.905201] device-mapper: ioctl: 4.25.0-ioctl (2013-06-26) initialised: dm-devel@redhat.com
    4.905987] LVM: Logical Volume autoactivation enabled.
    4.906012] LVM: Activation generator successfully completed.
    4.985486] systemd[1]: Starting Collect Read-Ahead Data...
    4.986359] systemd[1]: Starting Replay Read-Ahead Data...
    4.986760] systemd[1]: Starting Remote File Systems (Pre).
    4.986801] systemd[1]: Reached target Remote File Systems (Pre).
    4.986820] systemd[1]: Starting Remote File Systems.
    4.986853] systemd[1]: Reached target Remote File Systems.
    4.986864] systemd[1]: Starting Syslog Socket.
    4.986927] systemd[1]: Listening on Syslog Socket.
    4.986943] systemd[1]: Starting Delayed Shutdown Socket.
    4.986994] systemd[1]: Listening on Delayed Shutdown Socket.
    4.987005] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
    4.987049] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    4.987061] systemd[1]: Starting LVM2 metadata daemon socket.
    4.987110] systemd[1]: Listening on LVM2 metadata daemon socket.
    4.987130] systemd[1]: Starting Journal Socket.
    4.987197] systemd[1]: Listening on Journal Socket.
    4.987211] systemd[1]: Starting Create dynamic rule for /dev/root link...
    4.987634] systemd[1]: Starting LSB: Set default boot entry if called...
    4.987960] systemd[1]: Starting Journal Service...
    4.988444] systemd[1]: Started Journal Service.
    5.103154] systemd-journald[490]: Vacuuming done, freed 0 bytes
    5.235972] systemd-udevd[522]: starting version 208
    5.249847] sd 4:0:0:0: Attached scsi generic sg0 type 0
    5.249901] sd 4:0:1:0: Attached scsi generic sg1 type 0
    5.249976] sd 4:0:2:0: Attached scsi generic sg2 type 0
    5.250038] scsi 4:0:16:0: Attached scsi generic sg3 type 3
    5.305042] btrfs bad tree block start 41072772261204 16726065152
    5.305237] btrfs bad tree block start 41072772261204 16726065152
    5.305284] btrfs bad tree block start 41072772261204 16726065152
    5.305324] btrfs bad tree block start 41072772261204 16726065152
    5.305335] BTRFS debug (device sda1): run_one_delayed_ref returned -5
    5.305338] ------------ cut here ]------------
    5.305355] WARNING: CPU: 14 PID: 518 at /home/abuild/rpmbuild/BUILD/kernel-desktop-3.11.10/linux-3.11/fs/btrfs/super.c:253 __btrfs_abort_transaction+0x10d/0x120 [btrfs]()
    5.305356] btrfs: Transaction aborted (error -5)
    5.305358] Modules linked in: sg snd_seq snd_timer snd_seq_device snd soundcore dm_mod autofs4 btrfs raid6_pq zlib_deflate xor libcrc32c crc32c_intel arcmsr ohci_pci xhci_hcd processor thermal_sys scsi_dh_rdac scsi_dh_hp_sw scsi_dh_emc scsi_dh_alua scsi_dh
    5.305373] CPU: 14 PID: 518 Comm: mount Not tainted 3.11.10-21-desktop #1
    5.305374] Hardware name: Supermicro H8DG6/H8DGi/H8DG6/H8DGi, BIOS 3.5        11/25/2013
    5.305377]  0000000000000009 ffffffff815a0392 ffff88080ead3cf8 ffffffff81050eb2
    5.305382]  00000000fffffffb ffff88080ead3d48 ffff88200ed37ef0 ffffffffa0222840
    5.305385]  0000000000000a7d ffffffff81050f17 ffffffffa0226398 0000000000000020
    5.305388] Call Trace:
    5.305402]  <ffffffff81004a28>] dump_trace+0x88/0x310
    5.305406]  <ffffffff81004d80>] show_stack_log_lvl+0xd0/0x1d0
    5.305410]  <ffffffff810061bc>] show_stack+0x1c/0x50
    5.305416]  <ffffffff815a0392>] dump_stack+0x50/0x89
    5.305423]  <ffffffff81050eb2>] warn_slowpath_common+0x72/0x90
    5.305427]  <ffffffff81050f17>] warn_slowpath_fmt+0x47/0x50
    5.305434]  <ffffffffa018969d>] __btrfs_abort_transaction+0x10d/0x120 [btrfs]
    5.305453]  <ffffffffa01a3fb6>] btrfs_run_delayed_refs+0x426/0x520 [btrfs]
    5.305483]  <ffffffffa01b3754>] btrfs_commit_transaction+0x44/0x9e0 [btrfs]
    5.305517]  <ffffffff811b2b1a>] sync_filesystem+0x6a/0xa0
    5.305522]  <ffffffff8118840c>] __do_remount_sb+0x4c/0x1b0
    5.305528]  <ffffffff811a5688>] do_mount+0x698/0xa40
    5.305533]  <ffffffff811a5aac>] SyS_mount+0x7c/0xc0
    5.305538]  <ffffffff815adfed>] system_call_fastpath+0x1a/0x1f
    5.305543]  <00007f14a0a8009a>] 0x7f14a0a80099
    5.305544] --- end trace 078bb584c5b27580 ]---
    5.305547] BTRFS error (device sda1) in btrfs_run_delayed_refs:2685: errno=-5 IO failure
    5.305549] BTRFS info (device sda1): forced readonly
    5.305552] btrfs: disk space caching is enabled
...
  140.719777] scsi8 : usb-storage 1-3:1.0
  141.721825] scsi 8:0:0:0: Direct-Access              USB Flash Memory 6.50 PQ: 0 ANSI: 0 CCS
  141.722304] sd 8:0:0:0: Attached scsi generic sg9 type 0
  141.723531] scsi 8:0:0:1: CD-ROM                     USB Flash Memory 6.50 PQ: 0 ANSI: 0
  141.723904] sd 8:0:0:0: [sdh] 1944287 512-byte logical blocks: (995 MB/949 MiB)
  141.725144] sd 8:0:0:0: [sdh] Write Protect is off
  141.725152] sd 8:0:0:0: [sdh] Mode Sense: 45 00 00 08
  141.726392] sd 8:0:0:0: [sdh] No Caching mode page found
  141.726399] sd 8:0:0:0: [sdh] Assuming drive cache: write through
  141.727022] sr1: scsi3-mmc drive: 8x/40x writer xa/form2 cdda tray
  141.728232] sr 8:0:0:1: Attached scsi CD-ROM sr1
  141.730242] sr 8:0:0:1: Attached scsi generic sg10 type 5
  141.732795] sd 8:0:0:0: [sdh] No Caching mode page found
  141.732800] sd 8:0:0:0: [sdh] Assuming drive cache: write through
  141.736014]  sdh: sdh1
  141.743077] sd 8:0:0:0: [sdh] No Caching mode page found
  141.743085] sd 8:0:0:0: [sdh] Assuming drive cache: write through
  141.743090] sd 8:0:0:0: [sdh] Attached SCSI removable disk
  141.835686] sr 8:0:0:1: GET_EVENT and TUR disagree continuously, suppress GET_EVENT events
  153.302579] SFW2-INext-DROP-DEFLT IN=enp2s0f0 OUT= MAC= SRC=fe80:0000:0000:0000:0ec4:7aff:fe00:ed0a DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
  185.294952] SFW2-INext-DROP-DEFLT IN=enp2s0f0 OUT= MAC= SRC=fe80:0000:0000:0000:0ec4:7aff:fe00:ed0a DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
  197.061786] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.

I see the error but have no idea what it means.
Thanks

On 2014-08-29 19:56, doudavisej wrote:
>
> Robin
>
> Only one partition on sda
>
> fsck only gives an exit code of 0 - No errors and returns instantly. It
> is mounted / partion.

Well, of course, you have to umount it. And as that is impossible, you
have to use a rescue system. I suggest you download and copy to an USB
stick the 13.1 XFCE rescue image from the official openSUSE download
site. It is about CD size. Then boot it, and attempt to fsck that
partition from it.

> smartctl gives the same result with /dev/sda

Now that’s weird.

> dmesg just after
> reboot
> echo “test” > ~/temp
>
>
> Code:
> --------------------
>

> 4.988444] systemd[1]: Started Journal Service.
> 5.103154] systemd-journald[490]: Vacuuming done, freed 0 bytes
> 5.235972] systemd-udevd[522]: starting version 208
> 5.249847] sd 4:0:0:0: Attached scsi generic sg0 type 0
> 5.249901] sd 4:0:1:0: Attached scsi generic sg1 type 0
> 5.249976] sd 4:0:2:0: Attached scsi generic sg2 type 0
> 5.250038] scsi 4:0:16:0: Attached scsi generic sg3 type 3
> 5.305042] btrfs bad tree block start 41072772261204 16726065152
> 5.305237] btrfs bad tree block start 41072772261204 16726065152
> 5.305284] btrfs bad tree block start 41072772261204 16726065152
> 5.305324] btrfs bad tree block start 41072772261204 16726065152

So there is indeed corruption on the filesystem. That’s why it is
switched to read-only.

> 5.305335] BTRFS debug (device sda1): run_one_delayed_ref returned -5
> 5.305338] ------------ cut here ]------------
> 5.305355] WARNING: CPU: 14 PID: 518 at /home/abuild/rpmbuild/BUILD/kernel-desktop-3.11.10/linux-3.11/fs/btrfs/super.c:253 __btrfs_abort_transaction+0x10d/0x120 btrfs
> 5.305356] btrfs: Transaction aborted (error -5)

> 5.305544] — end trace 078bb584c5b27580 ]—
> 5.305547] BTRFS error (device sda1) in btrfs_run_delayed_refs:2685: errno=-5 IO failure
> 5.305549] BTRFS info (device sda1): forced readonly

See? read-only. I was expecting to find this - and I promise that I’m
writing this as I read your post; meaning, I wrote the previous
paragraph without having seen that line above. It was obvious :wink:

> 5.305552] btrfs: disk space caching is enabled
> …
>
> --------------------
>
>
> I see the error but have no idea what it means.

The kernel dump is a “warning”, not an error. Your btrfs partition is
corrupted and needs to be repaired, and that has to be done from another
running Linux.

I suggest you make a backup, run the fsck as said, and if that fails,
reformat and restore data.

Not many people understand btrfs… I don’t.

Then I might be totally wrong, and it is the hardware that has a
problem, and this reflects on the filesystem… that smartctl fails to
run worries me.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)