Hello,
So as I was trying to create a swap partition, I accidentally mixed up the device addresses and picked the wrong one. If I was supposed to enter:
sudo bash -c "echo UUID=$(lsblk -no UUID /dev/sda7) none swap defaults 0 0 >> /etc/fstab"
I instead entered
sudo bash -c "echo UUID=$(lsblk -no UUID /dev/sda3) none swap defaults 0 0 >> /etc/fstab"
So sda3 instead of sda7. The problem is that now I can’t mount the sda3 anymore since it’s written to fstab. I think it’s also affected the boot process. Could I have some instructions to rectify this, please?
Thank you
System info below:
System:
Kernel: 5.18.6-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.18-x86_64
root=UUID=799acea8-83e9-4271-880a-119665f23be5 rw quiet apparmor=1
security=apparmor udev.log_priority=3
Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.5 wm: kwin_x11 vt: 1
dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: HP product: HP Pavilion Laptop 15-cs3xxx
v: Type1ProductConfigId serial: <superuser required> Chassis: type: 10
serial: <superuser required>
Mobo: HP model: 86E2 v: 95.32 serial: <superuser required> UEFI: Insyde
v: F.06 date: 04/08/2020
Battery:
ID-1: BAT0 charge: 37.2 Wh (100.0%) condition: 37.2/37.2 Wh (100.0%)
volts: 12.9 min: 11.4 model: HP Primary type: Li-ion serial: N/A
status: full
CPU:
Info: model: Intel Core i5-1035G1 bits: 64 type: MT MCP arch: Ice Lake
built: 2019-21 process: Intel 10nm family: 6 model-id: 0x7E (126)
stepping: 5 microcode: 0xB0
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 320 KiB desc: d-4x48 KiB; i-4x32 KiB L2: 2 MiB desc: 4x512 KiB
L3: 6 MiB desc: 1x6 MiB
Speed (MHz): avg: 873 high: 1469 min/max: 400/3600 scaling:
driver: intel_pstate governor: powersave cores: 1: 935 2: 694 3: 652 4: 587
5: 725 6: 587 7: 1336 8: 1469 bogomips: 19048
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Enhanced IBRS, IBPB: conditional, RSB filling
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel Iris Plus Graphics G1 vendor: Hewlett-Packard driver: i915
v: kernel arch: Gen11 process: Intel 10nm built: 2019-21 ports:
active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:8a56
class-ID: 0300
Device-2: NVIDIA GM108M [GeForce MX130] vendor: Hewlett-Packard
driver: nvidia v: 515.48.07 alternate: nouveau,nvidia_drm non-free: 515.xx+
status: current (as of 2022-06) arch: Maxwell process: TSMC 28nm
built: 2014-19 pcie: gen: 1 speed: 2.5 GT/s lanes: 4 link-max: gen: 3
speed: 8 GT/s bus-ID: 06:00.0 chip-ID: 10de:174d class-ID: 0302
Device-3: Chicony HP Wide Vision HD Camera type: USB driver: uvcvideo
bus-ID: 1-3:3 chip-ID: 04f2:b627 class-ID: 0e02
Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
compositor: kwin_x11 driver: X: loaded: modesetting alternate: fbdev,vesa
gpu: i915 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 model: Najing CEC Panda 0x003c 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
OpenGL: renderer: Mesa Intel UHD Graphics (ICL GT1) v: 4.6 Mesa 22.1.2
direct render: Yes
Audio:
Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_icl
bus-ID: 00:1f.3 chip-ID: 8086:34c8 class-ID: 0403
Sound Server-1: ALSA v: k5.18.6-1-MANJARO running: yes
Sound Server-2: JACK v: 1.9.21 running: no
Sound Server-3: PulseAudio v: 16.1 running: yes
Sound Server-4: PipeWire v: 0.3.52 running: no
Network:
Device-1: Intel Ice Lake-LP PCH CNVi WiFi driver: iwlwifi v: kernel
bus-ID: 00:14.3 chip-ID: 8086:34f0 class-ID: 0280
IF: wlo1 state: up mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Hewlett-Packard driver: r8169 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 10:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: eno1 state: down mac: <filter>
IF-ID-1: docker0 state: down mac: <filter>
Bluetooth:
Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 1-10:4 chip-ID: 8087:0026 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 1 state: up address: <filter>
RAID:
Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
v: 3.0 port: 7060 bus-ID: 00:17.0 chip-ID: 8086:282a rev: N/A
class-ID: 0104
Drives:
Local Storage: total: 931.51 GiB used: 191.05 GiB (20.5%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: MQ04ABF100
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B
speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter> rev: 7C scheme: GPT
Partition:
ID-1: / raw-size: 288.06 GiB size: 282.47 GiB (98.06%)
used: 191.03 GiB (67.6%) fs: ext4 dev: /dev/sda4 maj-min: 8:4
ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
used: 25.3 MiB (26.3%) fs: vfat dev: /dev/sda1 maj-min: 8:1
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 4.91 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/sda7 maj-min: 8:7
Sensors:
System Temperatures: cpu: 42.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 271 Uptime: 25m wakeups: 1 Memory: 15.42 GiB
used: 3.62 GiB (23.5%) Init: systemd v: 251 default: graphical
tool: systemctl Compilers: gcc: 12.1.0 clang: 13.0.1 Packages: 2240
pacman: 2186 lib: 523 flatpak: 29 snap: 25 Shell: Bash v: 5.1.16
running-in: yakuake inxi: 3.3.19
Also here are the contents of /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=163E-ECA1 /boot/efi vfat umask=0077 0 2
UUID=799acea8-83e9-4271-880a-119665f23be5 / ext4 defaults,noatime 0 1
UUID=8226551426550A95 none swap defaults 0 0
UUID=997474bb-b94f-4c83-8394-4b997eb74e55 none swap defaults 0 0
UUID=997474bb-b94f-4c83-8394-4b997eb74e55 none swap defaults 0 0