mount partition

Mounting a partition means attaching it to the linux file system. To mount a linux partition:

# mount -t ext2 /dev/sda1 /opt

 

-t ext2

File system type. Other types you are likely to use are:

 

  • ext3 (journaling sile system based on ext2)

  • msdos (DOS)

  • hfs (mac)

  • iso9660 (CDROM)

  • nfs (network file system)

 

 

/dev/sda1

Device name. Other device names you are likely to use:

 

  • /dev/hdb2 (second partition in second IDE drive)

  • /dev/fd0 (floppy drive A)

  • /dev/cdrom (CDROM)

 

 

/opt

mount point. This is where you want to "see" your partition. When you type ls /opt, you can see what is in /dev/sda1. If there are already some directories and/or files under /opt, they will be invisible after this mount command.

posted @ 2013-03-14 22:45  greencolor  阅读(364)  评论(0编辑  收藏  举报