Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Please explain how this is done. I don't believe you are correct.
hm. That is quite simple. When you open any tool like gparted you can format the whole drive as <filesystem>, and also you can use mkfs both on device and partition. And also windows can do that (but I'm not really sure, probably now it creates a partition table anyway).
You can try it with a HDD/SSD or usb stick or an SD card. Whatever you wish.
I posted you the right order. Do not mix the steps.
First make the dir, then edit fstab, mount it and finally you can use it.
Do not use that dir without mounting the filesystem.
I posted you the right order. Do not mix the steps.
First make the dir, then edit fstab, mount it and finally you can use it.
Do not use that dir without mounting the filesystem.
Thanks, I'll do that as soon as I finish my lunch.
pan 64 is right. Creating a directory does not mount a file system. A file system must be mounted to be usable. The only file systems that are mounted are those automatically mounted by entries in /etc/fstab and those that are manually mounted by specific mount commands. When you boot a system there is a default file system on a default drive that is mounted according to an entry, usually the first, in fstab. Others may also be mounted according to entries in fstab. Those are the only file systems immediately usable. To get to the information on a drive it must be mounted somewhere, i.e. the system must be told about it. Look at it this way: you can't get water out of a hose unless you attach it to a faucet or some other source of water. The mount point is a directory. Therefore, the directory must exist before you can mount the drive or partition. Not vice versa. And by the way, you don't mount a drive, you mount a partition containing a file system. One drive can contain one, two or many partitions (filesystems),
it was already discussed: use the mount command. Also see the link I posted, everything is explained very well.
With respect, it may be well explained to those who are familiar with the Linux OS, but to anybody else is looks like a mass of contradictory instructions.
I thought that I was mounting a second hard drive. All of a sudden we are talking about mounting a file system.
I thought that I was mounting a second hard drive. All of a sudden we are talking about mounting a file system.
In your case, the second drive has one file system. You mount file systems, not drives. SDB is the drive, SDB1 is the first partition and file system on the drive.
pan 64 is right. Creating a directory does not mount a file system. A file system must be mounted to be usable. The only file systems that are mounted are those automatically mounted by entries in /etc/fstab and those that are manually mounted by specific mount commands. When you boot a system there is a default file system on a default drive that is mounted according to an entry, usually the first, in fstab. Others may also be mounted according to entries in fstab. Those are the only file systems immediately usable. To get to the information on a drive it must be mounted somewhere, i.e. the system must be told about it. Look at it this way: you can't get water out of a hose unless you attach it to a faucet or some other source of water. The mount point is a directory. Therefore, the directory must exist before you can mount the drive or partition. Not vice versa. And by the way, you don't mount a drive, you mount a partition containing a file system. One drive can contain one, two or many partitions (filesystems),
I have created the directory nick/Music/music, and I have put an instruction in fstab to mount SDB1. And then I have issued the command mount -a. So what else is necessary?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.