3

There is a mount point at /mnt/mountname and it goes to a large SAN with lots of storage but it's mounted as a read-only filesystem. I want to add a mount point with a different name that's read-write. I've looked in /etc/fstab and /etc/vfstab (which doesn't exist) and there is nothing there that mentions /mnt/mountname. Where else can I look?

1 Answer 1

4

The mount mounts are defined at /etc/fstab however the file system mounted at /mnt/mountname may have been mounted "by hand" or something may have mounted it after the system started. IE, someone may have have just typed the following in the terminal to mount it:

mount /dev/foo /mnt/mountname

If you want to add /mnt/mountname to /etc/fstab and/or want to use it as a template for the new one you're adding, you can run the following to show you what the line in /etc/fstab should look like:

cat /etc/mtab

If that doesn't work, try 'cat /proc/mounts'.

3
  • /etc/mtab is it! That's where it's defined. When you use the "mount" command why don't you have to specify the type or if it's ro or rw like what's specified in /etc/mtab?
    – tooshel
    Jan 26, 2011 at 17:35
  • @tooshel: /etc/mtab doesn't define mount points, it is updated by the mount command. It contains the options that mount passes to the kernel. Jan 26, 2011 at 19:28
  • @tooshel: Regarding you not having to specify the type or ro/rw, mount will try to figure out the fs type on its own if you don't specify one. Likewise if you don't include any options it will default to rw and other options depending on what type the fs is. If you search the mount man page of your distro for 'mtab' and 'defaults' under '-o' it will tell you more. Jan 26, 2011 at 22:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .