LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2008, 01:26 PM   #1
IanH147
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Rep: Reputation: 0
Accessing windows xp partition through Linux


Please forgive my ignorance but I am very new to Linux (apart from some basic usage at work where our software mainly runs on Linux). I have a dual boot system on my work laptop with Windows XP and Red Hat Linux but Windows is not booting correctly and I need to access some work files. I understand that it is possible to view/access Windows files through Linux. I have used the Hardware Browser to identify the Windows partition but it states that it is of 'No filesystem'. Is this because it is of NTFS rather than FAT type? If so, is anyone able to point me in the direction of some basic guides to allowing my system to see NTFS, or able to offer me some simple steps to go through? I have seen comments about updating my kernel but this may be a little beyond my current ability.

Many thanks in advance for your help.

Ian
 
Old 12-26-2008, 01:33 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
open your file manager and go to /mnt/your hard drive. things you need to post. Linux Distro. and what desk top kde gnome etc. then we can begin. the location is. what ever partion you have windows on let me guess /mnt/sda1 your in /home/your in your place kde on the desk top system media storage your hard drive. gnome open the nautilus file manager on the left is the hard drives pic yours go there.

Last edited by Drakeo; 12-26-2008 at 01:34 PM.
 
Old 12-26-2008, 01:36 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Did you try to boot from a linux cd (knoppix..)
I have good experiences with puppy, it will show and let you access all drives connected to the computer,
 
Old 12-26-2008, 01:46 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Look at the Windows partition with "sudo /sbin/fdisk -l". Do you see it or has the partition table itself been damaged?
Suppose that your Windows partition is /dev/sda1. Then you could check and see if it is recognized with the `file' program.
Code:
sudo file -s /dev/sda1
To be able to read from an NTFS filesystem, the `ntfs' kernel module needs to be loaded. This could be the reason that it didn't detect the filesystem.
Code:
sudo /sbin/modprobe ntfs
An alternative is to use the `ntfs-3g' filesystem. For this you need the `fuse' kernel module loaded and install the `ntfs-3g' package if it isn't already.
Here is an example:
Code:
# make sure the `ntfs' module is loaded
lsmod | grep ntfs

# if it isn't load the `ntfs' kernel module
sudo /sbin/modprobe ntfs

# create a place to mount the NTFS filesystem
sudo mkdir /mnt/XP

# mount the NTFS partition at /mnt/XP
sudo mount -t ntfs /dev/sda1 /mnt/XP -o ro,uid=<yourusername>,fmask=0117,dmask=0007,locale=utf8
If you use "mount -t ntfs-3g ..." instead, you will have both read and write access. It is possible that the filesystem is corrupt and won't mount. It is also possible that the partition table entry for it is damaged, but if Linux boots OK, then I doubt that this would be the case.

---

You mentioned that you use Red Hat Linux. If this is a very old RH distro or early Fedora Core distro, it may not have NTFS kernel module support built into the kernel. In that case, it would be easiest to boot up live distro and use that instead.

Last edited by jschiwal; 12-26-2008 at 01:49 PM.
 
Old 12-26-2008, 02:14 PM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
hey jschiwal is red hat out of the box using sudo the fedora 9 I use runs su root.
 
Old 12-26-2008, 03:46 PM   #6
IanH147
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the replies guys

jschiwal, I followed your steps through to the modrpobe ntfs stage and this is where I ground to a hault. It appears that I do no have the ntfs module. I have kernel version 2.6.9-42.0.10.EL. Presumably I can just find it online somewhere and download it but will it auto-install or is there some installation procedure I need to go through? Presumably after that it should see my windows partition ok.

Cheers for the help

Ian
 
Old 12-26-2008, 03:56 PM   #7
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by IanH147 View Post

It appears that I do no have the ntfs module. I have kernel version 2.6.9-42.0.10.EL.
You can check whether you have the ntfs module (ntfs.ko) with this command:

find /lib -iname "*ntfs*"

The most likely location for your ntfs.ko is:

/lib/modules/2.6.9-42.0.10.EL/kernel/fs/ntfs/ntfs.ko

---------------------
Steve Stites
 
Old 12-26-2008, 04:09 PM   #8
IanH147
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks jailbait,

Quote:
Originally Posted by jailbait View Post

/lib/modules/2.6.9-42.0.10.EL/kernel/fs/
This is far as I can get. There is no /ntfs folder at this location so I guess that means it's not installed.

The find /lib -iname "*ntfs*" command did not work unfortunately, it gave an error: find: invalid predicate `-iname*ntfs*'

I guess I just need to start googling for ntfs updates ....
 
Old 12-26-2008, 07:22 PM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
Originally Posted by Drakeo View Post
hey jschiwal is red hat out of the box using sudo the fedora 9 I use runs su root.
You may need to add your username to the wheel group and uncomment the line in sudoers that lets %wheel group members use sudo.
 
Old 12-26-2008, 07:41 PM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I'm afraid that your kernel may not be built with NTFS_FS support.

Run "grep CONFIG_NTFS /boot/config-2.6.9-42.0.10*"

If it says CONFIG_NTFS_FS is not set, then your kernel was built without the NTFS kernel module.

This leaves you with 3 choices:
1) rebuild your kernel
2) install the "fuse" and "fuse-ntfs3g" packages: "sudo yum install fuse-ntfs3g.i386" or "sudo yum install fuse-ntfs3g.x86_64"
3) boot up with a live distro that has ntfs support.

Your kernel version is so old that I don't know if you can install the fuse module. That may leave option 3.
 
Old 12-26-2008, 09:04 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i would update that red hat 5 first

your kernel is 2.6.9-42.0.
my current is 2.6.27.7-53

there has been a lot of time between 2.6.9 and 2.6.27

also i think RH compiles there kernel without support for ntfs-3g .Use fuse and ntfs instead
 
Old 12-26-2008, 09:16 PM   #12
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If I were you, I would use a live distro to pull your documents off the drive before installing a newer version of Linux. You don't want to accidentally delete the Windows partition, loosing your work documents. IMHO, getting those documents backed up is job #1. Any recent live distro should work. You could but up with a live distro and plug in an external drive or a USB thumbdrive.

I looked at my old laptop, where I have installed Fedora Core 10. The kernel wasn't configure with NTFS_FS support. Recompiling the kernel is a bit of work for FC. Since my laptop only has FC on it, I don't need NTFS support. I could install the ntfs-3g and ntfstools packages if I did.

Don't let this deter you from installing a newer distro later however. There have been a number of improvements since your
old version. Also, you want to be able to patch your system with security updates.
 
Old 12-26-2008, 11:19 PM   #13
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Quote:
Originally Posted by jschiwal View Post
If I were you, I would use a live distro to pull your documents off the drive before installing a newer version of Linux. You don't want to accidentally delete the Windows partition, loosing your work documents. IMHO, getting those documents backed up is job #1. Any recent live distro should work. You could but up with a live distro and plug in an external drive or a USB thumbdrive.

I looked at my old laptop, where I have installed Fedora Core 10. The kernel wasn't configure with NTFS_FS support. Recompiling the kernel is a bit of work for FC. Since my laptop only has FC on it, I don't need NTFS support. I could install the ntfs-3g and ntfstools packages if I did.

Don't let this deter you from installing a newer distro later however. There have been a number of improvements since your
old version. Also, you want to be able to patch your system with security updates.
Good advice..

IGF
 
Old 12-26-2008, 11:29 PM   #14
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Just as a bit of an aside, that kernel is an RHEL4.4 kernel, but RHEL4.7 is the latest in that series with 2.6.9-78. RHEL4 is still supported though IIRC
 
Old 12-27-2008, 03:51 AM   #15
IanH147
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
I've updated the kernel to 2.6.9-78.0.8 and run the "grep CONFIG_NTFS /boot/config-2.6.9-78.0.8*" which stated that CONFIG_NTFS_FS is not set so I followed the suggestion for installing fuse-ntfs3g. I have also located ntfs module kernel-module-ntfs.2.6.9-78.0.8EL-2.1.20-0.rr.10.0.i686.ko asit s been mentioned elsewhere that I may need this but I'm not sure if I actually do, and if so where/how I should install it.

I appreciate all the help and advice so far, it's a whole lot more complicated than I had anticipated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing windows partition in linux... fatherg Linux - General 3 10-15-2004 02:51 PM
Accessing Linux Partition from Windows podollb Linux - Software 2 04-10-2004 06:31 PM
Accessing the linux partition through windows rolandi Linux - Newbie 3 11-26-2003 05:49 PM
accessing windows partition from linux partition dave bean Linux - Newbie 19 10-15-2003 04:39 AM
Accessing c:\ (Windows Partition) from within Linux. linuxRules Linux - General 5 11-06-2002 09:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration