LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-08-2003, 06:12 AM   #1
ilengna
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Rep: Reputation: 0
NTFS file system


hai all,

i can not mount my harddisk because it uses NTFS file system? how can my linux see that harddisk? pls help...
 
Old 10-08-2003, 06:16 AM   #2
fridgehead
LQ Newbie
 
Registered: Aug 2002
Posts: 5

Rep: Reputation: 0
you can read ntfs drives with linux, but writing to them isnt really supported (as far as i remember, i use 2.4.19 and ntfs write support is marked as experimental in the config for the kernel).

you need to recompile the kernel with NTFS support to use it. thats where my experience ends with NTFS and linux, so hopefully someone else can take over from here
 
Old 10-08-2003, 06:27 AM   #3
ilengna
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Original Poster
Rep: Reputation: 0
thx man,

i'll compile my kernel first, hopefully it works...
 
Old 10-08-2003, 06:35 AM   #4
frogman
Member
 
Registered: Sep 2003
Distribution: Mandrake, Slack, Debian and PicoBSD
Posts: 181

Rep: Reputation: 31
Re: NTFS file system

^
|_ what he said, basically. What distro are you using? Some come with ntfs support already in the default kernel, with others you have to compile it in.

Basic writing to ntfs from *Nix is supported in 2.4.21, but still with a "use at own risk" caveat. There used to be a program to run after you'd written to the disk which checked / made sure you hadn't screwed it up, but I can't remember the name.

I assume (probably as root):

#mkdir /mnt/windows1
#mount /dev/hd?? /mnt/windows1
#cd /mnt/windows1
#ls
(where ?? is your ntfs disk / partition), ie hda1 etc.

doesn't work?

Last edited by frogman; 10-08-2003 at 07:41 AM.
 
Old 10-08-2003, 01:10 PM   #5
Popichulo
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
I can sucessfully mount my drive when using su and logging in as root at a prompt but once its mounted I cant view the files because it says Im not allowed to and they can only be viewed if I log in to linux fully as root at the login screen, and also when I try to add the command line to fstab it gives me errors and doesnt mount it at bootup.
 
Old 10-08-2003, 02:07 PM   #6
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Popichulo:

What line are you inserting in fstab?

Are you trying to mount NTFS or FAT32?

Can you post the contents of :

cat /etc/fstab
 
Old 10-08-2003, 02:17 PM   #7
Popichulo
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
right now I am at work so I cant tell you exactley but I believe it was
/dev/hda5 /mnt/windows2 -t ntfs -r -o umask=0222

Im pretty sure thats what it was.
And whats with me not being able to view the files when logged in as myself and only as root.
 
Old 10-08-2003, 02:19 PM   #8
Popichulo
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
this was another one I tried
/dev/hda1 /mnt/windows ntfs auto,ro,umask=0222 0 0
but when the system reboots it says that there are errors on those lines in the fstab
 
Old 10-08-2003, 05:32 PM   #9
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
As root or su type
mount -t ntfs -o ro,umask=0222 /dev/hda1 /mnt/windows

You need to first make a directory in /mnt called windows if it is not there.

If you want to make sure your kernel supports the filesystem, type cat /proc/filesystems

If you want it automaticall be mounted every time you start up or reboot your computer. Add a line in fstab that says
/dev/hda1 /mnt/windows ntfs ro,umask=0222 0 0
 
  


Reply



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 read .chm file in fedora, can't mount ntfs file system ishti_du Linux - Newbie 12 03-06-2007 03:27 AM
The FAT/NTFS file system oookiezooo General 1 12-02-2005 01:54 PM
ntfs file system nobu Linux - General 2 04-08-2004 12:04 AM
NTFS file system support zokter Linux - General 7 10-20-2003 11:17 AM
mount the ntfs file system jdevanand Linux - General 3 01-22-2002 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:35 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