How can I know if a partition is mounted or unmounted?












7















maybe this is a simple thing but I have the following doubt.



If I perform fdisk -l, in the output I can find these devices that represent 2 partitions on the /dev/sdb device that is my SD card:



Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdb1 8192 122879 57344 c W95 FAT32 (LBA)
/dev/sdb2 122880 15523839 7700480 83 Linux


From this output can I know is these partitions are mounted or unmounted ? (I think no).



What can I do to know if a specific partition is mounted on my system?










share|improve this question





























    7















    maybe this is a simple thing but I have the following doubt.



    If I perform fdisk -l, in the output I can find these devices that represent 2 partitions on the /dev/sdb device that is my SD card:



    Dispositivo Boot      Start         End      Blocks   Id  System
    /dev/sdb1 8192 122879 57344 c W95 FAT32 (LBA)
    /dev/sdb2 122880 15523839 7700480 83 Linux


    From this output can I know is these partitions are mounted or unmounted ? (I think no).



    What can I do to know if a specific partition is mounted on my system?










    share|improve this question



























      7












      7








      7


      2






      maybe this is a simple thing but I have the following doubt.



      If I perform fdisk -l, in the output I can find these devices that represent 2 partitions on the /dev/sdb device that is my SD card:



      Dispositivo Boot      Start         End      Blocks   Id  System
      /dev/sdb1 8192 122879 57344 c W95 FAT32 (LBA)
      /dev/sdb2 122880 15523839 7700480 83 Linux


      From this output can I know is these partitions are mounted or unmounted ? (I think no).



      What can I do to know if a specific partition is mounted on my system?










      share|improve this question
















      maybe this is a simple thing but I have the following doubt.



      If I perform fdisk -l, in the output I can find these devices that represent 2 partitions on the /dev/sdb device that is my SD card:



      Dispositivo Boot      Start         End      Blocks   Id  System
      /dev/sdb1 8192 122879 57344 c W95 FAT32 (LBA)
      /dev/sdb2 122880 15523839 7700480 83 Linux


      From this output can I know is these partitions are mounted or unmounted ? (I think no).



      What can I do to know if a specific partition is mounted on my system?







      linux ubuntu partitioning mount






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 21 '14 at 18:33









      Judith

      671316




      671316










      asked Jun 3 '14 at 17:19









      AndreaNobiliAndreaNobili

      2,41082028




      2,41082028






















          6 Answers
          6






          active

          oldest

          votes


















          7














          The mount command is the usual way. On Linux, you can also check /etc/mtab, or /proc/mounts.






          share|improve this answer



















          • 1





            Note that mount simply displays the contents of /etc/mtab, which is a static file that can become out-of-date (most notably if the root fs is mounted read-only, but also if mounts are changed via direct syscalls rather than using the mount and umount utilities). /proc/mounts is guaranteed to be accurate, but obviously only exists if the /proc filesystem is correctly mounted. df reads /etc/mtab via the functions in <mntent.h>, so is no more reliable than this method.

            – Jules
            Jun 4 '14 at 0:34











          • @Jules, on some distros, /etc/mtab is actually a symlink to /proc/mounts.

            – cjm
            Jun 4 '14 at 5:55











          • @cjm I didn't know that; I'm a long-time debian/ubuntu user, where it isn't.

            – Jules
            Jun 4 '14 at 6:13



















          6














          You can also use df, which will give you a nicer printout and show the disk usage of the mounted file systems:



          $ df -h
          Filesystem Size Used Avail Use% Mounted on
          /dev/sda3 27G 8.6G 17G 35% /
          dev 2.0G 0 2.0G 0% /dev
          run 2.0G 488K 2.0G 1% /run
          tmpfs 2.0G 456K 2.0G 1% /dev/shm
          tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
          tmpfs 2.0G 738M 1.3G 38% /tmp
          /dev/sdb2 715G 515G 164G 76% /home
          tmpfs 396M 4.0K 396M 1% /run/user/1000





          share|improve this answer































            4














            lsblk is a nice way for humans to see devices and mount-points. See also this answer.



            $ lsblk
            NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
            sda 8:0 0 7.3T 0 disk
            └─dataGB-dataVB 253:1 0 14.6T 0 lvm /mnt/dataB
            sdb 8:16 0 7.3T 0 disk
            └─dataGB-dataVB 253:1 0 14.6T 0 lvm /mnt/dataB
            sdc 8:32 0 7.3T 0 disk
            └─sdc1 8:33 0 7.3T 0 part
            └─dataG-data 253:0 0 7.3T 0 lvm /mnt/data
            sdd 8:48 0 7.3T 0 disk
            └─sdd1 8:49 0 7.3T 0 part
            sde 8:64 0 9.1T 0 disk
            └─sde1 8:65 0 9.1T 0 part /mnt/dataC
            nvme0n1 259:0 0 232.9G 0 disk
            └─nvme0n1p1 259:1 0 232.9G 0 part /


            findmnt is useful for scripting or to query a specific device:



            $ findmnt /dev/sde1
            TARGET SOURCE FSTYPE OPTIONS
            /mnt/dataC /dev/sde1 xfs rw,relatime,attr2,inode64,noquota





            share|improve this answer





















            • 1





              Best answer under my opinion. Displayed the exact information I needed, in a well-formatted way. +1

              – P. Soutzikevich
              Jan 30 at 16:31



















            2














            I suppose you could use the command blkid to list what is mounted (DQMOT). I would suggest setting up your sudo gedit /etc/fstab - if you didn't know of it - with the outputs for the hard drives blkid picks up. The UUIDs "universally unique identifier" are a better way of mounting than other methods.



            For example:



            # <file system> <mount point>                   <type>  <options>                      <dump>  <pass>
            UUID=9ee10f9f-c7fa-4c94-93dc-d8ca02db9c2f / ext4 errors=remount-ro 0 1
            UUID=48ee8-657-3154044569-d52005b00ded-68 none swap sw 0 0
            UUID=C8CE6F14CE6EF9D8 /media/john/windows ntfs defaults 0 0
            UUID=F4644D2D644CF3C0 /media/john/e ntfs defaults 0 0


            You can also often see in the file manager GUI: win+e and look at whether or not the disks are mounted with the up-turned arrows. You can also mount/un-mount from this menu.



            enter image description here






            share|improve this answer


























            • Thanks, but this shows what's mounted, but not the device node, so it wouldn't answer the original question - how can I see which device nodes are actually mounted? Is there a way of showing device nodes in this GUI?

              – Rich Homolka
              Jun 3 '14 at 19:47



















            1














            The simplest way is use the command mount:



             $ mount
            /dev/sda1 on / type ext4 (rw,errors=remount-ro)
            proc on /proc type proc (rw,noexec,nosuid,nodev)
            sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
            none on /sys/fs/cgroup type tmpfs (rw)
            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)
            udev on /dev type devtmpfs (rw,mode=0755)
            devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
            tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
            none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
            none on /run/shm type tmpfs (rw,nosuid,nodev)
            none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
            none on /sys/fs/pstore type pstore (rw)
            /dev/sda6 on /home type ext4 (rw)
            binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
            rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
            systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)


            This information is stored in /etc/mtab, you can see by yourself that the output of mount is nearly identical to that of /etc/mtab






            share|improve this answer































              1














              How about gnome-disks? Depending on the Ubuntu release, it appears in classic menus as Disks under either Accessories or Utilities?



              It gives a graphical map of each disc unit and full details of device name, size, mount status, etc, and also allows mount/dismount. It has the advantage over mount of showing both mounted and unmounted partitions, but as a GUI program it does not have an output that can be piped to other processes in a script. Unlike blkid it does not need root priveleges.






              share|improve this answer























                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "3"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f763150%2fhow-can-i-know-if-a-partition-is-mounted-or-unmounted%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                6 Answers
                6






                active

                oldest

                votes








                6 Answers
                6






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                7














                The mount command is the usual way. On Linux, you can also check /etc/mtab, or /proc/mounts.






                share|improve this answer



















                • 1





                  Note that mount simply displays the contents of /etc/mtab, which is a static file that can become out-of-date (most notably if the root fs is mounted read-only, but also if mounts are changed via direct syscalls rather than using the mount and umount utilities). /proc/mounts is guaranteed to be accurate, but obviously only exists if the /proc filesystem is correctly mounted. df reads /etc/mtab via the functions in <mntent.h>, so is no more reliable than this method.

                  – Jules
                  Jun 4 '14 at 0:34











                • @Jules, on some distros, /etc/mtab is actually a symlink to /proc/mounts.

                  – cjm
                  Jun 4 '14 at 5:55











                • @cjm I didn't know that; I'm a long-time debian/ubuntu user, where it isn't.

                  – Jules
                  Jun 4 '14 at 6:13
















                7














                The mount command is the usual way. On Linux, you can also check /etc/mtab, or /proc/mounts.






                share|improve this answer



















                • 1





                  Note that mount simply displays the contents of /etc/mtab, which is a static file that can become out-of-date (most notably if the root fs is mounted read-only, but also if mounts are changed via direct syscalls rather than using the mount and umount utilities). /proc/mounts is guaranteed to be accurate, but obviously only exists if the /proc filesystem is correctly mounted. df reads /etc/mtab via the functions in <mntent.h>, so is no more reliable than this method.

                  – Jules
                  Jun 4 '14 at 0:34











                • @Jules, on some distros, /etc/mtab is actually a symlink to /proc/mounts.

                  – cjm
                  Jun 4 '14 at 5:55











                • @cjm I didn't know that; I'm a long-time debian/ubuntu user, where it isn't.

                  – Jules
                  Jun 4 '14 at 6:13














                7












                7








                7







                The mount command is the usual way. On Linux, you can also check /etc/mtab, or /proc/mounts.






                share|improve this answer













                The mount command is the usual way. On Linux, you can also check /etc/mtab, or /proc/mounts.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jun 3 '14 at 17:31









                Rich HomolkaRich Homolka

                25.4k64367




                25.4k64367








                • 1





                  Note that mount simply displays the contents of /etc/mtab, which is a static file that can become out-of-date (most notably if the root fs is mounted read-only, but also if mounts are changed via direct syscalls rather than using the mount and umount utilities). /proc/mounts is guaranteed to be accurate, but obviously only exists if the /proc filesystem is correctly mounted. df reads /etc/mtab via the functions in <mntent.h>, so is no more reliable than this method.

                  – Jules
                  Jun 4 '14 at 0:34











                • @Jules, on some distros, /etc/mtab is actually a symlink to /proc/mounts.

                  – cjm
                  Jun 4 '14 at 5:55











                • @cjm I didn't know that; I'm a long-time debian/ubuntu user, where it isn't.

                  – Jules
                  Jun 4 '14 at 6:13














                • 1





                  Note that mount simply displays the contents of /etc/mtab, which is a static file that can become out-of-date (most notably if the root fs is mounted read-only, but also if mounts are changed via direct syscalls rather than using the mount and umount utilities). /proc/mounts is guaranteed to be accurate, but obviously only exists if the /proc filesystem is correctly mounted. df reads /etc/mtab via the functions in <mntent.h>, so is no more reliable than this method.

                  – Jules
                  Jun 4 '14 at 0:34











                • @Jules, on some distros, /etc/mtab is actually a symlink to /proc/mounts.

                  – cjm
                  Jun 4 '14 at 5:55











                • @cjm I didn't know that; I'm a long-time debian/ubuntu user, where it isn't.

                  – Jules
                  Jun 4 '14 at 6:13








                1




                1





                Note that mount simply displays the contents of /etc/mtab, which is a static file that can become out-of-date (most notably if the root fs is mounted read-only, but also if mounts are changed via direct syscalls rather than using the mount and umount utilities). /proc/mounts is guaranteed to be accurate, but obviously only exists if the /proc filesystem is correctly mounted. df reads /etc/mtab via the functions in <mntent.h>, so is no more reliable than this method.

                – Jules
                Jun 4 '14 at 0:34





                Note that mount simply displays the contents of /etc/mtab, which is a static file that can become out-of-date (most notably if the root fs is mounted read-only, but also if mounts are changed via direct syscalls rather than using the mount and umount utilities). /proc/mounts is guaranteed to be accurate, but obviously only exists if the /proc filesystem is correctly mounted. df reads /etc/mtab via the functions in <mntent.h>, so is no more reliable than this method.

                – Jules
                Jun 4 '14 at 0:34













                @Jules, on some distros, /etc/mtab is actually a symlink to /proc/mounts.

                – cjm
                Jun 4 '14 at 5:55





                @Jules, on some distros, /etc/mtab is actually a symlink to /proc/mounts.

                – cjm
                Jun 4 '14 at 5:55













                @cjm I didn't know that; I'm a long-time debian/ubuntu user, where it isn't.

                – Jules
                Jun 4 '14 at 6:13





                @cjm I didn't know that; I'm a long-time debian/ubuntu user, where it isn't.

                – Jules
                Jun 4 '14 at 6:13













                6














                You can also use df, which will give you a nicer printout and show the disk usage of the mounted file systems:



                $ df -h
                Filesystem Size Used Avail Use% Mounted on
                /dev/sda3 27G 8.6G 17G 35% /
                dev 2.0G 0 2.0G 0% /dev
                run 2.0G 488K 2.0G 1% /run
                tmpfs 2.0G 456K 2.0G 1% /dev/shm
                tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
                tmpfs 2.0G 738M 1.3G 38% /tmp
                /dev/sdb2 715G 515G 164G 76% /home
                tmpfs 396M 4.0K 396M 1% /run/user/1000





                share|improve this answer




























                  6














                  You can also use df, which will give you a nicer printout and show the disk usage of the mounted file systems:



                  $ df -h
                  Filesystem Size Used Avail Use% Mounted on
                  /dev/sda3 27G 8.6G 17G 35% /
                  dev 2.0G 0 2.0G 0% /dev
                  run 2.0G 488K 2.0G 1% /run
                  tmpfs 2.0G 456K 2.0G 1% /dev/shm
                  tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
                  tmpfs 2.0G 738M 1.3G 38% /tmp
                  /dev/sdb2 715G 515G 164G 76% /home
                  tmpfs 396M 4.0K 396M 1% /run/user/1000





                  share|improve this answer


























                    6












                    6








                    6







                    You can also use df, which will give you a nicer printout and show the disk usage of the mounted file systems:



                    $ df -h
                    Filesystem Size Used Avail Use% Mounted on
                    /dev/sda3 27G 8.6G 17G 35% /
                    dev 2.0G 0 2.0G 0% /dev
                    run 2.0G 488K 2.0G 1% /run
                    tmpfs 2.0G 456K 2.0G 1% /dev/shm
                    tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
                    tmpfs 2.0G 738M 1.3G 38% /tmp
                    /dev/sdb2 715G 515G 164G 76% /home
                    tmpfs 396M 4.0K 396M 1% /run/user/1000





                    share|improve this answer













                    You can also use df, which will give you a nicer printout and show the disk usage of the mounted file systems:



                    $ df -h
                    Filesystem Size Used Avail Use% Mounted on
                    /dev/sda3 27G 8.6G 17G 35% /
                    dev 2.0G 0 2.0G 0% /dev
                    run 2.0G 488K 2.0G 1% /run
                    tmpfs 2.0G 456K 2.0G 1% /dev/shm
                    tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
                    tmpfs 2.0G 738M 1.3G 38% /tmp
                    /dev/sdb2 715G 515G 164G 76% /home
                    tmpfs 396M 4.0K 396M 1% /run/user/1000






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jun 3 '14 at 19:29









                    Roberto GomezRoberto Gomez

                    1,02499




                    1,02499























                        4














                        lsblk is a nice way for humans to see devices and mount-points. See also this answer.



                        $ lsblk
                        NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
                        sda 8:0 0 7.3T 0 disk
                        └─dataGB-dataVB 253:1 0 14.6T 0 lvm /mnt/dataB
                        sdb 8:16 0 7.3T 0 disk
                        └─dataGB-dataVB 253:1 0 14.6T 0 lvm /mnt/dataB
                        sdc 8:32 0 7.3T 0 disk
                        └─sdc1 8:33 0 7.3T 0 part
                        └─dataG-data 253:0 0 7.3T 0 lvm /mnt/data
                        sdd 8:48 0 7.3T 0 disk
                        └─sdd1 8:49 0 7.3T 0 part
                        sde 8:64 0 9.1T 0 disk
                        └─sde1 8:65 0 9.1T 0 part /mnt/dataC
                        nvme0n1 259:0 0 232.9G 0 disk
                        └─nvme0n1p1 259:1 0 232.9G 0 part /


                        findmnt is useful for scripting or to query a specific device:



                        $ findmnt /dev/sde1
                        TARGET SOURCE FSTYPE OPTIONS
                        /mnt/dataC /dev/sde1 xfs rw,relatime,attr2,inode64,noquota





                        share|improve this answer





















                        • 1





                          Best answer under my opinion. Displayed the exact information I needed, in a well-formatted way. +1

                          – P. Soutzikevich
                          Jan 30 at 16:31
















                        4














                        lsblk is a nice way for humans to see devices and mount-points. See also this answer.



                        $ lsblk
                        NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
                        sda 8:0 0 7.3T 0 disk
                        └─dataGB-dataVB 253:1 0 14.6T 0 lvm /mnt/dataB
                        sdb 8:16 0 7.3T 0 disk
                        └─dataGB-dataVB 253:1 0 14.6T 0 lvm /mnt/dataB
                        sdc 8:32 0 7.3T 0 disk
                        └─sdc1 8:33 0 7.3T 0 part
                        └─dataG-data 253:0 0 7.3T 0 lvm /mnt/data
                        sdd 8:48 0 7.3T 0 disk
                        └─sdd1 8:49 0 7.3T 0 part
                        sde 8:64 0 9.1T 0 disk
                        └─sde1 8:65 0 9.1T 0 part /mnt/dataC
                        nvme0n1 259:0 0 232.9G 0 disk
                        └─nvme0n1p1 259:1 0 232.9G 0 part /


                        findmnt is useful for scripting or to query a specific device:



                        $ findmnt /dev/sde1
                        TARGET SOURCE FSTYPE OPTIONS
                        /mnt/dataC /dev/sde1 xfs rw,relatime,attr2,inode64,noquota





                        share|improve this answer





















                        • 1





                          Best answer under my opinion. Displayed the exact information I needed, in a well-formatted way. +1

                          – P. Soutzikevich
                          Jan 30 at 16:31














                        4












                        4








                        4







                        lsblk is a nice way for humans to see devices and mount-points. See also this answer.



                        $ lsblk
                        NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
                        sda 8:0 0 7.3T 0 disk
                        └─dataGB-dataVB 253:1 0 14.6T 0 lvm /mnt/dataB
                        sdb 8:16 0 7.3T 0 disk
                        └─dataGB-dataVB 253:1 0 14.6T 0 lvm /mnt/dataB
                        sdc 8:32 0 7.3T 0 disk
                        └─sdc1 8:33 0 7.3T 0 part
                        └─dataG-data 253:0 0 7.3T 0 lvm /mnt/data
                        sdd 8:48 0 7.3T 0 disk
                        └─sdd1 8:49 0 7.3T 0 part
                        sde 8:64 0 9.1T 0 disk
                        └─sde1 8:65 0 9.1T 0 part /mnt/dataC
                        nvme0n1 259:0 0 232.9G 0 disk
                        └─nvme0n1p1 259:1 0 232.9G 0 part /


                        findmnt is useful for scripting or to query a specific device:



                        $ findmnt /dev/sde1
                        TARGET SOURCE FSTYPE OPTIONS
                        /mnt/dataC /dev/sde1 xfs rw,relatime,attr2,inode64,noquota





                        share|improve this answer















                        lsblk is a nice way for humans to see devices and mount-points. See also this answer.



                        $ lsblk
                        NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
                        sda 8:0 0 7.3T 0 disk
                        └─dataGB-dataVB 253:1 0 14.6T 0 lvm /mnt/dataB
                        sdb 8:16 0 7.3T 0 disk
                        └─dataGB-dataVB 253:1 0 14.6T 0 lvm /mnt/dataB
                        sdc 8:32 0 7.3T 0 disk
                        └─sdc1 8:33 0 7.3T 0 part
                        └─dataG-data 253:0 0 7.3T 0 lvm /mnt/data
                        sdd 8:48 0 7.3T 0 disk
                        └─sdd1 8:49 0 7.3T 0 part
                        sde 8:64 0 9.1T 0 disk
                        └─sde1 8:65 0 9.1T 0 part /mnt/dataC
                        nvme0n1 259:0 0 232.9G 0 disk
                        └─nvme0n1p1 259:1 0 232.9G 0 part /


                        findmnt is useful for scripting or to query a specific device:



                        $ findmnt /dev/sde1
                        TARGET SOURCE FSTYPE OPTIONS
                        /mnt/dataC /dev/sde1 xfs rw,relatime,attr2,inode64,noquota






                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Jan 30 at 17:58

























                        answered Nov 14 '17 at 17:31









                        Justin M. KeyesJustin M. Keyes

                        1408




                        1408








                        • 1





                          Best answer under my opinion. Displayed the exact information I needed, in a well-formatted way. +1

                          – P. Soutzikevich
                          Jan 30 at 16:31














                        • 1





                          Best answer under my opinion. Displayed the exact information I needed, in a well-formatted way. +1

                          – P. Soutzikevich
                          Jan 30 at 16:31








                        1




                        1





                        Best answer under my opinion. Displayed the exact information I needed, in a well-formatted way. +1

                        – P. Soutzikevich
                        Jan 30 at 16:31





                        Best answer under my opinion. Displayed the exact information I needed, in a well-formatted way. +1

                        – P. Soutzikevich
                        Jan 30 at 16:31











                        2














                        I suppose you could use the command blkid to list what is mounted (DQMOT). I would suggest setting up your sudo gedit /etc/fstab - if you didn't know of it - with the outputs for the hard drives blkid picks up. The UUIDs "universally unique identifier" are a better way of mounting than other methods.



                        For example:



                        # <file system> <mount point>                   <type>  <options>                      <dump>  <pass>
                        UUID=9ee10f9f-c7fa-4c94-93dc-d8ca02db9c2f / ext4 errors=remount-ro 0 1
                        UUID=48ee8-657-3154044569-d52005b00ded-68 none swap sw 0 0
                        UUID=C8CE6F14CE6EF9D8 /media/john/windows ntfs defaults 0 0
                        UUID=F4644D2D644CF3C0 /media/john/e ntfs defaults 0 0


                        You can also often see in the file manager GUI: win+e and look at whether or not the disks are mounted with the up-turned arrows. You can also mount/un-mount from this menu.



                        enter image description here






                        share|improve this answer


























                        • Thanks, but this shows what's mounted, but not the device node, so it wouldn't answer the original question - how can I see which device nodes are actually mounted? Is there a way of showing device nodes in this GUI?

                          – Rich Homolka
                          Jun 3 '14 at 19:47
















                        2














                        I suppose you could use the command blkid to list what is mounted (DQMOT). I would suggest setting up your sudo gedit /etc/fstab - if you didn't know of it - with the outputs for the hard drives blkid picks up. The UUIDs "universally unique identifier" are a better way of mounting than other methods.



                        For example:



                        # <file system> <mount point>                   <type>  <options>                      <dump>  <pass>
                        UUID=9ee10f9f-c7fa-4c94-93dc-d8ca02db9c2f / ext4 errors=remount-ro 0 1
                        UUID=48ee8-657-3154044569-d52005b00ded-68 none swap sw 0 0
                        UUID=C8CE6F14CE6EF9D8 /media/john/windows ntfs defaults 0 0
                        UUID=F4644D2D644CF3C0 /media/john/e ntfs defaults 0 0


                        You can also often see in the file manager GUI: win+e and look at whether or not the disks are mounted with the up-turned arrows. You can also mount/un-mount from this menu.



                        enter image description here






                        share|improve this answer


























                        • Thanks, but this shows what's mounted, but not the device node, so it wouldn't answer the original question - how can I see which device nodes are actually mounted? Is there a way of showing device nodes in this GUI?

                          – Rich Homolka
                          Jun 3 '14 at 19:47














                        2












                        2








                        2







                        I suppose you could use the command blkid to list what is mounted (DQMOT). I would suggest setting up your sudo gedit /etc/fstab - if you didn't know of it - with the outputs for the hard drives blkid picks up. The UUIDs "universally unique identifier" are a better way of mounting than other methods.



                        For example:



                        # <file system> <mount point>                   <type>  <options>                      <dump>  <pass>
                        UUID=9ee10f9f-c7fa-4c94-93dc-d8ca02db9c2f / ext4 errors=remount-ro 0 1
                        UUID=48ee8-657-3154044569-d52005b00ded-68 none swap sw 0 0
                        UUID=C8CE6F14CE6EF9D8 /media/john/windows ntfs defaults 0 0
                        UUID=F4644D2D644CF3C0 /media/john/e ntfs defaults 0 0


                        You can also often see in the file manager GUI: win+e and look at whether or not the disks are mounted with the up-turned arrows. You can also mount/un-mount from this menu.



                        enter image description here






                        share|improve this answer















                        I suppose you could use the command blkid to list what is mounted (DQMOT). I would suggest setting up your sudo gedit /etc/fstab - if you didn't know of it - with the outputs for the hard drives blkid picks up. The UUIDs "universally unique identifier" are a better way of mounting than other methods.



                        For example:



                        # <file system> <mount point>                   <type>  <options>                      <dump>  <pass>
                        UUID=9ee10f9f-c7fa-4c94-93dc-d8ca02db9c2f / ext4 errors=remount-ro 0 1
                        UUID=48ee8-657-3154044569-d52005b00ded-68 none swap sw 0 0
                        UUID=C8CE6F14CE6EF9D8 /media/john/windows ntfs defaults 0 0
                        UUID=F4644D2D644CF3C0 /media/john/e ntfs defaults 0 0


                        You can also often see in the file manager GUI: win+e and look at whether or not the disks are mounted with the up-turned arrows. You can also mount/un-mount from this menu.



                        enter image description here







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Jun 3 '14 at 20:10

























                        answered Jun 3 '14 at 17:41









                        JonathanJonathan

                        2661313




                        2661313













                        • Thanks, but this shows what's mounted, but not the device node, so it wouldn't answer the original question - how can I see which device nodes are actually mounted? Is there a way of showing device nodes in this GUI?

                          – Rich Homolka
                          Jun 3 '14 at 19:47



















                        • Thanks, but this shows what's mounted, but not the device node, so it wouldn't answer the original question - how can I see which device nodes are actually mounted? Is there a way of showing device nodes in this GUI?

                          – Rich Homolka
                          Jun 3 '14 at 19:47

















                        Thanks, but this shows what's mounted, but not the device node, so it wouldn't answer the original question - how can I see which device nodes are actually mounted? Is there a way of showing device nodes in this GUI?

                        – Rich Homolka
                        Jun 3 '14 at 19:47





                        Thanks, but this shows what's mounted, but not the device node, so it wouldn't answer the original question - how can I see which device nodes are actually mounted? Is there a way of showing device nodes in this GUI?

                        – Rich Homolka
                        Jun 3 '14 at 19:47











                        1














                        The simplest way is use the command mount:



                         $ mount
                        /dev/sda1 on / type ext4 (rw,errors=remount-ro)
                        proc on /proc type proc (rw,noexec,nosuid,nodev)
                        sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
                        none on /sys/fs/cgroup type tmpfs (rw)
                        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)
                        udev on /dev type devtmpfs (rw,mode=0755)
                        devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
                        tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
                        none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
                        none on /run/shm type tmpfs (rw,nosuid,nodev)
                        none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
                        none on /sys/fs/pstore type pstore (rw)
                        /dev/sda6 on /home type ext4 (rw)
                        binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
                        rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
                        systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)


                        This information is stored in /etc/mtab, you can see by yourself that the output of mount is nearly identical to that of /etc/mtab






                        share|improve this answer




























                          1














                          The simplest way is use the command mount:



                           $ mount
                          /dev/sda1 on / type ext4 (rw,errors=remount-ro)
                          proc on /proc type proc (rw,noexec,nosuid,nodev)
                          sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
                          none on /sys/fs/cgroup type tmpfs (rw)
                          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)
                          udev on /dev type devtmpfs (rw,mode=0755)
                          devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
                          tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
                          none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
                          none on /run/shm type tmpfs (rw,nosuid,nodev)
                          none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
                          none on /sys/fs/pstore type pstore (rw)
                          /dev/sda6 on /home type ext4 (rw)
                          binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
                          rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
                          systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)


                          This information is stored in /etc/mtab, you can see by yourself that the output of mount is nearly identical to that of /etc/mtab






                          share|improve this answer


























                            1












                            1








                            1







                            The simplest way is use the command mount:



                             $ mount
                            /dev/sda1 on / type ext4 (rw,errors=remount-ro)
                            proc on /proc type proc (rw,noexec,nosuid,nodev)
                            sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
                            none on /sys/fs/cgroup type tmpfs (rw)
                            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)
                            udev on /dev type devtmpfs (rw,mode=0755)
                            devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
                            tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
                            none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
                            none on /run/shm type tmpfs (rw,nosuid,nodev)
                            none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
                            none on /sys/fs/pstore type pstore (rw)
                            /dev/sda6 on /home type ext4 (rw)
                            binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
                            rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
                            systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)


                            This information is stored in /etc/mtab, you can see by yourself that the output of mount is nearly identical to that of /etc/mtab






                            share|improve this answer













                            The simplest way is use the command mount:



                             $ mount
                            /dev/sda1 on / type ext4 (rw,errors=remount-ro)
                            proc on /proc type proc (rw,noexec,nosuid,nodev)
                            sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
                            none on /sys/fs/cgroup type tmpfs (rw)
                            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)
                            udev on /dev type devtmpfs (rw,mode=0755)
                            devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
                            tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
                            none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
                            none on /run/shm type tmpfs (rw,nosuid,nodev)
                            none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
                            none on /sys/fs/pstore type pstore (rw)
                            /dev/sda6 on /home type ext4 (rw)
                            binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
                            rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
                            systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)


                            This information is stored in /etc/mtab, you can see by yourself that the output of mount is nearly identical to that of /etc/mtab







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jun 3 '14 at 18:20









                            MariusMatutiaeMariusMatutiae

                            38.6k953100




                            38.6k953100























                                1














                                How about gnome-disks? Depending on the Ubuntu release, it appears in classic menus as Disks under either Accessories or Utilities?



                                It gives a graphical map of each disc unit and full details of device name, size, mount status, etc, and also allows mount/dismount. It has the advantage over mount of showing both mounted and unmounted partitions, but as a GUI program it does not have an output that can be piped to other processes in a script. Unlike blkid it does not need root priveleges.






                                share|improve this answer




























                                  1














                                  How about gnome-disks? Depending on the Ubuntu release, it appears in classic menus as Disks under either Accessories or Utilities?



                                  It gives a graphical map of each disc unit and full details of device name, size, mount status, etc, and also allows mount/dismount. It has the advantage over mount of showing both mounted and unmounted partitions, but as a GUI program it does not have an output that can be piped to other processes in a script. Unlike blkid it does not need root priveleges.






                                  share|improve this answer


























                                    1












                                    1








                                    1







                                    How about gnome-disks? Depending on the Ubuntu release, it appears in classic menus as Disks under either Accessories or Utilities?



                                    It gives a graphical map of each disc unit and full details of device name, size, mount status, etc, and also allows mount/dismount. It has the advantage over mount of showing both mounted and unmounted partitions, but as a GUI program it does not have an output that can be piped to other processes in a script. Unlike blkid it does not need root priveleges.






                                    share|improve this answer













                                    How about gnome-disks? Depending on the Ubuntu release, it appears in classic menus as Disks under either Accessories or Utilities?



                                    It gives a graphical map of each disc unit and full details of device name, size, mount status, etc, and also allows mount/dismount. It has the advantage over mount of showing both mounted and unmounted partitions, but as a GUI program it does not have an output that can be piped to other processes in a script. Unlike blkid it does not need root priveleges.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jun 3 '14 at 23:20









                                    AFHAFH

                                    14.3k31938




                                    14.3k31938






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Super User!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f763150%2fhow-can-i-know-if-a-partition-is-mounted-or-unmounted%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                                        Mangá

                                        Eduardo VII do Reino Unido