Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a linux system with something mounted to /dev/sdb1. How do I know what command was used to mount it?

share|improve this question
    
Do you want to know what caused it to be mounted, or what options it was mounted with? –  mattdm Jan 20 '11 at 12:18

1 Answer 1

up vote 2 down vote accepted

The mount command by itself will tell you the options which were used to mount all mounted filesystems. For example:

# mount
/dev/mapper/vg00-rootlv on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
/dev/mapper/vg00-applv on /app type ext3 (rw)
/dev/mapper/vg00-homelv on /home type ext3 (rw)
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.