Knowledge

mount (Unix)

Source 📝

27: 1327: 1349: 233:
privilege to effect changes. Alternately, specific privileges to perform the corresponding action may have been previously granted by the root user. A file system can be defined as user mountable in the
202:
instructs the operating system that the file system should be disassociated from its mount point, making it no longer accessible and may be removed from the computer. It is important to
428:
to use this instead of invoking mount/umount/eject/pmount or direct HAL invoking methods. GNOME previously used pmount. Note, gnome-mount is not intended for direct use by users.
196:) and sets options relating to its access. Mounting makes file systems, files, directories, devices and special files available for use and available to the user. Its counterpart 424:
package contains programs for mounting, unmounting and ejecting storage devices. The goal for gnome-mount is for GNOME software such as gnome-volume-manager and
1514: 566: 1387: 587: 541: 431:
All the gnome-mount programs utilize HAL methods and as such run unprivileged. The rationale for gnome-mount is to have a centralized place (in
1544: 715: 512: 167: 1380: 208:
a device before removing it since changes to files may have only partially been written and are completed as part of the
1525: 438:
As with all unix-like commands, the options are specific to the version of mount and are precisely detailed in its
97: 1373: 1340: 1335: 693: 562: 1176: 708: 363:. Mounting a loop device allows the file to be accessed as a filesystem. This allows it to be used as a 591: 1312: 1282: 533: 192:
is ready to use, and associates it with a particular point in the overall file system hierarchy (its
56: 1297: 901: 891: 644: 1353: 1058: 727: 701: 311: 328: 1466: 1228: 335:, a bind mount does not exist on the filesystem itself. In the following example, the path 8: 121: 102: 1509: 1408: 394:
program which permits normal users to mount removable devices without a matching /etc/
1418: 504: 474: 141: 1499: 1484: 1128: 1033: 1028: 185: 125: 81: 273:
10.4.0.4:/srv/export/setup_server on /nfs/setup_server type nfs (ro,addr=10.4.0.4)
1307: 1251: 1156: 957: 860: 402:
frameworks like GNOME's Utopia project and keeps the usage of root to a minimum.
387: 279: 1246: 1181: 1166: 1103: 1063: 942: 906: 800: 616: 454: 410: 44: 1538: 1474: 1428: 1287: 1148: 1083: 855: 830: 731: 364: 332: 129: 1489: 1479: 1261: 1161: 1078: 1073: 977: 886: 850: 805: 723: 435:) where settings such as mount options and mount locations are maintained. 39: 678: 370:
For example, a virtual disk image can be mounted as a regular filesystem.
166:
and other removable storage devices. The command is also available in the
1365: 1197: 1171: 1108: 1098: 1088: 1053: 1043: 1038: 921: 911: 865: 399: 356: 189: 159: 137: 610: 26: 1436: 1013: 972: 775: 745: 484: 409:, which reads information such as device labels and mount options from 360: 51: 34: 1302: 1256: 1236: 1133: 1113: 1068: 916: 840: 825: 810: 795: 790: 785: 780: 661: 425: 230: 133: 111: 90: 627: 1504: 1494: 1456: 1413: 1218: 998: 688: 671: 654: 637: 620: 439: 1023: 947: 650: 155: 1008: 750: 1441: 1396: 1241: 1138: 1118: 1048: 967: 870: 845: 820: 770: 765: 760: 755: 684: 667: 633: 537: 432: 395: 331:
or a file to be mounted at a different mount point. Unlike a
237: 1292: 1266: 1202: 1123: 1018: 1003: 962: 952: 896: 724: 479: 86: 1446: 1093: 993: 937: 835: 163: 563:"What is the difference between ln -s and mount --bind?" 294:
To unmount by referring to the physical disk partition:
815: 526: 359:is a device that corresponds to a file, usually a 270:/tmp on /var/tmp type none (rw,noexec,nosuid,bind) 264:devpts on /dev/pts type devpts (rw,gid=5,mode=620) 140:on the device which contains the file needs to be 1536: 1381: 709: 302:To unmount by referring to the mount point: 378: 1395: 1388: 1374: 1348: 716: 702: 25: 398:entry. This provides a robust basis for 350: 636:Administration and Privileged Commands 1537: 1369: 697: 405:This package also contains a wrapper 374:$ mount-oloopmy_virtual_disk.img/mnt 310:To remount a partition with specific 278:To mount the second partition of a 249:To display all mounted partitions: 13: 16:Unix command to mount a filesystem 14: 1556: 1545:Unix file system-related software 1526:Comparison of disc image software 602: 267:/dev/sda1 on /boot type ext3 (rw) 1347: 1326: 1325: 322: 569:from the original on 2023-02-20 544:from the original on 2009-01-30 515:from the original on 2012-11-30 445:In addition to the system call 580: 555: 505:"mount(8) - Linux manual page" 497: 290:$ mount/dev/hda2/media/PHOTOS 1: 490: 461:is called by the system call 318:$ mount-oremount,rw/dev/hda2 261:sysfs on /sys type sysfs (rw) 128:. Before a user can access a 457:filesystem. In this context 346:$ mount--bind/olddir/newdir 258:proc on /proc type proc (rw) 7: 468: 244: 173: 10: 1561: 534:"EFI Shells and Scripting" 282:to the existing directory 57:AT&T Bell Laboratories 1523: 1465: 1427: 1404: 1321: 1275: 1227: 1211: 1190: 1147: 986: 930: 879: 738: 96: 80: 62: 50: 33: 24: 379:Derivatives and wrappers 372: 344: 316: 304: 296: 288: 251: 327:Bind mounting allows a 241:file by the root user. 1341:Unix SUS2008 utilities 1336:Standard Unix programs 728:command-line interface 306:$ umount/media/PHOTOS 184:command instructs the 68:; 52 years ago 453:mounts the first, or 351:Mounting loop devices 66:November 3, 1971 1467:Proprietary software 1229:Software development 390:around the standard 329:filesystem hierarchy 148:command. Frequently 339:will be mounted in 21: 1510:Virtual CloneDrive 1409:Virtual disk image 298:$ umount/dev/hda2 35:Original author(s) 19: 1532: 1531: 1363: 1362: 653:System Manager's 588:"gnome-mount-0.6" 475:Mount (computing) 413:and passes it to 229:commands require 126:operating systems 108: 107: 1552: 1515:VirtualDrive Pro 1485:DiskImageMounter 1390: 1383: 1376: 1367: 1366: 1351: 1350: 1329: 1328: 931:User environment 718: 711: 704: 695: 694: 682: 681: 665: 664: 648: 647: 631: 630: 614: 613: 596: 595: 594:on June 5, 2008. 590:. Archived from 584: 578: 577: 575: 574: 559: 553: 552: 550: 549: 530: 524: 523: 521: 520: 501: 423: 385: 342: 338: 274: 271: 268: 265: 262: 259: 255: 240: 227: 221: 212: 206: 200: 186:operating system 182: 152: 118: 82:Operating system 76: 74: 69: 29: 22: 18: 1560: 1559: 1555: 1554: 1553: 1551: 1550: 1549: 1535: 1534: 1533: 1528: 1519: 1461: 1423: 1400: 1394: 1364: 1359: 1317: 1271: 1223: 1207: 1186: 1143: 987:Text processing 982: 926: 875: 734: 722: 677: 676: 660: 659: 643: 642: 626: 625: 609: 608: 605: 600: 599: 586: 585: 581: 572: 570: 561: 560: 556: 547: 545: 532: 531: 527: 518: 516: 503: 502: 498: 493: 471: 449:, the function 421: 383: 381: 376: 375: 353: 348: 347: 340: 336: 325: 320: 319: 308: 307: 300: 299: 292: 291: 286:(mount point): 280:hard disk drive 276: 275: 272: 269: 266: 263: 260: 257: 253: 247: 235: 225: 219: 210: 204: 198: 180: 176: 150: 116: 72: 70: 67: 63:Initial release 43: 17: 12: 11: 5: 1558: 1548: 1547: 1530: 1529: 1524: 1521: 1520: 1518: 1517: 1512: 1507: 1502: 1497: 1492: 1487: 1482: 1477: 1471: 1469: 1463: 1462: 1460: 1459: 1454: 1449: 1444: 1439: 1433: 1431: 1425: 1424: 1422: 1421: 1416: 1411: 1405: 1402: 1401: 1393: 1392: 1385: 1378: 1370: 1361: 1360: 1358: 1357: 1345: 1344: 1343: 1338: 1322: 1319: 1318: 1316: 1315: 1313:true and false 1310: 1305: 1300: 1295: 1290: 1285: 1279: 1277: 1273: 1272: 1270: 1269: 1264: 1259: 1254: 1249: 1244: 1239: 1233: 1231: 1225: 1224: 1222: 1221: 1215: 1213: 1209: 1208: 1206: 1205: 1200: 1194: 1192: 1188: 1187: 1185: 1184: 1179: 1174: 1169: 1164: 1159: 1153: 1151: 1149:Shell builtins 1145: 1144: 1142: 1141: 1136: 1131: 1126: 1121: 1116: 1111: 1106: 1101: 1096: 1091: 1086: 1081: 1076: 1071: 1066: 1061: 1056: 1051: 1046: 1041: 1036: 1031: 1026: 1021: 1016: 1011: 1006: 1001: 996: 990: 988: 984: 983: 981: 980: 975: 970: 965: 960: 955: 950: 945: 940: 934: 932: 928: 927: 925: 924: 919: 914: 909: 904: 899: 894: 889: 883: 881: 877: 876: 874: 873: 868: 863: 858: 853: 848: 843: 838: 833: 828: 823: 818: 813: 808: 803: 798: 793: 788: 783: 778: 773: 768: 763: 758: 753: 748: 742: 740: 736: 735: 732:shell builtins 721: 720: 713: 706: 698: 692: 691: 687:User Commands 679:gnome-mount(1) 674: 670:User Commands 657: 640: 623: 617:Version 7 Unix 604: 603:External links 601: 598: 597: 579: 554: 525: 495: 494: 492: 489: 488: 487: 482: 477: 470: 467: 380: 377: 373: 352: 349: 345: 324: 321: 317: 305: 297: 289: 252: 246: 243: 175: 172: 106: 105: 100: 94: 93: 84: 78: 77: 64: 60: 59: 54: 48: 47: 45:Dennis Ritchie 37: 31: 30: 15: 9: 6: 4: 3: 2: 1557: 1546: 1543: 1542: 1540: 1527: 1522: 1516: 1513: 1511: 1508: 1506: 1503: 1501: 1498: 1496: 1493: 1491: 1488: 1486: 1483: 1481: 1478: 1476: 1473: 1472: 1470: 1468: 1464: 1458: 1455: 1453: 1450: 1448: 1445: 1443: 1440: 1438: 1435: 1434: 1432: 1430: 1429:Free software 1426: 1420: 1417: 1415: 1412: 1410: 1407: 1406: 1403: 1398: 1397:Virtual drive 1391: 1386: 1384: 1379: 1377: 1372: 1371: 1368: 1356: 1355: 1346: 1342: 1339: 1337: 1334: 1333: 1332: 1324: 1323: 1320: 1314: 1311: 1309: 1306: 1304: 1301: 1299: 1296: 1294: 1291: 1289: 1286: 1284: 1281: 1280: 1278: 1276:Miscellaneous 1274: 1268: 1265: 1263: 1260: 1258: 1255: 1253: 1250: 1248: 1245: 1243: 1240: 1238: 1235: 1234: 1232: 1230: 1226: 1220: 1217: 1216: 1214: 1212:Documentation 1210: 1204: 1201: 1199: 1196: 1195: 1193: 1189: 1183: 1180: 1178: 1175: 1173: 1170: 1168: 1165: 1163: 1160: 1158: 1155: 1154: 1152: 1150: 1146: 1140: 1137: 1135: 1132: 1130: 1127: 1125: 1122: 1120: 1117: 1115: 1112: 1110: 1107: 1105: 1102: 1100: 1097: 1095: 1092: 1090: 1087: 1085: 1082: 1080: 1077: 1075: 1072: 1070: 1067: 1065: 1062: 1060: 1057: 1055: 1052: 1050: 1047: 1045: 1042: 1040: 1037: 1035: 1032: 1030: 1027: 1025: 1022: 1020: 1017: 1015: 1012: 1010: 1007: 1005: 1002: 1000: 997: 995: 992: 991: 989: 985: 979: 976: 974: 971: 969: 966: 964: 961: 959: 956: 954: 951: 949: 946: 944: 941: 939: 936: 935: 933: 929: 923: 920: 918: 915: 913: 910: 908: 905: 903: 900: 898: 895: 893: 890: 888: 885: 884: 882: 878: 872: 869: 867: 864: 862: 859: 857: 854: 852: 849: 847: 844: 842: 839: 837: 834: 832: 829: 827: 824: 822: 819: 817: 814: 812: 809: 807: 804: 802: 799: 797: 794: 792: 789: 787: 784: 782: 779: 777: 774: 772: 769: 767: 764: 762: 759: 757: 754: 752: 749: 747: 744: 743: 741: 737: 733: 730:programs and 729: 726: 719: 714: 712: 707: 705: 700: 699: 696: 690: 686: 683: –  680: 675: 673: 669: 666: –  663: 658: 656: 652: 649: –  646: 641: 639: 635: 632: –  629: 624: 622: 619:Programmer's 618: 615: –  612: 607: 606: 593: 589: 583: 568: 564: 558: 543: 539: 535: 529: 514: 510: 506: 500: 496: 486: 483: 481: 478: 476: 473: 472: 466: 464: 460: 456: 452: 448: 443: 441: 436: 434: 429: 427: 418: 416: 412: 408: 403: 401: 397: 393: 389: 371: 368: 366: 365:virtual drive 362: 358: 343: 334: 333:symbolic link 330: 323:Bind mounting 315: 313: 303: 295: 287: 285: 284:/media/PHOTOS 281: 250: 242: 239: 232: 228: 222: 215: 213: 207: 201: 195: 191: 187: 183: 171: 169: 165: 161: 157: 153: 147: 143: 139: 136:machine, the 135: 131: 127: 123: 119: 113: 104: 101: 99: 95: 92: 88: 85: 83: 79: 65: 61: 58: 55: 53: 49: 46: 41: 38: 36: 32: 28: 23: 1490:Disk Utility 1480:Daemon Tools 1475:Alcohol 120% 1451: 1352: 1330: 592:the original 582: 571:. Retrieved 557: 546:. Retrieved 528: 517:. Retrieved 508: 499: 462: 458: 451:mount_root() 450: 446: 444: 437: 430: 419: 414: 406: 404: 400:automounting 391: 382: 369: 354: 326: 309: 301: 293: 283: 277: 248: 224: 218: 216: 209: 203: 197: 193: 179: 177: 154:is used for 149: 145: 115: 109: 52:Developer(s) 40:Ken Thompson 1500:Roxio Toast 739:File system 422:gnome-mount 357:loop device 194:mount point 190:file system 160:USB storage 138:file system 124:in various 1437:AcetoneISO 1331:Categories 573:2022-05-04 548:2013-09-25 519:2021-06-21 491:References 485:util-linux 407:pmount-hal 361:disk image 73:1971-11-03 1191:Searching 880:Processes 662:pmount(1) 426:GNOME-VFS 231:root user 168:EFI shell 144:with the 134:Unix-like 112:computing 91:Unix-like 1539:Category 1505:UltraISO 1495:MagicISO 1457:WinCDEmu 1414:RAM disk 1399:software 999:basename 645:mount(8) 628:mount(8) 611:mount(1) 567:Archived 542:Archived 513:Archived 509:man7.org 469:See also 440:man page 245:Examples 174:Overview 1104:strings 1024:dirname 948:logname 897:crontab 651:FreeBSD 388:wrapper 341:/newdir 337:/olddir 312:options 188:that a 156:SD card 142:mounted 122:command 103:Command 71: ( 1084:printf 1009:csplit 751:chattr 689:Manual 672:Manual 655:Manual 638:Manual 621:Manual 415:pmount 384:pmount 256:mount 226:umount 211:umount 205:umount 199:umount 1452:mount 1442:CDemu 1419:Mount 1308:sleep 1262:strip 1242:ctags 1177:unset 1157:alias 1139:xargs 1119:troff 1079:patch 1074:paste 1049:iconv 978:write 968:uname 871:umask 861:touch 851:split 846:rmdir 821:mkdir 806:fuser 771:cksum 766:chgrp 761:chown 756:chmod 685:Linux 668:Linux 634:Linux 538:Intel 463:setup 459:mount 447:mount 433:GConf 396:fstab 392:mount 386:is a 238:fstab 236:/etc/ 220:mount 181:mount 151:mount 146:mount 132:on a 120:is a 117:mount 20:mount 1354:List 1293:expr 1267:yacc 1252:make 1203:grep 1198:find 1182:wait 1172:test 1167:echo 1124:uniq 1109:tail 1099:sort 1089:read 1064:more 1054:join 1044:head 1039:fold 1019:diff 1004:comm 963:tput 958:talk 953:mesg 943:exit 922:time 912:nice 907:kill 866:type 801:file 725:Unix 480:mtab 455:root 420:The 223:and 217:The 178:The 130:file 98:Type 89:and 87:Unix 1447:K3b 1288:cal 1247:lex 1219:man 1094:sed 1014:cut 994:awk 973:who 938:env 856:tee 836:pwd 831:pax 776:cmp 746:cat 411:HAL 254:$ 164:DVD 110:In 1541:: 1303:od 1298:lp 1283:bc 1257:nm 1237:ar 1162:cd 1134:wc 1129:vi 1114:tr 1069:nl 1059:m4 1034:ex 1029:ed 917:ps 902:fg 892:bg 887:at 841:rm 826:mv 816:ls 811:ln 796:df 791:du 786:dd 781:cp 565:. 540:. 536:. 511:. 507:. 465:. 442:. 417:. 367:. 355:A 314:: 214:. 170:. 162:, 158:, 114:, 1389:e 1382:t 1375:v 717:e 710:t 703:v 576:. 551:. 522:. 75:) 42:,

Index


Original author(s)
Ken Thompson
Dennis Ritchie
Developer(s)
AT&T Bell Laboratories
Operating system
Unix
Unix-like
Type
Command
computing
command
operating systems
file
Unix-like
file system
mounted
SD card
USB storage
DVD
EFI shell
operating system
file system
root user
fstab
hard disk drive
options
filesystem hierarchy
symbolic link

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.