CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
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.
[root@PAR-363195 ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 512M 0 part /boot
├─sda2 8:2 0 925.1G 0 part /
└─sda3 8:3 0 1G 0 part [SWAP]
sdb 8:16 0 931.5G 0 disk
└─sdb4 8:20 0 931.5G 0 part This is the new hard
What version of CentOS are you running?
Is this a physical or virtual system?
To get it to appear in the output of df you need to:
Format it with a filesytem if not already accomplished.
Mount the filesystem.
Add a line to your /etc/fstab to automatically mount it a boot time.
You can not easily merge drives together unless you are already using LVM.
To be honest, I'm not recommend to add a line to /etc/fstab to automatically mount at boot time for non-root disk. If the disk has problem, we have trouble when booting. Non-root disks should be mount after the system booting successfully.
To be honest, I'm not recommend to add a line to /etc/fstab to automatically mount at boot time for non-root disk. If the disk has problem, we have trouble when booting. Non-root disks should be mount after the system booting successfully.
All you have to do is include "nofail" in the options field, and the mount failure will not block booting. Alternatively, use "noauto" instead, and the drive will not be mounted automatically, but a manual mount command with just the device name or the mount point (not both) will pick up all the other parameters from /etc/fstab.
All you have to do is include "nofail" in the options field, and the mount failure will not block booting. Alternatively, use "noauto" instead, and the drive will not be mounted automatically, but a manual mount command with just the device name or the mount point (not both) will pick up all the other parameters from /etc/fstab.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.