Removing files on USB thumb drive originally written by Mac

❯ garuda-inxi                                                                                                                                                                                                 526.6 Mbps  ─╯
System:
  Kernel: 5.15.16-1-lts x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-lts
    root=UUID=0971afba-13f1-4f58-9dc9-2efda4002dba rw rootflags=subvol=@
    quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    systemd.unified_cgroup_hierarchy=1 loglevel=3
  Desktop: KDE Plasma 5.23.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11
    vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: System76 model: Thelio Major v: thelio-major-r2
    serial: <superuser required> UEFI: System76 v: F4c Z5 date: 06/30/2020
CPU:
  Info: model: AMD Ryzen Threadripper 3960X bits: 64 type: MT MCP arch: Zen 2
    family: 0x17 (23) model-id: 0x31 (49) stepping: 0 microcode: 0x8301025
  Topology: cpus: 1x cores: 24 tpc: 2 threads: 48 smt: enabled cache:
    L1: 1.5 MiB desc: d-24x32 KiB; i-24x32 KiB L2: 12 MiB desc: 24x512 KiB
    L3: 128 MiB desc: 8x16 MiB
  Speed (MHz): avg: 3655 high: 4170 min/max: 2200/4568 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 3704 2: 3592
    3: 3592 4: 3608 5: 3592 6: 3698 7: 4170 8: 3968 9: 3989 10: 3593 11: 3591
    12: 3591 13: 3588 14: 3600 15: 3593 16: 3589 17: 3587 18: 3592 19: 3808
    20: 3595 21: 3887 22: 3539 23: 3497 24: 3808 25: 3591 26: 3595 27: 3591
    28: 3960 29: 3579 30: 3772 31: 3593 32: 3592 33: 3941 34: 3592 35: 3592
    36: 3583 37: 3590 38: 3585 39: 3592 40: 3587 41: 3593 42: 3590 43: 3712
    44: 3587 45: 3588 46: 3605 47: 3480 48: 3595 bogomips: 364117
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  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 AMD retpoline, IBPB: conditional,
    STIBP: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060 SUPER] vendor: eVga.com.
    driver: nvidia v: 495.46 alternate: nouveau,nvidia_drm bus-ID: 21:00.0
    chip-ID: 10de:1f06 class-ID: 0300
  Device-2: Logitech BRIO Ultra HD Webcam type: USB
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo bus-ID: 2-1:2
    chip-ID: 046d:085e class-ID: 0300 serial: <filter>
  Device-3: Elgato Systems Cam Link 4K type: USB
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo bus-ID: 2-2:3
    chip-ID: 0fd9:0066 class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org 1.21.1.3 compositor: kwin_x11 driver:
    loaded: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 162 s-size: 602x341mm (23.7x13.4")
    s-diag: 692mm (27.2")
  Monitor-1: HDMI-0 res: 3840x2160 hz: 60 dpi: 163
    size: 600x340mm (23.6x13.4") diag: 690mm (27.2")
  OpenGL: renderer: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2
    v: 4.6.0 NVIDIA 495.46 direct render: Yes
Audio:
  Device-1: NVIDIA TU106 High Definition Audio vendor: eVga.com.
    driver: snd_hda_intel v: kernel bus-ID: 21:00.1 chip-ID: 10de:10f9
    class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio driver: snd_hda_intel v: kernel
    bus-ID: 23:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Logitech BRIO Ultra HD Webcam type: USB
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo bus-ID: 2-1:2
    chip-ID: 046d:085e class-ID: 0300 serial: <filter>
  Device-4: Elgato Systems Cam Link 4K type: USB
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo bus-ID: 2-2:3
    chip-ID: 0fd9:0066 class-ID: 0102 serial: <filter>
  Device-5: Audio-Technica ATR2100x-USB Microphone type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 5-1:2 chip-ID: 0909:004d
    class-ID: 0300
  Device-6: C-Media Vanatoo T0 type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 7-2:3 chip-ID: 0d8c:0012
    class-ID: 0300
  Device-7: Giga-Byte USB Audio type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 7-5:5 chip-ID: 0414:a002
    class-ID: 0300
  Sound Server-1: ALSA v: k5.15.16-1-lts running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.44 running: yes
Network:
  Device-1: Intel I211 Gigabit Network vendor: Gigabyte driver: igb v: kernel
    port: 9000 bus-ID: 43:00.0 chip-ID: 8086:1539 class-ID: 0200
  IF: enp67s0 state: down mac: <filter>
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 44:00.0
    chip-ID: 8086:2723 class-ID: 0280
  IF: wlo2 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 9-5:6 chip-ID: 8087:0029 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 2 state: up address: <filter>
Drives:
  Local Storage: total: 2.72 TiB used: 452.46 GiB (16.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: SSD 970 EVO Plus 1TB size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 2B2QEXM7 temp: 54.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:1 vendor: Samsung
    model: SSD 970 EVO Plus 1TB size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 2B2QEXM7 temp: 54.9 C scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 type: USB vendor: Patriot model: N/A
    size: 922.5 GiB block-size: physical: 512 B logical: 512 B type: N/A
    serial: <filter> rev: PMAP scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  ID-1: / raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 419.08 GiB (45.0%) fs: btrfs block-size: 4096 B dev: /dev/nvme1n1p2
    maj-min: 259:6
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 560 KiB (0.2%) fs: vfat block-size: 512 B dev: /dev/nvme1n1p1
    maj-min: 259:5
  ID-3: /home raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 419.08 GiB (45.0%) fs: btrfs block-size: 4096 B dev: /dev/nvme1n1p2
    maj-min: 259:6
  ID-4: /var/log raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 419.08 GiB (45.0%) fs: btrfs block-size: 4096 B dev: /dev/nvme1n1p2
    maj-min: 259:6
  ID-5: /var/tmp raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 419.08 GiB (45.0%) fs: btrfs block-size: 4096 B dev: /dev/nvme1n1p2
    maj-min: 259:6
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 62.73 GiB used: 4 MiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 16.8 C mobo: N/A gpu: nvidia temp: 58 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 6%
Info:
  Processes: 847 Uptime: 12m wakeups: 0 Memory: 62.73 GiB
  used: 10.69 GiB (17.0%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.1.0 Packages: 2147 pacman: 2139 lib: 574 flatpak: 0 snap: 8
  Shell: Zsh v: 5.8 running-in: konsole inxi: 3.3.12
Garuda:
  System install date:     2020-12-25
  Last full system update: 2022-01-27
  Is partially upgraded:   No
  Using TLP:               No
  Windows dual boot:       No/Undetected
  Snapshots:               Timeshift

Hi-

I have a USB thumb drive with a large number of files in various formats. The files were added from my MacBook. When I plug the drive into my garuda box, I can view the files but I cannot write to the drive nor can I delete files from the drive.

The drive is owned by root/root

I have added my user account to wheel, users, storage, and disk. I have the ntfs-3g package installed as well.

The drive mounts as (according to Dolphin) /dev/sda1 and shows as hfsplus filesystem.

I've tried sudo chmod 777 /dev/sda1 to no effect.

How can I mount the drive, as a normal user, and be able to write to it?

Thank you!

index

You really should avoid doing that.

There are 2 packages you can try adding. I am not sure how old this mac is:

https://aur.archlinux.org/packages/hfsprogs/

There is another one is for classic mac.

5 Likes

You could just copy your files from it then reformat it to a none apple format :grinning:

4 Likes

Thank you. It’s a newer Mac. I installed that package and rebooted, but the files on the drive are still read only.

Yes, I’m hoping that’s an option of last resort and that I can find the ‘magic’ to edit them on the drive as is.

You might need to actually elevate to root to get write access. Try sudo -i and then give it a shot.

Thanks. When I do that, I still can't delete any files. I get the following error as an example:

rm: cannot remove 'Fliqlo 1.8.3.dmg': Read-only file system

According to this guy, your hail mary is going to be to disable HFS+ journaling:

sudo diskutil disableJournal "/Volumes/nameofdisk"

Look at the Arch wiki here:
https://wiki.archlinux.org/title/Mac#HFS+_Partitions

HFS+ partitions are mounted read only because HFS+ is not fully supported in Linux. Before doing anything, please back up the contents of the flash drive.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.