Difference between revisions of "Mount"
From MohidWiki
(→Mounting a windows partition) |
|||
Line 20: | Line 20: | ||
==Mounting a windows partition== | ==Mounting a windows partition== | ||
− | > mount - | + | Mounting the [http://delta.ist.utl.pt ''\\delta.ist.utl.pt\software''] network drive |
+ | > mount -t cifs //delta.ist.utl.pt/software /mnt/delta | ||
+ | |||
+ | Mounting ''\\guillaume\temp'' network drive | ||
+ | > mount -t cifs -o username=guillaume,password=XXXX,workspace=MARETEC //guillaume.maretec.ist.utl.pt/temp /mnt/win | ||
==Example== | ==Example== |
Revision as of 12:15, 5 March 2009
Mount allows to setup USB drives, floppy drives, zip drives etc ...
Permanent mount
To permanently mount partitions one should edit the /etc/fstab file as root. Here's a sample /etc/fstab file:
# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/hda6 / ext3 defaults,errors=remount-ro 0 1 /dev/hda7 none swap sw 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 # my NTFS Windows XP partition /dev/hda1 /mnt/WinXP ntfs ro,defaults 0 0 # my files partition shared by windows and linux /dev/hda5 /mnt/shared vfat umask=000 0 0
Mounting a windows partition
Mounting the \\delta.ist.utl.pt\software network drive
> mount -t cifs //delta.ist.utl.pt/software /mnt/delta
Mounting \\guillaume\temp network drive
> mount -t cifs -o username=guillaume,password=XXXX,workspace=MARETEC //guillaume.maretec.ist.utl.pt/temp /mnt/win
Example
> mount -t vfat /dev/sda5 /mnt/fathdd
mounts a fat32 partition.
> mount -a
calls fstab without the need for rebooting the system.