Difference between revisions of "Mount"
From MohidWiki
m (1 revision) |
|||
Line 18: | Line 18: | ||
# my files partition shared by windows and linux | # my files partition shared by windows and linux | ||
/dev/hda5 /mnt/shared vfat umask=000 0 0 | /dev/hda5 /mnt/shared vfat umask=000 0 0 | ||
+ | |||
+ | ==Mounting a windows partition== | ||
+ | > mount -o cifs -o username=guillaume,password=XXXX,workspace=MARETEC //guillaume.maretec.ist.utl.pt/temp /mnt/win | ||
==Example== | ==Example== |
Revision as of 16:16, 27 January 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
> mount -o 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.