SEARCH :

Custom Search

Thursday, May 3, 2007

Mount Your Windows Partition from Linux (NTFS or FAT32)

Sometimes do you want to get your data from windows but that time you use linux? Anyone will feel lazy to reboot their computer just to get data that they need. In linux, you can mount your harddisk even it's a windows partition include fat32 and ntfs.
For fat32 filesystem, linux support it by default. But for ntfs filesystem, you must add some modules.
Step by step to mount it are:
1. List what partition do you have..
# fdisk -l
example :

/dev/hda1 * 1 1275 10241406 83 Linux
/dev/hda2 1276 1402 1020127+ 82 fat32
/dev/hda3 1403 2677 10241437+ 83 ntfs

2. Make a target mount directory
# mkdir /mnt/fat32
# mkdir /mntntfs

3. To mount your fat32 filesystem
# mount -t fat32 /dev/hda2 /mnt/fat32

3. To mount your ntfs filesystem you must install fuse and ntfs-3g first
- Search fuse and ntfs-3g installer from uncle google first..
- Install fuse
# tar -zxvf fuse.X.X.X.tar.gz
# cd fuse.x.x.x/
# ./configure && make && make install
- Install ntfs-3g
# tar -zxvf ntfs-3q.x.x.x.tar.gz
# cd ntfs-3g.x.x.x/
# ./configure && make && make install
After installed all packet, you can mount your ntfs partition now...

4. # ntfs-3g /dev/hda3 /mnt/ntfs

easy right...?he3...
after finished get your data or what ever job you do, you can umount it by:
# umount /mnt/fat32
# umount /mnt/ntfs

No comments: