Permissions on external HD

garuda-inxi
System:
  Kernel: 6.3.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=22b0128f-231d-4f5b-9a0d-f394e297be0f rw rootflags=subvol=@
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3 ibt=off
  Desktop: MATE v: 1.26.1 info: mate-panel wm: marco v: 1.26.2 vt: 7
    dm: LightDM v: 1.32.0 Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: Acer product: Nitro AN515-42 v: V1.13
    serial: <superuser required>
  Mobo: RR model: Freed_RRS v: V1.13 serial: <superuser required>
    UEFI: Insyde v: 1.13 date: 02/11/2019
Battery:
  ID-1: BAT1 charge: 35.9 Wh (100.0%) condition: 35.9/48.9 Wh (73.4%)
    volts: 16.2 min: 15.2 model: LG 0x41,0x43,0x31,0x34,0x42,0x38,0x4B
    type: Li-ion serial: <filter> status: full
CPU:
  Info: model: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx bits: 64
    type: MT MCP arch: Zen level: v3 note: check built: 2017-19 process: GF 14nm
    family: 0x17 (23) model-id: 0x11 (17) stepping: 0 microcode: 0x810100B
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 384 KiB desc: d-4x32 KiB; i-4x64 KiB L2: 2 MiB desc: 4x512 KiB L3: 4 MiB
    desc: 1x4 MiB
  Speed (MHz): avg: 1960 high: 2354 min/max: 1600/2000 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 2000 2: 1398
    3: 2354 4: 2000 5: 1814 6: 2000 7: 2000 8: 2120 bogomips: 31938
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: AMD Baffin [Radeon RX 460/560D / Pro
    450/455/460/555/555X/560/560X] vendor: Acer Incorporated ALI
    driver: amdgpu v: kernel arch: GCN-4 code: Arctic Islands process: GF 14nm
    built: 2016-20 pcie: gen: 1 speed: 2.5 GT/s lanes: 8 link-max: gen: 3
    speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 1002:67ef class-ID: 0380
    temp: 37.0 C
  Device-2: AMD Raven Ridge [Radeon Vega Series / Radeon Mobile Series]
    vendor: Acer Incorporated ALI driver: amdgpu v: kernel arch: GCN-5
    code: Vega process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s
    lanes: 16 ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 04:00.0
    chip-ID: 1002:15dd class-ID: 0300 temp: 44.0 C
  Device-3: Quanta HD Webcam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-1:2 chip-ID: 0408:a060
    class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.8 compositor: marco v: 1.26.2 driver:
    X: loaded: amdgpu unloaded: modesetting alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP model: LG Display 0x05d8 built: 2018
    res: 1920x1080 hz: 60 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64")
    diag: 395mm (15.5") ratio: 16:9 modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 23.1.3 renderer: AMD Radeon Vega 8 Graphics
    (raven LLVM 15.0.7 DRM 3.52 6.3.9-zen1-1-zen) direct-render: Yes
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio
    vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel pcie: gen: 3
    speed: 8 GT/s lanes: 16 bus-ID: 04:00.1 chip-ID: 1002:15de class-ID: 0403
  Device-2: AMD Family 17h/19h HD Audio vendor: Acer Incorporated ALI
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 04:00.6 chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k6.3.9-zen1-1-zen status: kernel-api with: aoss
    type: oss-emulator tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 0.3.72 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Acer Incorporated ALI driver: r8169 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 02:00.1 chip-ID: 10ec:8168
    class-ID: 0200
  IF: enp2s0f1 state: up speed: 100 Mbps duplex: full mac: <filter>
  Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
    vendor: Lite-On driver: ath10k_pci v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 bus-ID: 03:00.0 chip-ID: 168c:003e class-ID: 0280
  IF: wlp3s0 state: down mac: <filter>
Bluetooth:
  Device-1: Lite-On driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 1-4:3 chip-ID: 04ca:3016 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 2 state: up address: <filter>
Drives:
  Local Storage: total: 5.57 TiB used: 5.07 TiB (91.0%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT1000MX500SSD1
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 023 scheme: MBR
  ID-2: /dev/sdb maj-min: 8:16 vendor: Kingston model: SA400M8120G
    size: 111.79 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 61E1 scheme: MBR
  ID-3: /dev/sdc maj-min: 8:32 vendor: Western Digital
    model: WD50NDZM-59PW8S1 size: 4.55 TiB block-size: physical: 4096 B
    logical: 512 B type: USB rev: 2.1 spd: 480 Mb/s lanes: 1 mode: 2.0
    tech: HDD rpm: 5400 serial: <filter> fw-rev: 2003
Partition:
  ID-1: / raw-size: 96 GiB size: 96 GiB (100.00%) used: 50.56 GiB (52.7%)
    fs: btrfs dev: /dev/sdb1 maj-min: 8:17
  ID-2: /boot/efi raw-size: 100 MiB size: 98.4 MiB (98.45%)
    used: 859 KiB (0.9%) fs: vfat dev: /dev/sdb2 maj-min: 8:18
  ID-3: /home raw-size: 931.51 GiB size: 915.82 GiB (98.32%)
    used: 808.32 GiB (88.3%) fs: ext4 dev: /dev/sda3 maj-min: 8:3
  ID-4: /var/log raw-size: 96 GiB size: 96 GiB (100.00%)
    used: 50.56 GiB (52.7%) fs: btrfs dev: /dev/sdb1 maj-min: 8:17
  ID-5: /var/tmp raw-size: 96 GiB size: 96 GiB (100.00%)
    used: 50.56 GiB (52.7%) fs: btrfs dev: /dev/sdb1 maj-min: 8:17
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 30.26 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 43.5 C mobo: N/A
  Fan Speeds (RPM): N/A
  GPU: device: amdgpu temp: 43.0 C device: amdgpu temp: 37.0 C watts: 9.11
Info:
  Processes: 310 Uptime: 25m wakeups: 1 Memory: available: 30.26 GiB
  used: 5.51 GiB (18.2%) Init: systemd v: 253 default: graphical
  tool: systemctl Compilers: gcc: 13.1.1 alt: 12 clang: 15.0.7 Packages: 1644
  pm: pacman pkgs: 1638 libs: 514 tools: octopi,paru,yay pm: flatpak pkgs: 6
  Shell: Bash v: 5.1.16 running-in: mate-terminal inxi: 3.3.27
Garuda (2.6.16-1):
  System install date:     2023-04-24
  Last full system update: 2023-06-30
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       No/Undetected
  Failed units:            

I have an external drive, sdc, with music on it. It is read-only.

I have tried

chmod -R 777 [drive]

and

sudo chmod -R 777 [drive]

and after every filename, it still says "read-only file system."

I want to make this drive read-write, and chmod 777 is the only way I know of. Looking at the drive in Caja (I use MATE) I get "the permissions of this drive cannot be determined."

HELP!

Use gnome-disk-utility, make owner.

1 Like

Tried it, and got

Error changing ownership of filesystem on /dev/sdc:

Error changing ownership of /run/media/oldrocker99/MUSIC5 to uid=1000 and gid=1000:

Read-only file system.

Please post output

lsblk -f

Is it an NTFS drive? I've that that issue.

It mounts as read-only due to errors; and NTFS has poor support in Linux especially to fix errors. Somehow external NTFS drives tend to break easily, not sure why. You have to boot into Windows to fix it. If it's external drive, you could boot a VM and give it direct access to the USB device.

lsblk -f
NAME FSTYPE FSVER LABEL  UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                          
└─sda3
     ext4   1.0          47eebcfb-afad-4afb-a9fe-b04b70880abc   60.9G    88% /home
sdb                                                                          
├─sdb1
│    btrfs               22b0128f-231d-4f5b-9a0d-f394e297be0f   43.8G    53% /var/tmp
│                                                                            /var/log
│                                                                            /var/cache
│                                                                            /root
│                                                                            /srv
│                                                                            /
├─sdb2
│    vfat   FAT32        37BE-FC59                              97.6M     1% /boot/efi
└─sdb3
     swap   1            a5dbadeb-9fba-4e23-859b-48813830fd17                
sdc  ext4   1.0   MUSIC5 9012ac2c-d6f7-40a8-808d-2e82c81d401e   57.3G    94% /run/media/oldrocker99/MUSIC5
zram0
                                                                             [SWAP]

It IS ext4.

1 Like

if you mount the drive manually, it might tell you why it mounts as read-only?

Do you mean

umount /dev/sdc

and

mount /devsdc

?

EDIT: tried

umount /dev/sdc
and got
Error unmounting block device 8:32: GDBus.Error:org.freedesktop.UDisks2.Error.DeviceBusy: Error unmounting /dev/sdc: target is busy

Do you get the same error with chown? E.g.

sudo chown $USER:$USER -R /run/media/oldrocker99/MUSIC5
2 Likes

SOLVED. Gnome-disk-utility showed errors. I used it to repair the drive, and chown and chmod 777 worked.

Sorry for not doing it first.

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