inuxlinuxlinuxUNIXLinuxWindowslinux(mount)U WindowsUNIX NFS
(mount)
(mount)mount
mount [-t vfstype] [-o options] device dir
1.-t vfstype mount
iso9660
DOS fat16msdos
Windows 9x fat32vfat
Windows NT ntfsntfs
Mount Windowssmbfs
UNIX(LINUX) nfs
2.-o options
loop
ro
rw
iocharset
3.device (mount)
4.dir(mount point)
Windows;;CPUlinuxWindows
1
#cp /dev/cdrom /home/sunky/mydisk.iso
#dd if=/dev/cdrom of=/home/sunky/mydisk.iso
/home/sunky/mydisk.iso
2
#mkisofs -r -J -V mydisk -o /home/sunky/mydisk.iso /home/sunky/ mydir
/home/sunky/mydir/home/sunky/mydisk.isomydisk
3(mount)
#mkdir /mnt/vcdrom
(mount point)
#mount -o loop -t iso9660 /home/sunky/mydisk.iso /mnt/vcdrom
/mnt/vcdrommydisk.iso
linuxUSBSCSIfdisk Cl more /proc/partitions
[root at pldyrouter /]# fdisk -l
Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 4 32098+ de Dell Utility
/dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
/dev/sda3 2555 7904 42973875 83 Linux
/dev/sda4 7905 8924 8193150 f Win95 Ext'd (LBA)
/dev/sda5 7905 8924 8193118+ 82 Linux swap
SCSI/dev/sda/dev/sda1 -- /dev/sda4, /dev/sda5/dev/sda4fdisk Cl more /proc/partitions
[root at pldyrouter /]# fdisk -l
Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 4 32098+ de Dell Utility
/dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
/dev/sda3 2555 7904 42973875 83 Linux
/dev/sda4 7905 8924 8193150 f Win95 Ext'd (LBA)
/dev/sda5 7905 8924 8193118+ 82 Linux swap
Disk /dev/sdc: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 510 4096543+ 7 HPFS/NTFS
/dev/sdc2 511 4864 34973505 f Win95 Ext'd (LBA)
/dev/sdc5 511 4864 34973473+ b Win95 FAT32
SCSI/dev/sdc/dev/sdc1?/dev/sdc2,/dev/sdc5/dev/sdc2/dev/sdc1/dev/sdc5
#mkdir -p /mnt/usbhd1
#mkdir -p /mnt/usbhd2
(mount point)
#mount -t ntfs /dev/sdc1 /mnt/usbhd1
#mount -t vfat /dev/sdc5 /mnt/usbhd2
ntfs-t ntfs fat32-t vfat
#mount -t ntfs -o iocharset=cp936 /dev/sdc1 /mnt/usbhd1
#mount -t vfat -o iocharset=cp936 /dev/sdc5 /mnt/usbhd2
linuxfdiskmkfslinuxext2ext3linux
#mount /dev/sdc1 /mnt/usbhd1
U
USBlinuxUSCSIUfdisk Cl more /proc/partitions
[root at pldyrouter root]# fdisk -l
Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 4 32098+ de Dell Utility
/dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
/dev/sda3 2555 7904 42973875 83 Linux
/dev/sda4 7905 8924 8193150 f Win95 Ext'd (LBA)
/dev/sda5 7905 8924 8193118+ 82 Linux swap
Ufdisk Cl more /proc/partitions
[root at pldyrouter root]# fdisk -l
Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 4 32098+ de Dell Utility
/dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
/dev/sda3 2555 7904 42973875 83 Linux
/dev/sda4 7905 8924 8193150 f Win95 Ext'd (LBA)
/dev/sda5 7905 8924 8193118+ 82 Linux swap
Disk /dev/sdd: 131 MB, 131072000 bytes
9 heads, 32 sectors/track, 888 cylinders
Units = cylinders of 288 * 512 = 147456 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 * 1 889 127983+ b Win95 FAT32
Partition 1 has different physical/logical endings:
phys=(1000, 8, 32) logical=(888, 7, 31)
SCSI/dev/sdd/dev/sdd1,/dev/sdd1U
#mkdir -p /mnt/usb
(mount point)
#mount -t vfat /dev/sdd1 /mnt/usb
/mnt/usbU,
#mount -t vfat -o iocharset=cp936 /dev/sdd1 /mnt/usb
Windows
WindowsSMB/CIFSlinux(mount)windowssambalinuxsambalinuxsambasamba
windowslinux(mount)
# mkdir Cp /mnt/samba
(mount point)
# mount -t smbfs -o username=administrator,password=pldy123 //10.140.133.23/c$ /mnt/samba
administrator pldy123 ip10.140.133.23 windowsc$
linux/mnt/sambawindowsredhat as server 3redflag server 4.1suse server 9windows NT 4.0windows 2000windows xpwindows 2003
UNIXNFS
windowsUNIX(Linux)NFS()SUN Solaris2.8REDHAT as server 3 linuxmount nfs
linux(mount)NFSNFS
1SolarisNFS
(1) /etc/dfs/dfstab,
share -F nfs -o rw /export/home/sunky
(2)nfs
# /etc/init.d/nfs.server start
(3)NFS
# share /export/home/sunky1
# share /export/home/sunky2
/export/home/sunky/export/home/sunky1
2linuxNFS
(1) /etc/exports,
/export/home/sunky 10.140.133.23(rw)
/export/home/sunky1 *(rw)
/export/home/sunky2 linux-client(rw)
/export/home/sunkysunky1sunky210.140.133.23*linux- clientlinuxIPlinux-client/etc/hostslinux-clientip
10.140.133.23 linux-client
(2)NFS
/etc/rc.d/init.d/portmap start (REDHATPORTMAP)
/etc/rc.d/init.d/nfs start NFS
/etc/rc.d/init.d/nfs stop NFS
/etc/exportNFSNFSexportfs -rv
3linux(mount)linuxUNIXNFS
# mkdir Cp /mnt/nfs
(mount point)
#mount -t nfs -o rw 10.140.133.9:/export/home/sunky /mnt/nfs
10.140.133.9NFSIP/etc/hostsip/export/home/sunky
linux/mnt/nfslinuxUNIXNFSredhat as server 3redflag server4.1suse server 9Solaris 7Solaris 8Solaris 9 for x86&sparc
---------------
原文请点:
http://hi.baidu.com/lostaini99/blog/item/a114d31f327c830c314e1571.html
阅读(1596) | 评论(0) | 转发(0) |