2013年7月11日 星期四

Oracle Enterprise Linux usb mount ntfs


1. 列出usb的device
[oracle@misdwp01 ~]$ sudo fdisk -l

Disk /dev/sda: 1197.8 GB, 1197759004672 bytes
255 heads, 63 sectors/track, 145619 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cdba5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64      145620  1169173504   8e  Linux LVM

Disk /dev/mapper/vg_misdwp01-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_misdwp01-lv_swap: 4160 MB, 4160749568 bytes
255 heads, 63 sectors/track, 505 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_misdwp01-lv_home: 1139.4 GB, 1139382681600 bytes
255 heads, 63 sectors/track, 138522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4199bfa3

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      121602   976762528    7  HPFS/NTFS


2.查詢/proc/filesystems,發現系統無法認得ntfs
[oracle@misdwp01 ~]$ cat /proc/filesystems
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   cgroup
nodev   cpuset
nodev   tmpfs
nodev   devtmpfs
nodev   binfmt_misc
nodev   debugfs
nodev   securityfs
nodev   sockfs
nodev   usbfs
nodev   pipefs
nodev   anon_inodefs
nodev   devpts
nodev   ramfs
nodev   hugetlbfs
        iso9660
nodev   pstore
nodev   mqueue
        ext4
nodev   rpc_pipefs
nodev   autofs
nodev   fuse
        fuseblk
nodev   fusectl

3. 去repository install (這是for enterprise linux 6的版本)

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
sudo rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

4. 安裝認證金鑰
wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
sudo rpm --import RPM-GPG-KEY.dag.txt

5. 安裝ntfs package
sudo yum install fuse fuse-ntfs-3g

6. mount usb的ntfs
sudo mount  /dev/sdb1 /media/external/

7. disable RPMForge
sudo vi /etc/yum.repos.d/rpmforge.repo
enabled=1 ==> enabled=0

沒有留言:

張貼留言