LinuxQuestions.org
Help answer threads with 0 replies.
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 04-05-2005, 09:47 PM   #1
kima
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Rep: Reputation: 0
How to see NTFS drive from LINUX


I have an Intel x86 based system that came with a 200GB Serial ATA drive with Windows XP installed. I installed a 120GB IDE drive and installed Red Hat Enterprise LINUX on it.

How can I get LINUX to see the SATA drive?

TIA
 
Old 04-05-2005, 11:33 PM   #2
apocolpse
Member
 
Registered: Oct 2004
Distribution: Fedora Core 4
Posts: 91

Rep: Reputation: 15
Maybe this link might help

http://fedoranews.org/contributors/s...fc3_note/#NTFS
 
Old 04-06-2005, 12:06 AM   #3
kima
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Okay. I followed their instructions and installed the NTFS rpm. Everything is okay until the fdisk command. It returns:

Disk /dev/sda: 1023 cylinders, 64 heads, 32 sectors/track
read: Input/output error

sfdisk: read error on /dev/sda - cannot read sector 0
/dev/sda: unrecognized partition
No partitions found


I wonder if the problem could be that the first partition on the drive is FAT32. I don't care about that partition. I only need to read the second partition which is NTFS.
 
Old 04-06-2005, 01:34 AM   #4
kima
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
If it makes any difference, I know the partition layout of the drive in question. Being the newbie that I am, I don't know what to do with the information. Is there some way to force Linux to correctly partition the drive?
 
Old 04-06-2005, 02:14 AM   #5
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
Hi,

Is your a SATA of SCSI drive? If not I think you have to do "fdisk -l /dev/hda" to have your disk information. It is important to get the information, because if your PC came with Windows preloaded it is possible that there are more than one partition in your harddisk: the brands are use to allocate some extra space for some utilites and that space is hidden from Windows.

In the second place. I read the instructions of the link and there is a step missing. If you downloaded the Kernel module, you have to run "modprobe ntfs" before you can mount the ntfs partition.

If you don't get the information with fdisk, I think that you don't want Linux to partition the harddisk, but only to recognize it. If fdisk doesn't work, you could try something like (as root):

# mkdir /mnt/windows <-- replace windows for whatever you prefer
# mount -t ntfs -o ro /dev/hda1 /mnt/windows

Notice the "-o ro" option, to ask the partition to be mounted READONLY, as to write in ntfs partitions is not safe from Linux. It could be also "/dev/hda2". You can also try "-t auto".

I also read what you tried. If your disk is SATA or SCSI and there is only one partition there, you should put "/dev/sda1" or "/dev/sda2"...

Hope this helps you. Good luck!!
 
Old 04-06-2005, 11:51 AM   #6
kima
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by enemorales
Hi,

Is your a SATA of SCSI drive? If not I think you have to do "fdisk -l /dev/hda" to have your disk information. It is important to get the information, because if your PC came with Windows preloaded it is possible that there are more than one partition in your harddisk: the brands are use to allocate some extra space for some utilites and that space is hidden from Windows.
As near as I can tell, fdisk recognizes three disks: /dev/hda, /dev/sda, and /dev/sdb. /dev/hda is broken into four Linux partition (its a 120GB IDE drive). /dev/sdb appears to be the floppy drive (connected through a USB port). That leaves the Serial ATA drive (200GB) with Windows installed to be /dev/sda.

I know that the first partition of the SATA drive is a recovery partition that uses FAT32. The second partition is Windows XP and is NTFS.

I know the geometry of the drive and the partition layout. How can I get LINUX to recognize it?

Quote:
In the second place. I read the instructions of the link and there is a step missing. If you downloaded the Kernel module, you have to run "modprobe ntfs" before you can mount the ntfs partition.
Did that.

Quote:
If you don't get the information with fdisk, I think that you don't want Linux to partition the harddisk, but only to recognize it. If fdisk doesn't work, you could try something like (as root):

# mkdir /mnt/windows <-- replace windows for whatever you prefer
# mount -t ntfs -o ro /dev/hda1 /mnt/windows

Notice the "-o ro" option, to ask the partition to be mounted READONLY, as to write in ntfs partitions is not safe from Linux. It could be also "/dev/hda2". You can also try "-t auto".

I also read what you tried. If your disk is SATA or SCSI and there is only one partition there, you should put "/dev/sda1" or "/dev/sda2"...

Hope this helps you. Good luck!!
Thank you for taking the time to help. Even though I don't know what I'm doing, I feel that I'm getting closer.
 
  


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
how to mount ntfs drive in Linux shueib Linux - Newbie 1 10-21-2005 11:08 AM
recovering an ntfs drive with linux kinasz Linux - General 4 07-08-2004 08:37 AM
How do I get Linux to detect my NTFS drive? Abdul Linux - Software 2 03-08-2004 06:57 AM
Linux on an NTFS Drive HELP!!!! johan the olive Linux - Hardware 3 02-08-2003 06:48 PM
Cannot Copy Files From Network FAT32/NTFS Drive to My Local Linux Drive michaelh Linux - Networking 3 10-29-2002 11:27 AM

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

All times are GMT -5. The time now is 11:39 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration