Manjaro Difference between revisions of "Add a Storage Partition & Modify your System to Suit"

Difference between revisions of "Add a Storage Partition & Modify your System to Suit"

From Manjaro
m (→‎Support: change link to archived forum)
Line 74: Line 74:
Firstly, I had to check both the ~/.bash_profile & the /etc/profile files & modify the '''PATH''' variables where I had added paths that were now incorrect. Most users here won't have changed anything in these two files, though it is just too easy to do, to not check them for safeties sake. When looking at these files, check the PATH line for anything that relates to your moved storage directories. You probably won't have any differences unless you added them. These lines in my files follow, you will see where I have replaced the original paths with /mnt/bdata :
Firstly, I had to check both the ~/.bash_profile & the /etc/profile files & modify the '''PATH''' variables where I had added paths that were now incorrect. Most users here won't have changed anything in these two files, though it is just too easy to do, to not check them for safeties sake. When looking at these files, check the PATH line for anything that relates to your moved storage directories. You probably won't have any differences unless you added them. These lines in my files follow, you will see where I have replaced the original paths with /mnt/bdata :


{{File|
file=~/.bash_profile|
content=
<pre>PATH=$PATH:/mnt/bdata/scripts
export PATH
PATH=$PATH:~/games/ut2004
export PATH
PATH=$PATH:~/games/ut2004/System
export PATH</pre>
}}


'''~/.bash_profile'''
{{File|
 
file=/etc/profile|
PATH=$PATH:/mnt/bdata/scripts
content=
export PATH
<pre>
# Set our default path
PATH=$PATH:~/games/ut2004
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/mnt/bdata/scripts:"
export PATH
export PATH
</pre>
PATH=$PATH:~/games/ut2004/System
}}
export PATH
 
 
'''/etc/profile'''
 
# Set our default path
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/mnt/bdata/scripts:"
export PATH
 


Then I needed to change the paths for what are considered to be the standard default /home/<user>/ storage directories - Downloads, Video, Music & so on. I had previously changed these paths, also, I don't want to use capital letters in the beginning of their names.
Then I needed to change the paths for what are considered to be the standard default /home/<user>/ storage directories - Downloads, Video, Music & so on. I had previously changed these paths, also, I don't want to use capital letters in the beginning of their names.
Line 108: Line 109:
As its settings, under these circumstances (not having a ~/.config/user-dirs.conf ) will be global. Mine edited file follows:
As its settings, under these circumstances (not having a ~/.config/user-dirs.conf ) will be global. Mine edited file follows:


 
{{File|
'''~/.config/user-dirs.conf'''
file=~/.config/user-dirs.conf|
 
content=
# Default settings for user directories customised by handy :->
<pre>
#
# Default settings for user directories customised by handy :->
# The values are relative pathnames from the home directory and
#
# will be translated on a per-path-element basis into the users locale
# The values are relative pathnames from the home directory and
DESKTOP=desktop
# will be translated on a per-path-element basis into the users locale
DOWNLOAD=/mnt/bdata/downloads
DESKTOP=desktop
DOCUMENTS=/mnt/bdata/documents
DOWNLOAD=/mnt/bdata/downloads
MUSIC=/mnt/bdata/music
DOCUMENTS=/mnt/bdata/documents
PICTURES=/mnt/bdata/pictures
MUSIC=/mnt/bdata/music
VIDEOS=/mnt/bdata/videos
PICTURES=/mnt/bdata/pictures
 
VIDEOS=/mnt/bdata/videos
</pre>
}}


Once you have done this, check that you don't have new (likely empty) default directories in your ~/ that were created by the above file(s) on boot. Any such void files should be deleted after you have modified either the ''user'' based '''~/.config/user-dirs.conf''' or the ''root'' based '''/etc/xdg/user-dirs.defaults''' files.
Once you have done this, check that you don't have new (likely empty) default directories in your ~/ that were created by the above file(s) on boot. Any such void files should be deleted after you have modified either the ''user'' based '''~/.config/user-dirs.conf''' or the ''root'' based '''/etc/xdg/user-dirs.defaults''' files.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.