well begin with removing the line from fstab for mounting the usb drive
My power supply works fine.
My USB stick works fine.
My SDCard is brand new.
I can manage a backup and transfer the file to the USB stick if I use the command
sudo mount -o uid=osmc,gid=osmc /dev/sda1 /mnt/usbstorage
I have commented the instruction in the fstab… but what should I do then, to automount the USB unit?
If you have a proper label and there are no errors on the USB stick it will be automounted at /media/ without anything that you would need to do!
It does not work.
The stick does not mount automatically.
I don’t get it; how can it be automounted if ther are no instruction in the fstab file.
And why does it suddenly fail?
Something breaks it since the last backup. And the only thing that changed were the last 2 updates.
Did the e2label succeed?
OSMC has a UDEV rule that mounts every USB drive automatically under /media
Provide another grab-logs -A
Well I only can tell you everything works fine here with the latest updates. And as we indicated your syslog shows “Buffer I/O error on dev sda1” which shows issues on the sda
Oops! No!
I had this:
e2label: Bad magic number in super-block while trying to open /dev/sda1
Couldn’t find valid filesystem superblock.
So basically it is not a ext4 filesystem or it is broken.
So as you seems to be able to manually mount it provide output of mount
now so that we can understand which filesystem might be on there
It has been formated in FAT32 using
mkdosfs -F 32 -I /dev/
I don’t get why I have this EXT4 in the fstab entry.
Maybe a typo at the initial setup 2 years ago.
Did you give it a label?
Well…
I did this when formating:
mkdosfs -F 32 -I /dev/usbstorage
I did it in FAT32 to have access from Windows machines on the LAN.
Ok that might not give it a label.
Also I wonder why it would be /dev/usbstorage
well the format of the stick doesn’t make a difference for that as you are using samba to share it in the LAN
Ext4 is better for linux since its a native filesystem
Okey.
So Mr (or Mrs) fzinken, as you see I’m a total newbie and a perfect idiot.
By magic, it has worked for 2 years and now it’s broken since it’s a total mess.
I have to go now to the dentist.
I’ll come back later (with a toothache) to fix that definitely
Reformating the stick in the right format (EXT4?),
AND at the right place (media?).
See you.
And big thank to you.
Ok, so backup the data on your stick going for EXT4 would be best
- Format the stick with
mkfs.ext4 /dev/sda1 -L usbstorage
- Change your smb.conf to path=/media/usbstorage
- Reboot and check with
mount
that stick is mounted correctly
All of that would assume that your USB stick (and power supply) is still working fine (which the error messages indicate differently). But let’s give it a try.
Back!
- format: done
- smb.conf: done
- reboot: done
Checked with the mount command, but no usbstorage:
devtmpfs on /dev type devtmpfs (rw,relatime,size=369672k,nr_inodes=92418,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /run type tmpfs (rw,relatime)
/dev/mmcblk0p2 on / type ext4 (rw,noatime,stripe=1024,data=ordered)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
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)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,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)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/mmcblk0p1 on /boot type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=74960k,mode=700,uid=1000,gid=1000)
Trying to mount it manually gave:
osmc@osmc:~$ sudo mount -o uid=osmc,gid=osmc /dev/sda1 /media/usbstorage
mount: mount point /media/usbstorage does not exist
???
grab-logs -A
Maybe @DBMandrake has an idea why the automounter is not working!
For the time being you should be able to manually mount it with sudo mount -o uid=osmc,gid=osmc /dev/sda1 /mnt/usbstorage
I should but no way:
the above command gave:
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try dmesg | tail or so.
and dmesg gave:
[ 13.444717] blk_update_request: I/O error, dev sda, sector 121110400
[ 13.444735] Buffer I/O error on dev sda1, logical block 15138288, async page read
[ 14.700804] Console: switching to colour dummy device 80x30
[ 14.753439] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 15.073453] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 15.393453] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 15.713506] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 16.033465] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 16.353448] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 16.484684] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 16.484707] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 07 37 ff 80 00 00 08 00
[ 16.484718] blk_update_request: I/O error, dev sda, sector 121110400
[ 16.643534] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 16.973460] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 17.313446] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 17.643493] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 17.973421] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 18.293459] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 18.424694] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 18.424718] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 07 37 ff 80 00 00 08 00
[ 18.424729] blk_update_request: I/O error, dev sda, sector 121110400
[ 18.424742] Buffer I/O error on dev sda1, logical block 15138288, async page read
[ 614.126903] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 614.446933] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 614.766928] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 615.086893] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 615.406923] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 615.726897] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 615.858329] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 615.858379] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 07 37 ff 80 00 00 08 00
[ 615.858403] blk_update_request: I/O error, dev sda, sector 121110400
[ 616.016897] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 616.336924] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 616.656935] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 616.976943] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 617.296920] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 617.616962] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 617.748327] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 617.748358] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 07 37 ff 80 00 00 08 00
[ 617.748374] blk_update_request: I/O error, dev sda, sector 121110400
[ 617.748396] Buffer I/O error on dev sda1, logical block 15138288, async page read
[ 2324.466577] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 2324.786578] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 2325.106583] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 2325.436584] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 2325.756588] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 2326.076585] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 2326.207732] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 2326.207758] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 07 37 ff 80 00 00 08 00
[ 2326.207770] blk_update_request: I/O error, dev sda, sector 121110400
[ 2326.366554] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 2326.686616] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 2327.006621] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 2327.326599] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 2327.646597] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 2327.966611] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 2328.097992] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 2328.098028] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 07 37 ff 80 00 00 08 00
[ 2328.098044] blk_update_request: I/O error, dev sda, sector 121110400
[ 2328.098064] Buffer I/O error on dev sda1, logical block 15138288, async page read
[ 2328.106977] F2FS-fs (sda1): Magic Mismatch, valid(0xf2f52010) - read(0x0)
[ 2328.106998] F2FS-fs (sda1): Can’t find valid F2FS filesystem in 1th superblock
[ 2328.107610] F2FS-fs (sda1): Magic Mismatch, valid(0xf2f52010) - read(0x100000)
[ 2328.107625] F2FS-fs (sda1): Can’t find valid F2FS filesystem in 2th superblock
[ 2328.107674] F2FS-fs (sda1): Magic Mismatch, valid(0xf2f52010) - read(0x0)
[ 2328.107684] F2FS-fs (sda1): Can’t find valid F2FS filesystem in 1th superblock
[ 2328.107694] F2FS-fs (sda1): Magic Mismatch, valid(0xf2f52010) - read(0x100000)
[ 2328.107703] F2FS-fs (sda1): Can’t find valid F2FS filesystem in 2th superblock
Which brings us back to the start that your USB stick is gone