1
0
Fork 0

move partition data mount point

from `/media/pomp/data` to `/home/pomp`
This commit is contained in:
Kim, Jimin 2022-11-09 01:59:25 +09:00
parent b16c017f40
commit 4a97858a0e
4 changed files with 7 additions and 18 deletions

View file

@ -1,5 +1,5 @@
[org/gnome/desktop/background]
color-shading-type='solid'
picture-options='zoom'
picture-uri='file:///media/pomp/data/Pictures/Wallpapers/earth_moon_blur.png'
picture-uri-dark='file:///media/pomp/data/Pictures/Wallpapers/earth_moon_blur.png'
picture-uri='file:///home/pomp/Pictures/Wallpapers/earth_moon_blur.png'
picture-uri-dark='file:///home/pomp/Pictures/Wallpapers/earth_moon_blur.png'

View file

@ -1,4 +1,4 @@
[org/gnome/desktop/screensaver]
color-shading-type='solid'
picture-options='zoom'
picture-uri='file:///media/pomp/data/Pictures/Wallpapers/earth_moon_blur.png'
picture-uri='file:///home/pomp/Pictures/Wallpapers/earth_moon_blur.png'

View file

@ -1,9 +0,0 @@
# XDG_DESKTOP_DIR="$HOME/Desktop"
# XDG_PUBLICSHARE_DIR="$HOME/Public"
# XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_DOCUMENTS_DIR="/media/pomp/data/Documents"
XDG_DOWNLOAD_DIR="/media/pomp/data/Downloads"
XDG_MUSIC_DIR="/media/pomp/data/Music"
XDG_PICTURES_DIR="/media/pomp/data/Pictures"
XDG_VIDEOS_DIR="/media/pomp/data/Videos"

View file

@ -4,18 +4,16 @@ name = "fstab"
def setup():
"""adds /media/pomp/data drive to fstab"""
"""adds /home/pomp drive to fstab"""
fstab_path = "/etc/fstab"
# check if /media/pomp/data exists already
# check if /home/pomp exists already
with open(fstab_path, "rt") as f:
if "/media/pomp/data" in f.read():
if "/home/pomp" in f.read():
return
line_to_write = (
"UUID=1cea13a5-ea19-4023-99dd-4bfd062a288c /media/pomp/data ext4 defaults 0 2"
)
line_to_write = "UUID=1cea13a5-ea19-4023-99dd-4bfd062a288c /home/pomp auto 0 0"
# append a line to the end and ignore output
# not using python's file interface because I don't wanna deal with permission stuff