If I want to mount a file system at /myname is it possible by just editing fstab file?
Or should I do more to be safer?
Is any other way to do it, or its not a good idea to do?
|
If I want to mount a file system at Is any other way to do it, or its not a good idea to do? |
|||||||||
|
|
This is the way to do it. By editing the fstab file, you'll have options to maintain the mount across reboot. Also, you'll be able to ask mount to simply So to answer your question, definitely yes. |
||||
|
|
|
You want that partition with a different file system to be mounted in Linux. So there can be two cases: 1. If the partition is to be mounted in every boot: You have to create an empty directory where you want to mount that file-system. Suppose I want to mount a windows partition(/dev/sda1) to
Now you have to open
Add the following line to the file:
Now since you have changed /etc/fstab file, you have to make the kernel to read the file to mount the entry which you have added just now.
2. If the partition is to be mounted for this time only, but not for every boot: You can use
|
|||||||
|