Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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 have a drive that I would like to mount on boot. I know that to do it would be to add a line to fstab. But I don't know how to fill in the extra items.
The drive is sdb5 and it's name is DATA.
Hopefully someone can lead me by the hand to do it.
I'll probably be something like this:
/dev/sdb5 MOUNTPOINT FILESYSTEMTYPE defaults 0 0
Replce MOUNTPOINT with the empty folder on your filesystem where you'd like to mount it at and replace FILESYSTEMTYPE with the type of filesystem (ie. ext3, nfts-3g, xfs, etc.).
That last number is the priority order for a filesystem scan. For example, you will see it is '1' for '/' and if other partitions are mounted for /home and so on, they will have higher numbers (usually just '2'). This ensures that if the file system checker decides two partitions must be checked at the same time, it will always give priority to '/'. This number should be '0' in some situations such as for the '/sys' virtual filesystem and for real partitions which aren't really checked by a filesystem scanner (swap, ntfs, fat ...).
The "mount point" is any directory in the filesystem tree. If it does not exist, you have to create it before using the mount command.
eg:
mkdir /mnt/mydata
mount /dev/sda3 /mnt/mydata
Once you have an entry in fstab, you can mount using:
mount -a ## mounts everything in fstab
mount <mountpoint> ##mount the specific mountpoint defined in 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.