Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I feel embarrassed to ask this, but I've never had to do it before and I'm stuck!
I'm running a CentOS 6 Server (on VMware ESX 4i. I added a second virtual hard disk.
I created the Partition and formatted (ext3) it, without a problem I labeled it work. Now I need to mount it and I have to put an entry into fstab, I googled for an answer and found several :
LABEL=/work etc., I tried this and lots of variations, but none of them work.
Will someone please point me in the right direction? Is it CentOS 6 which is different or VMware virtual disks or is it just me being dumb?
LABEL=work : Is the label that you have set for your partition
/abc/home/ : Is the mount point where you want to mount the partition.
ext3 : Is the file system type
defaults: mount option, you can specify other options as per your requirement.
Make sure you are mount the partition on a directory that is empty otherwise your data will become inaccessible. Before rebooting the server run the following command to make sure that the new entry in /etc/fstab is mounting the partition properly:
The label is work, mkdir /work (I checked, it created it).
LABEL=/work /work ext3 defaults 0 0
mount -a gives me a message : mount: special device LABEL=/work does not exist
The partition IS labeled work and the partition IS formatted ext3 according to parted. Even more confusing, the Arch Wiki says :
LABEL=Arch_Linux / ext4 defaults,noatime 0 1
so no / before the label name
I tried :
/dev/sdb1 /work ext3 defaults 0 0
and this worked, so the problem is sorta solved, but I would like to know why the label doesn't work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.