mount

mount a filesystem

copy
125
57
mount -t ntfs-3g /dev/sda1 /mnt/myDriveTo mount a ntfs drive.

details |

copy
59
17
mount -a -t ext2 -O _netdevThe -t and -O options are cumulative in effect; that is, the command mounts all ext2 filesystems with the _netdev option, not all filesystems that are either ext2 or have the _netdev option specified.

details |

copy
45
12
mount /tmp/fdimage /mnt -t msdos -o loop=/dev/loop3,blocksize=1024This will set up the loop device /dev/loop3 to correspond to the file /tmp/fdimage, and then mount this device on /mnt.

details |

copy
40
11
mount -o remount,rw /dirAfter this call mount reads fstab (or mtab) and merges these options with options from command line ( -o ).

details |

copy
34
12
mount --bind olddir newdirSince Linux 2.4.0 it is possible to remount part of the file hierarchy somewhere else. The call is:

details |

copy
34
22
mount --rbind olddir newdirThis call attaches only (part of) a single filesystem, not possible submounts. The entire file hierarchy including submounts is attached a second place using

details |

copy
29
0
mount a cd image as a directorymount -o loop ubuntu-12.04-desktop-amd64.iso /mnt/cdmounts the iso file as a loopback device on /mnt/cd

5 years, 5 months ago gitweb 0 |

copy
27
5
mount -o remount,rw /dev/foo /dirAfter this call all old mount options are replaced and arbitrary stuff from fstab is ignored, except the loop=option which is internally generated and maintained by the mount command

details |

copy
26
18
mount --move olddir newdirSince Linux 2.5.1 it is possible to atomically move a mounted tree to another place. The call is

details |

copy
18
4
mount -a -O no_netdevmounts all file systems except those which have the option _netdev specified in the options field in the /etc/fstab file.

details |

copy
15
2
mount -a -t nomsdos,extmounts all file systems except those of type msdos and ext.

details |

copy
10
0
mount -t type device dir

source | details |

copy
7
0
mount /dev/cdrom

source | details |

copy
3
0
mount --bind

source | details |

copy
2
0
mount /cd

source | details |

copy
2
0
mount -R

source | details |

copy
2
0
mount --make-unbindable mountpoint

source | details |

copy
2
0
mount -a -O no_netdev

source | details |

copy
1
0
mount /k -o minixdf; df /k; umount /k

source | details |

copy
1
0
mount /k -o bsddf; df /k; umount /k

source | details |