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

Updating to match new version of source page
(Created page with "==Создание /swapfile== Если у вас нет раздела /swap, но вы хотите иметь место для подкачки (которое, конеч...")
Tags: Mobile web edit Mobile edit
(Updating to match new version of source page)
Line 52: Line 52:
==Настройка системы для использования новых каталогов хранения по умолчанию==
==Настройка системы для использования новых каталогов хранения по умолчанию==


<div lang="en" dir="ltr" class="mw-content-ltr">
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 :
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
{{File|
{{File|
file=~/.bash_profile|
file=~/.bash_profile|
Line 62: Line 65:
PATH=$PATH:~/games/ut2004/System
PATH=$PATH:~/games/ut2004/System
export PATH</pre>}}
export PATH</pre>}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
{{File|
{{File|
file=/etc/profile|
file=/etc/profile|
Line 68: Line 73:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/mnt/bdata/scripts:"
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/mnt/bdata/scripts:"
export PATH</pre>}}
export PATH</pre>}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
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.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
If you have more than one user account on your system, then it would be best to use & edit:
If you have more than one user account on your system, then it would be best to use & edit:
{{UserCmd|command=nano ~/.config/user-dirs.conf}}
{{UserCmd|command=nano ~/.config/user-dirs.conf}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
If the above file doesn't exist, create it. Then copy mine (just below), editing it to suit your system/desires. Having only one user account on my Manjaro setup, I delete the previously mentioned file (if it existed anyway) & modify:
If the above file doesn't exist, create it. Then copy mine (just below), editing it to suit your system/desires. Having only one user account on my Manjaro setup, I delete the previously mentioned file (if it existed anyway) & modify:
</div>


{{RootCmd|command=nano /etc/xdg/user-dirs.defaults}}
{{RootCmd|command=nano /etc/xdg/user-dirs.defaults}}


<div lang="en" dir="ltr" class="mw-content-ltr">
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:
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
{{File|
{{File|
file=~/.config/user-dirs.conf|
file=~/.config/user-dirs.conf|
Line 93: Line 108:
VIDEOS=/data/bdata/videos</pre>
VIDEOS=/data/bdata/videos</pre>
}}
}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
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. '''~/.bashrc''' may need some paths changed as well, depending on what you call from it.
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. '''~/.bashrc''' may need some paths changed as well, depending on what you call from it.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
I also had to tell qBittorent, Firefox (& the few other browsers I'm testing) where their particular download directories had moved to. Any other applications that were set to save data into the documents, or any other directory that has moved (or been created as a default, in either of the two directories above) will need to have their config's modified too. & so it goes...
I also had to tell qBittorent, Firefox (& the few other browsers I'm testing) where their particular download directories had moved to. Any other applications that were set to save data into the documents, or any other directory that has moved (or been created as a default, in either of the two directories above) will need to have their config's modified too. & so it goes...
</div>


==Создание /swapfile==
==Создание /swapfile==
Если у вас нет раздела /swap, но вы хотите иметь место для подкачки (которое, конечно, можете легко получить в любое время в будущем), то для вас есть очень функциональная опция под названием /swapfile.
Если у вас нет раздела /swap, но вы хотите иметь место для подкачки (которое, конечно, можете легко получить в любое время в будущем), то для вас есть очень функциональная опция под названием /swapfile.  
 
==Поддержка==
 
Following is a link to this page's forum counterpart(archived): [https://archived.forum.manjaro.org/t/wiki-add-a-storage-partition-modify-your-system-to-suit/17665 Wiki Add a Storage Partition]
[[Category:Contents Page{{#translation:}}]]
[[Category:Contents Page{{#translation:}}]]
[[Category:Storage{{#translation:}}]]
[[Category:Storage{{#translation:}}]]
8,138

edits