nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

How to view windows XP partitions(NTFS) in linux

This is a discussion on How to view windows XP partitions(NTFS) in linux within the Linux software forums, part of the Linux Getting Started category; hello , i ahve a system which is dual boot system . windows XP -- primary partition liinux fedora core ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 04-27-2006, 02:17 PM
Junior Member
User
 
Join Date: Apr 2006
Location: mumbai
Posts: 19
Rep Power: 0
kar_siddharth
Default How to view windows XP partitions(NTFS) in linux

hello ,

i ahve a system which is dual boot system .

windows XP -- primary partition
liinux fedora core -- extented partition

my partitions in windows are NTFS . how do i view them in fedora


thanking u

sincerely

siddharth
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-27-2006, 02:47 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

In order to access NTFS file system you need install special module i.e. driver. It can be downloaded from following url
http://www.linux-ntfs.org/content/view/128/64/

Select your Fedora Core Linux version and then download appropriate driver according to your kernel version.

To find out your kernel version use following command:
Code:
uname -r
Once downloaded driver use rpm command to install it:
Code:
 rpm -ihv kernel-ntfs*
Now to mount NTFS windows XP system partition use mount command:
Code:
mkdir -p /mnt/c
mount -t ntfs /dev/hdXY /mnt/c
OR
Code:
mount -t ntfs -o nls=utf8 /dev/hdXY /mnt
Use fdisk -l command to find out name of NTFS partion:
Code:
fdisk -l
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 04-27-2006, 02:52 PM
Junior Member
User
 
Join Date: Apr 2006
Location: mumbai
Posts: 19
Rep Power: 0
kar_siddharth
Default

thanks for the help

sincerely



siddharth
Reply With Quote
  #4 (permalink)  
Old 08-13-2007, 11:26 AM
Junior Member
User
 
Join Date: Aug 2007
My distro: Debian
Posts: 1
Rep Power: 0
ram420chand is on a distinguished road
Default Mount NTFS windows partitions on Fedora 7

Windows uses a different filesystem (NTFS) to store files. In order for Fedora to read that filesystem, you require NTFS support in your kernel. There are multiple ways now to support NTFS in Linux. The following solution uses NTFS-3G which uses "Fuse" support in more recent kernels.
NOTE: As of Fedora 7, devices previously referenced by /dev/hda and /dev/hdb will be referenced by /dev/sda and /dev/sdb (respectively).



To setup NTFS access you must (1) install NTFS support, (2) check how many partitions you have, (3) create mount points, (4) mount partitions, and (5) update fstab to mount at next boot.

1. Install NTFS Support
The software required for NTFS support is included in the DVD installation. If not, install using yum:
[mirandam@charon ~]$ OpenDNS yum install fuse fuse-libs ntfs-3g

Users without yum, either download or use your Fedora 7 DVD to install the following RPM's: fuse, fuse-lib and ntfs-3g.


2. Check Your Partitions
Use fdisk to list partitions. Most ATA hard drives will be /dev/sda. Drives may also show up as /dev/sdb depending on your configuration.


[mirandam@charon ~]$ sudo /sbin/fdisk -lu /dev/sda | grep NTFS

Usually the first will be a drive "letter": C drive, next D, etc. Hence /dev/sda1 is my C:\ drive used by Windows.


3. Create Mount Points
For every partition in step 2 that you wish to access, you will need a "mount point". A mount point is just a directory. Common directories are: /media/ and /mnt/. Use whichever, but be consistent.


[mirandam@charon ~]$ cd /media/ [mirandam@charon media]$ sudo mkdir c_drive d_drive e_drive

You do not have to use these names, if you prefer to create folders such as 'movies', 'documents', or 'winxp', any name will work (recommended without spaces).


4. Mount Partitions
Using the NTFS-3G we can either mount the NTFS partitions read-only or read-write. For new users, read-only is recommended.
[mirandam@charon ~]$ sudo mount /dev/sda1 /media/c_drive -t ntfs-3g -r -o umask=0222
[mirandam@charon ~]$ sudo mount /dev/sda2 /media/d_drive -t ntfs-3g -r -o umask=0222
[mirandam@charon ~]$ sudo mount /dev/sda3 /media/e_drive -t ntfs-3g -r -o umask=0222

Read/Write Access: The above is for read-only access. In order to mount read/write, you must use the -rw -o umask=0000.

Example:
[mirandam@charon ~]$ sudo mount /dev/sda1 /media/c_drive -t ntfs-3g -rw -o umask=0000

HIGHLY RECOMMENDED: Please run man mount to understand what umask= does.


5. Update /etc/fstab
Every time Fedora boots, the partitions must be mounted. To automatically mount, you must edit /etc/fstab.
Open /etc/fstab in an editor: (use nano instead of gedit if you do not have a GUI)


[mirandam@charon ~]$ sudo gedit /etc/fstab

Add these lines to the END of the file:


/dev/sda1 /media/c_drive ntfs-3g ro,defaults,umask=0222 0 0
/dev/sda2 /media/d_drive ntfs-3g ro,defaults,umask=0222 0 0
/dev/sda3 /media/e_drive ntfs-3g ro,defaults,umask=0222 0 0

Read/Write Access: The above is for read-only access. In order to mount read/write, you must use the rw,defaults,umask=0000. Example:


/dev/sda1 /media/c_drive ntfs-3g rw,defaults,umask=0000 0 0

Done!



For more help Check out



Personal Fedora 7 Installation Guide
Reply With Quote
  #5 (permalink)  
Old 10-10-2007, 04:42 PM
Junior Member
User
 
Join Date: Oct 2007
My distro: Fedora 6
Posts: 1
Rep Power: 0
dhruvv7 is on a distinguished road
Default Problem

Hi ram420chand
I am not able to install fuse fuse-libs ntfs-3g. So at very first place, i am not able to run run. following error message is encountered

[root@localhost /]# yum install fuse fuse-libs ntfs-3g
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mir...re-6&arch=i386 error was
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Error: Cannot find a valid baseurl for repo: core

Can you guide me what to de?
i am using fedora. output of uname -a is
[root@localhost /]# uname -a
Linux localhost.localdomain 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32 EDT 2006 i686 i686 i386 GNU/Linux

Thanks
Dhruv
Reply With Quote
  #6 (permalink)  
Old 04-24-2008, 06:22 PM
Junior Member
User
 
Join Date: Apr 2008
My distro: Fedora
Posts: 20
Rep Power: 0
RamPD is on a distinguished road
Unhappy Same error message

I have recieve same error message withn this command
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How To View This Cbt And What To Do linuxqu Linux software 2 03-24-2008 08:09 PM
what's the Diff. in Windows 2003 and Windows 2000 server kasimani Windows Xp/2000/2003 server administration 2 08-14-2007 12:05 PM
View log files under Linux sweta Getting started tutorials 0 05-30-2007 01:31 AM
Can't export the windows ntfs partition using nfs linuxnightowl84 Networking, Firewalls and Security 4 04-29-2007 05:40 PM
Howto: Linux recover lost partitions? chimu Linux software 2 07-11-2006 01:49 AM


All times are GMT +5.5. The time now is 05:42 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36