this post was submitted on 06 Sep 2023
29 points (93.9% liked)
Linux
48329 readers
1494 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm not in reach of a pc to test, but I think the problem is that the partition is mounted temporary. Try making a new mountpoint and adding it to fstab (with noauto iirc, so that your system does not hang when you start with the drive unplugged).
Where can I find the steps for doing this?
Create a dir in a place you like
mkdir
(If it is in a dir where you have no write access, you need tosudo
ordoas
)Unmount the automounted
/dev/sda1
umount /dev/sda1
Then mount sda1 to the newly created dir
mount /dev/sda1
Then you can use genfstab to create a fstab entry. (You maybe need to
sudo pacman -S arch-install-scripts)
genfstab /
This will write a fstab file to stdout (the terminal). Look for the line with , copy it and sudo open the /etc/fstab file with your prefered editor. Add the line at tge bottom and add the flags
rw,user,noauto
to the entry.This way you have to manually mount sda1 every time you boot with
mount /dev/sda1
You can add that to your
.bashrc
or equivalent. (If you don't plan to remove the disk, you can skip the noauto and the drive will be loaded automatically, but if it is unplugged your system won't boot normally). Maybe there is a better way, but this way works for me good enough.