Cannot SAVE FILES in VS Code

Hi,
I am facing an error when trying to save an edited file on VS Code. The file is located on drive named "Bravo" but the OS is installed on another disk. I would like to save it there itself. I have updated VS Code and the entire system, but the issue persists. Can anyone guide me through this issue?

Here's the error:

Failed to save 'index.html': Unable to write file '/run/media/ashish/Bravo/Coding/VS Code/Websites/Vannisified/index.html' (Unknown (FileSystemError): Error: EROFS: read-only file system, open '/run/media/ashish/Bravo/Coding/VS Code/Websites/Vannisified/index.html')

Output:

System:
Kernel: 6.1.7-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=f2325791-0031-49df-8130-94cedc16dd2c rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.26.5 tk: Qt v: 5.15.8 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 20392 v: Lenovo B40-70
serial: <superuser required> Chassis: type: 10 v: Lenovo B40-70
serial: <superuser required>
Mobo: LENOVO model: Lenovo B40-70 v: SDK0F82990WIN
serial: <superuser required> UEFI-[Legacy]: LENOVO v: 9DCN26WW(V2.07)
date: 09/23/2014
Battery:
ID-1: BAT1 charge: 6.8 Wh (98.6%) condition: 6.9/28.5 Wh (24.3%) volts: 16.3
min: 14.4 model: LENOVO PABAS0241231 type: Li-ion serial: <filter>
status: charging
CPU:
Info: model: Intel Core i3-4005U bits: 64 type: MT MCP arch: Haswell
gen: core 4 level: v3 note: check built: 2013-15 process: Intel 22nm
family: 6 model-id: 0x45 (69) stepping: 1 microcode: 0x26
Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
L3: 3 MiB desc: 1x3 MiB
Speed (MHz): avg: 999 high: 1600 min/max: 800/1600 scaling:
driver: intel_cpufreq governor: schedutil cores: 1: 798 2: 1600 3: 800
4: 798 bogomips: 13568
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel Haswell-ULT Integrated Graphics vendor: Lenovo driver: i915
v: kernel arch: Gen-7.5 process: Intel 22nm built: 2013 ports: active: eDP-1
empty: DP-1,HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:0a16 class-ID: 0300
Display: x11 server: X.Org v: 21.1.6 with: Xwayland v: 22.1.7
compositor: kwin_x11 driver: X: loaded: modesetting
alternate: fbdev,intel,vesa dri: crocus gpu: i915 display-ID: :0
screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
s-diag: 414mm (16.31")
Monitor-1: eDP-1 model: BOE Display 0x0644 built: 2015 res: 1366x768
hz: 60 dpi: 112 gamma: 1.2 size: 309x173mm (12.17x6.81") diag: 354mm (13.9")
ratio: 16:9 modes: 1366x768
API: OpenGL v: 4.6 Mesa 22.3.3 renderer: Mesa Intel HD Graphics 4400 (HSW
GT2) direct render: Yes
Audio:
Device-1: Intel Haswell-ULT HD Audio vendor: Lenovo driver: snd_hda_intel
v: kernel bus-ID: 00:03.0 chip-ID: 8086:0a0c class-ID: 0403
Device-2: Intel 8 Series HD Audio vendor: Lenovo driver: snd_hda_intel
v: kernel bus-ID: 00:1b.0 chip-ID: 8086:9c20 class-ID: 0403
Sound API: ALSA v: k6.1.7-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.64 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
port: 3000 bus-ID: 08:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp8s0 state: down mac: <filter>
Device-2: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter
vendor: Lenovo driver: ath9k v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
bus-ID: 09:00.0 chip-ID: 168c:0036 class-ID: 0280
IF: wlp9s0 state: up mac: <filter>
IF-ID-1: anbox0 state: down mac: <filter>
Bluetooth:
Device-1: Qualcomm Atheros AR3012 Bluetooth 4.0 type: USB driver: btusb
v: 0.8 bus-ID: 2-7:17 chip-ID: 0cf3:3004 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 4 state: up address: <filter>
Drives:
Local Storage: total: 1.82 TiB used: 277.4 GiB (14.9%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM035-1RK172
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: HDD rpm: 5400 serial: <filter> rev: RSM4 scheme: MBR
ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
model: WD10SPZX-24Z10T0 size: 931.51 GiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
rev: 1A01 scheme: MBR
Partition:
ID-1: / raw-size: 128.09 GiB size: 128.09 GiB (100.00%)
used: 15.98 GiB (12.5%) fs: btrfs dev: /dev/sda6 maj-min: 8:6
ID-2: /home raw-size: 128.09 GiB size: 128.09 GiB (100.00%)
used: 15.98 GiB (12.5%) fs: btrfs dev: /dev/sda6 maj-min: 8:6
ID-3: /var/log raw-size: 128.09 GiB size: 128.09 GiB (100.00%)
used: 15.98 GiB (12.5%) fs: btrfs dev: /dev/sda6 maj-min: 8:6
ID-4: /var/tmp raw-size: 128.09 GiB size: 128.09 GiB (100.00%)
used: 15.98 GiB (12.5%) fs: btrfs dev: /dev/sda6 maj-min: 8:6
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.55 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 48.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 241 Uptime: 4h 35m wakeups: 12 Memory: 15.55 GiB
used: 5.57 GiB (35.8%) Init: systemd v: 252 default: graphical
tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 1357
libs: 345 tools: gnome-software,octopi,pamac,paru Shell: fish v: 3.6.0
default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.24
Garuda (2.6.14-1):
System install date:     2023-01-24
Last full system update: 2023-01-25 ↻
Is partially upgraded:   No
Relevant software:       snapper NetworkManager mkinitcpio
Windows dual boot:       No/Undetected
Failed units:            anbox-container-manager.service systemd-networkd-wait-online.service

You would have to properly mount the other disk if you want to save it there. I have to guess it is a Windows disk the way you phrased your query, in which case my advice is: be careful.

It might be easier to save the file to cloud storage or flash media.

6 Likes

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