I use Kup
to backup some files to an usb drive everyday but it has happened a few times now that I get a notification that I don’t have write permissions. I have formatted the usb drive more than once but after a few days I get the same problem again.
Kup is starting rsync backup job at Saturday, March 13, 2021 9:48:41 PM SAST
rsync "-avX" "--delete-excluded" "--delete-before" "--info=progress2" "/run/media/francois/Keepass" "/run/media/francois/SECURITY1/"
rsync: [receiver] mkstemp "/run/media/francois/SECURITY1/Keepass/.owncloudsync.log.T2p0DI" failed: Read-only file system (30)
rsync: [receiver] mkstemp "/run/media/francois/SECURITY1/Keepass/.KeePassXC_KeyboardShortcuts.html.nvfaBi" failed: Read-only file system (30)
rsync: [receiver] mkstemp "/run/media/francois/SECURITY1/Keepass/.KeePassXC_UserGuide.html.iAPcwY" failed: Read-only file system (30)
rsync: [receiver] mkstemp "/run/media/francois/SECURITY1/Keepass/.Passwords.kdbx.4aNXKR" failed: Read-only file system (30)
rsync: [receiver] mkstemp "/run/media/francois/SECURITY1/Keepass/.stversions/.Passwords~20210227-195648.kdbx.KDwT13" failed: Read-only file system (30)
rsync: [receiver] mkstemp "/run/media/francois/SECURITY1/Keepass/.stversions/.Passwords~20210306-182437.kdbx.VqI6kK" failed: Read-only file system (30)
rsync: [receiver] mkstemp "/run/media/francois/SECURITY1/Keepass/.stversions/.Passwords~20210306-183323.kdbx.PS9cfX" failed: Read-only file system (30)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=v3.2.3]
Exit code: 23
Kup did not successfully complete the rsync backup job.
I noticed that I have write permissions before Kup
attempts a backup, the backup fails and when I check in Dolphin I can’t create a file on the usb drive. If the usb drive is unplugged and plugged back in I have write permissions.
Falav
12 March 2021 23:40
3
I suspect hardware failures from your USB drive. Is it new or some years old already?
1 Like
This problem occurs on 2 usb drives.
The one is old, unsure of the second one. I’ll try another usb drive and see if that gives me the same issue later on.
Although I don’t have any problems copying data to and from the usb drives.
Falav
12 March 2021 23:48
6
Do you backup your home or your root?
And from the errors I saw about the read-only files, do your account has the rights on the mentioned files?
Not familiar with rsync but I guess it tries to overwrite an older version with a new one. If your account has not the rights on a particular file, maybe it throws this error.
It’s some files on a separate HDD that I’m backing up.
Yes I have full rights to the files.
I can read and delete them if I wanted to.
I noticed that all my other usb drives that I have never had issues with had gpt partitioning tables. The two usb drives I’m having problems with have msdos partition tables. So I went and also gave them a gpt partition table.
Falav
13 March 2021 00:04
9
I found some rsync errors read-only related on Google, with different explanations, different workarounds.
I won’t try and guess one or two at random.
But good call to move to GPT everywhere.
Getting permission errors again when Kup tires to copy files to the usb flash drive.
Fabby
14 March 2021 23:22
11
Welcome to Manjaro!
Please read this:
How to provide good information
and post some more information so we can see what’s really going on. Now we know the symptom of the disease, but we need some more probing to know where the origin lies…
An inxi --admin --verbosity=7 --filter --no-host --width
would be the minimum required information… (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
P.S. If you enter a bit more details in your profile, we can also see which Desktop Environment you’re using, which CPU/GPU or Kernel, … you have without typing it every time
[francois@francois-pc ~]$ inxi --admin --verbosity=7 --filter --no-host --width
System:
Kernel: 5.11.2-xanmod1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1
parameters: BOOT_IMAGE=/boot/vmlinuz-manjaro-xanmod
root=UUID=4d51e282-5e00-43c0-ac9e-9b64dd9c1d60 rw quiet udev.log_priority=3
Desktop: KDE Plasma 5.21.2 tk: Qt 5.15.2 wm: kwin_x11 dm: SDDM
Distro: Manjaro Linux
Machine:
Type: Desktop System: Gigabyte product: N/A v: N/A serial: <filter> Chassis:
type: 3 serial: <filter>
Mobo: Gigabyte model: H61M-S2PV REV 2.2 serial: <filter>
UEFI: American Megatrends v: Fce date: 03/03/2014
Memory:
RAM: total: 15.52 GiB used: 3.04 GiB (19.6%)
RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
Info: Single Core model: Intel Celeron G465 bits: 64 type: MT
arch: Sandy Bridge family: 6 model-id: 2A (42) stepping: 7 microcode: 2F
L2 cache: 1.5 MiB bogomips: 7582
Speed: 1878 MHz min/max: 1600/1900 MHz Core speeds (MHz): 1: 1878 2: 1871
Flags: acpi aperfmperf apic arat arch_perfmon bts clflush cmov constant_tsc
cpuid cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept est flexpriority
flush_l1d fpu fxsr ht ibpb ibrs lahf_lm lm mca mce md_clear mmx monitor msr
mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pebs pge pln pni
popcnt pse pse36 pti pts rdtscp rep_good sep ssbd sse sse2 sse4_1 sse4_2
ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_deadline_timer vme vmx vnmi
vpid xsave xsaveopt xtopology xtpr
Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf
mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
IBRS_FW, STIBP: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
vendor: Gigabyte driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0102
class ID: 0300
Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver:
loaded: intel unloaded: modesetting alternate: fbdev,vesa display ID: :0
screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0")
s-diag: 414mm (16.3")
Monitor-1: VGA1 res: 1366x768 hz: 60 dpi: 85 size: 410x230mm (16.1x9.1")
diag: 470mm (18.5")
OpenGL: renderer: Mesa DRI Intel HD Graphics 2000 (SNB GT1)
v: 3.3 Mesa 20.3.4 compat-v: 3.0 direct render: Yes
Audio:
Device-1: Intel 6 Series/C200 Series Family High Definition Audio
vendor: Gigabyte driver: snd_hda_intel v: kernel bus ID: 00:1b.0
chip ID: 8086:1c20 class ID: 0403
Sound Server: ALSA v: k5.11.2-xanmod1-MANJARO
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Gigabyte driver: r8169 v: kernel port: e000 bus ID: 02:00.0
chip ID: 10ec:8168 class ID: 0200
IF: enp2s0 state: down mac: <filter>
Device-2: TP-Link TL-WN823N v2/v3 [Realtek RTL8192EU] type: USB
driver: rtl8192eu bus ID: 1-1.1:3 chip ID: 2357:0109 class ID: 0000
serial: <filter>
IF: wlp0s26u1u1 state: up mac: <filter>
IP v4: <filter> type: dynamic noprefixroute scope: global
broadcast: <filter>
IP v6: <filter> type: noprefixroute scope: link
WAN IP: <filter>
Bluetooth:
Message: No Bluetooth data was found.
RAID:
Message: No RAID data was found.
Drives:
Local Storage: total: 945.04 GiB used: 151.51 GiB (16.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SKC600256G
size: 238.47 GiB block size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s
rotation: SSD serial: <filter> rev: 0105 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST3250318AS
size: 232.88 GiB block size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
rotation: 7200 rpm serial: <filter> rev: CC49 scheme: GPT
ID-3: /dev/sdc maj-min: 8:32 vendor: Toshiba model: DT01ACA050
size: 465.76 GiB block size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s
rotation: 7200 rpm serial: <filter> rev: A750 scheme: GPT
ID-4: /dev/sdd maj-min: 8:48 type: USB model: 512MB flash drive
size: 480.4 MiB block size: physical: 512 B logical: 512 B rotation: SSD
serial: <filter> rev: 1.0 scheme: GPT
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
ID-5: /dev/sde maj-min: 8:64 type: USB vendor: SanDisk model: Cruzer Blade
size: 7.45 GiB block size: physical: 512 B logical: 512 B serial: <filter>
rev: 1.00 scheme: GPT
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Message: No Optical or Floppy data was found.
Partition:
ID-1: / raw size: 238.17 GiB size: 233.43 GiB (98.01%)
used: 57.83 GiB (24.8%) fs: ext4 dev: /dev/sda2 maj-min: 8:2 label: N/A
uuid: 4d51e282-5e00-43c0-ac9e-9b64dd9c1d60
ID-2: /boot/efi raw size: 300 MiB size: 299.4 MiB (99.80%)
used: 3.6 MiB (1.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: N/A
uuid: 50A6-9ACA
ID-3: /run/media/francois/Keepass raw size: 100 MiB size: 92.8 MiB (92.83%)
used: 6.1 MiB (6.6%) fs: ext4 dev: /dev/sdc3 maj-min: 8:35 label: Keepass
uuid: fdbf60cf-8d36-4655-ba10-f0e894c56113
ID-4: /run/media/francois/Rescue raw size: 57.27 GiB
size: 56.12 GiB (97.99%) used: 35.28 GiB (62.9%) fs: ext4 dev: /dev/sdc1
maj-min: 8:33 label: Rescue uuid: 633e9767-7967-4635-b83b-801713eeece8
ID-5: /run/media/francois/SECURITY1 raw size: 7.45 GiB
size: 7.44 GiB (99.80%) used: 5.8 MiB (0.1%) fs: vfat dev: /dev/sde1
maj-min: 8:65 label: SECURITY1 uuid: F684-DB57
ID-6: /run/media/francois/Storage raw size: 408.39 GiB
size: 400.98 GiB (98.19%) used: 58.39 GiB (14.6%) fs: ext4 dev: /dev/dm-0
maj-min: 253:0 mapped: luks-eaac2209-6a68-4390-9733-cc54abb912bf
label: Storage uuid: 2e07b495-c332-4bd8-a74b-8dd5c9e2c628
Swap:
Alert: No Swap data was found.
Unmounted:
ID-1: /dev/sdb1 maj-min: 8:17 size: 512 KiB fs: <superuser required>
label: N/A uuid: N/A
ID-2: /dev/sdb3 maj-min: 8:19 size: 16 GiB fs: <superuser required>
label: N/A uuid: N/A
ID-3: /dev/sdd1 maj-min: 8:49 size: 479 MiB fs: ext4 label: KEY
uuid: 8280236e-db16-42a6-ae0f-ceff5d52de87
USB:
Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0
speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900
Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 4 rev: 2.0
speed: 480 Mb/s chip ID: 8087:0024 class ID: 0900
Device-1: 1-1.1:3 info: TP-Link TL-WN823N v2/v3 [Realtek RTL8192EU]
type: Network driver: rtl8192eu interfaces: 1 rev: 2.1 speed: 480 Mb/s
chip ID: 2357:0109 class ID: 0000 serial: <filter>
Hub-3: 2-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0
speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900
Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
speed: 480 Mb/s chip ID: 8087:0024 class ID: 0900
Device-1: 2-1.1:9 info: SanDisk Cruzer Blade type: Mass Storage
driver: usb-storage interfaces: 1 rev: 2.0 speed: 480 Mb/s
chip ID: 0781:5567 class ID: 0806 serial: <filter>
Device-2: 2-1.2:7
info: Silicon Integrated Systems Super Flash 1GB / GXT 64MB Flash Drive
type: Mass Storage driver: usb-storage interfaces: 1 rev: 2.0
speed: 480 Mb/s chip ID: 0457:0151 class ID: 0806 serial: <filter>
Device-3: 2-1.6:4 info: Sunplus Innovation Optical Mouse type: Mouse
driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s
chip ID: 1bcf:0007 class ID: 0301
Sensors:
System Temperatures: cpu: 29.8 C mobo: 27.8 C
Fan Speeds (RPM): N/A
Info:
Processes: 214 Uptime: 17h 05m wakeups: 2 Init: systemd v: 247 Compilers:
gcc: 10.2.0 clang: 11.1.0 Packages: pacman: 1907 lib: 455 Shell: Bash
v: 5.1.0 running in: yakuake inxi: 3.3.01
dmesg snippet with Kup disabled:
[33327.972890] usb 2-1.1: new high-speed USB device number 12 using ehci-pci
[33328.057803] usb 2-1.1: New USB device found, idVendor=0781, idProduct=5567, bcdDevice= 1.00
[33328.057811] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[33328.057815] usb 2-1.1: Product: Cruzer Blade
[33328.057817] usb 2-1.1: Manufacturer: SanDisk
[33328.057820] usb 2-1.1: SerialNumber: 4C530000020424111240
[33328.058111] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[33328.058303] scsi host6: usb-storage 2-1.1:1.0
[33328.178897] usb 2-1.2: reset high-speed USB device number 7 using ehci-pci
[33329.068072] scsi 6:0:0:0: Direct-Access SanDisk Cruzer Blade 1.00 PQ: 0 ANSI: 6
[33329.072435] sd 6:0:0:0: Attached scsi generic sg4 type 0
[33329.075613] sd 6:0:0:0: [sde] 15630336 512-byte logical blocks: (8.00 GB/7.45 GiB)
[33329.077492] sd 6:0:0:0: [sde] Write Protect is off
[33329.077500] sd 6:0:0:0: [sde] Mode Sense: 43 00 00 00
[33329.078570] sd 6:0:0:0: [sde] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[33329.116602] sde: sde1
[33329.128170] sd 6:0:0:0: [sde] Attached SCSI removable disk
Dmesg snippet with Kup enabled:
[33592.672039] usb 2-1.1: new high-speed USB device number 13 using ehci-pci
[33592.755055] usb 2-1.1: New USB device found, idVendor=0781, idProduct=5567, bcdDevice= 1.00
[33592.755067] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[33592.755071] usb 2-1.1: Product: Cruzer Blade
[33592.755073] usb 2-1.1: Manufacturer: SanDisk
[33592.755075] usb 2-1.1: SerialNumber: 4C530000020424111240
[33592.756153] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[33592.764071] scsi host6: usb-storage 2-1.1:1.0
[33593.779199] scsi 6:0:0:0: Direct-Access SanDisk Cruzer Blade 1.00 PQ: 0 ANSI: 6
[33593.783685] sd 6:0:0:0: Attached scsi generic sg4 type 0
[33593.790117] sd 6:0:0:0: [sde] 15630336 512-byte logical blocks: (8.00 GB/7.45 GiB)
[33593.791690] sd 6:0:0:0: [sde] Write Protect is off
[33593.791698] sd 6:0:0:0: [sde] Mode Sense: 43 00 00 00
[33593.793945] sd 6:0:0:0: [sde] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[33593.835740] sde: sde1
[33593.845194] sd 6:0:0:0: [sde] Attached SCSI removable disk
[33594.252700] FAT-fs (sde1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[33596.444218] FAT-fs (sde1): error, fat_free_clusters: deleting FAT entry beyond EOF
[33596.444227] FAT-fs (sde1): Filesystem has been set read-only
Fabby
15 March 2021 17:59
14
If you did not physically remove the SanDisk Cruzer Blade (sde
) USB stick without unmounting it first: its connection is wonky: use another USB port of if that doesn’t help: replace the USB stick.
If even that doesn’t work, don’t use KDE auto-mounts but use SystemD auto-mounts instead.
P.S. If any of the above sounds like me asking you to replace your flux capacitor because its output is 2 Kilo-Cochranes below nominal capacity, :
I installed Grsync
and copied the command that it gave me.
Then I scheduled that command to run by using Zeit
.
Been using that for a few days and so far I haven’t had any problems.
Does SystemD auto-mounts have a GUI?
Are there any other options that have a GUI?
Fabby
19 March 2021 14:35
18
If you haven’t read this yet:
Difficulty: ☆☆☆☆☆
Remember when you installed your very first Windows, added bells and whistles and then couldn’t see the wood for the trees any more and had to re-install?
Well, you’re in the same situation now: You’re a N00b again! Embrace it!
I know right now you’re thinking:
Why is this so much more difficult than Windows? [image]
Whereas in 6 months time, you’ll be like:
Why can't I make Windows jump through fiery hoops like I do with Linux??? <a class="lightbox&qu…
Read it, especially this bit:
Yeah, the one you’re using but that’s not a good fit for what you’re trying to do, as you’ve noticed.
Still auto mounting with KDE-automounts and I haven’t had another issue.
Could it be that Kup wanted to start the backup before the usb drive was properly mounted?
1 Like
Been using linux for about 1.5 years now but that still seems like an interesting read
1 Like