Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet292/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   288   289   290   291   292   293   294   295   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 221 
]
However, it's important to point out that where the FHS indicates you should mount 
your extra volumes is only a suggestion. No one is going to force you to follow it, 
and the fate of the world isn't dependent on your choice. With the 
mount
 command, 
you can literally mount your extra storage anywhere that isn't already mounted 
or full of files. You could even create the directory 
/kittens
 and mount your disks 
there and you won't suffer any consequences other than a few chuckles from your 
colleagues.
Often, organizations will come up with their own scheme for where to mount extra 
disks. Although I personally follow the FHS designation, I've seen companies use a 
custom common mount directory such as 
/store
. Whatever scheme you use is up to 
you; the only suggestion I can make is to be as consistent as you can from one server 
to another, if only for the sake of sanity.
The 
mount
 command generally needs to be run as 
root
. While there is a way around 
that (you can allow normal users to mount volumes, but we won't get into that just 
yet), it's usually the case that only 
root
 can or should be mounting volumes. As I 
mentioned, you'll need a place to mount these volumes, so create a directory called 
/
mnt/vol1
 with the following command:
sudo mkdir /mnt/vol1
When you've created a directory, like I have, or decided on an existing one, you can 
mount a volume with a command similar to the following:
sudo mount /dev/sdb1 /mnt/vol1
In that example, I'm mounting device 
/dev/sdb1
 to directory 
/mnt/vol1
.
Of course, you'll need to adjust the command to reference the device you want to 
mount and where you want to mount it. As a reminder, if you don't remember which 
devices exist on your server, you can list them with 
fdisk –l
.
Normally, the 
mount
 command wants you to issue the 
-t
 option with a given type. In 
my case, the 
mount
 command would've been the following had I used the 
-t
 option, 
considering my disk is formatted with ext4:
sudo mount /dev/sdb1 -t ext4 /mnt/vol1


Managing Storage Volumes

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   288   289   290   291   292   293   294   295   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish