{"id":391,"date":"2009-06-16T10:30:19","date_gmt":"2009-06-16T03:30:19","guid":{"rendered":"http:\/\/adityo.blog.binusian.org\/?p=391"},"modified":"2009-07-15T19:05:43","modified_gmt":"2009-07-15T12:05:43","slug":"how-to-mount-windows-directory-to-centos-53","status":"publish","type":"post","link":"https:\/\/adityo.blog.binusian.org\/?p=391","title":{"rendered":"How to mount windows directory to Centos 5.3"},"content":{"rendered":"<p>For CentOS that also using windows as their dual boot OS must have diffilcuties to see or mount windows on their CentOS directory, at least it happen with one of my friend and here is the solution.<\/p>\n<p><strong>First you need to check the windows partition first<\/strong><br \/>\n<code><br \/>\n# fdisk -l<br \/>\nDisk \/dev\/hda: 40.0 GB, 40020664320 bytes<br \/>\n255 heads, 63 sectors\/track, 4865 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<br \/>\nDevice Boot      Start         End      Blocks   Id  System<br \/>\n\/dev\/hda1   *           1        3187    25599546    7  HPFS\/NTFS<br \/>\n\/dev\/hda2            3188        4865    13478535   83  Linux<br \/>\nDisk \/dev\/hdb: 40.0 GB, 40020664320 bytes<br \/>\n255 heads, 63 sectors\/track, 4865 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<br \/>\n Device Boot      Start         End      Blocks   Id  System<br \/>\n\/dev\/hdb1   *           1        4865    39078081    7  HPFS\/NTFS<br \/>\n<\/code><br \/>\nas you can see windows partition located on \/dev\/hda1 ( program files , windows etc) and \/dev\/hdb1 (data)<\/p>\n<p><strong>Now installed the required packages<\/strong><\/p>\n<p><code>yum install fuse fuse-ntfs-3g dkms dkms-fuse <\/code><br \/>\n(dkms and dkms-fuse install the fuse kernel module)<\/p>\n<p>If the rpmforge repo is disabled by default,<br \/>\n<code># yum --enablerepo=rpmforge install fuse fuse-ntfs-3g dkms dkms-fuse <\/code><\/p>\n<p><strong>Mounting windows NTFS filesystem<\/strong><\/p>\n<p>First, create a mount point.<\/p>\n<p><code>mkdir \/mounting\/win <\/code><\/p>\n<p>Next, edit \/etc\/fstab as follows. To mount read-only:<\/p>\n<p><code>\/dev\/hda1        \/mounting\/win   ntfs-3g  ro,umask=0222,defaults 0 0<br \/>\n\/dev\/hdb1        \/mounting\/win1   ntfs-3g  ro,umask=0222,defaults 0 0 <\/code><\/p>\n<p>To mount read-write:<\/p>\n<p><code>\/dev\/hda1        \/mounting\/win   ntfs-3g  rw,umask=0000,defaults 0 0<br \/>\n\/dev\/hdb1        \/mounting\/win1   ntfs-3g  rw,umask=0000,defaults 0 0<\/code><\/p>\n<p>You can now mount it by running:<\/p>\n<p><code>#mount \/mounting\/win<br \/>\n# mount \/mounting\/win1<\/code><\/p>\n<p><strong>Common Error<\/strong><br \/>\nWhen you try to mount you will see this error<\/p>\n<p> <code># mount \/mymnt\/win<br \/>\nFATAL: Module fuse not found.<br \/>\nntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root<\/code><br \/>\nand when you try to run modprove fuse you will get this error<br \/>\n<code># modprobe fuse<br \/>\nFATAL: Module fuse not found.<\/code><\/p>\n<p>Solution :<br \/>\nThe error could be cause by the kernel dependecies problem here you should do<\/p>\n<p>Lets just check which kernel packages you have installed and which kernel you are currently running.<br \/>\n<code># uname -a<br \/>\nLinux cahpct 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i686 i386 GNU\/Linux<\/code><\/p>\n<p>then use depmod (handle dependency descriptions for loadable kernel modules )<\/p>\n<p># depmod -a 2.6.18-128.el5<\/p>\n<p>Then reboot  the machine and select the 2.6.18-53.1.21.el5 kernel from the list available( if you don&#8217;t see it , it&#8217;s usually use the default 2.6.18-53.1.21.el5 kernel)<br \/>\n# reboot<\/p>\n<p>then run modprobe fuse again and mount it:<\/p>\n<p># modprobe fuse dan mount<br \/>\n# mount -t ntfs-3g \/dev\/hdb1 \/mymnt\/win1<br \/>\n# mount -t ntfs-3g \/dev\/hda1 \/mymnt\/win<\/p>\n<p>or<\/p>\n<p><code>#mount \/mounting\/win<br \/>\n# mount \/mounting\/win1<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For CentOS that also using windows as their dual boot OS must have diffilcuties to see or mount windows on their CentOS directory, at least it happen with one of my friend and here is the solution. First you need to check the windows partition first # fdisk -l Disk \/dev\/hda: 40.0 GB, 40020664320 bytes [&hellip;]<\/p>\n","protected":false},"author":386,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[487],"tags":[],"class_list":["post-391","post","type-post","status-publish","format-standard","hentry","category-centos"],"_links":{"self":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/users\/386"}],"replies":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=391"}],"version-history":[{"count":11,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/391\/revisions"}],"predecessor-version":[{"id":707,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/391\/revisions\/707"}],"wp:attachment":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}