Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why is my ntfs hard drive is read only?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
doro1211
Guru
Guru


Joined: 06 Jun 2004
Posts: 312

PostPosted: Sun Jun 27, 2004 11:56 am    Post subject: Why is my ntfs hard drive is read only? Reply with quote

I have enabled ntfs write support in the kernel (2.6.7). However, I cannot write to my ntfs partition, not even with root. The mount directory is chmod 777. What else could be causing this?

My /etc/fstab is as follows:

/dev/hda1 /windowsc ntfs noatime,umask=000 0 0
Back to top
View user's profile Send private message
monkey89
Guru
Guru


Joined: 08 Mar 2004
Posts: 596

PostPosted: Sun Jun 27, 2004 12:19 pm    Post subject: Reply with quote

The NTFS write support built into the kernel is the safe write support. If you read the help section for it in "make menuconfig", it says that you can only overwrite existing files with files of the same exact size. There is no creation of anything.

-Monkey
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sun Jun 27, 2004 12:25 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
Back to top
View user's profile Send private message
doro1211
Guru
Guru


Joined: 06 Jun 2004
Posts: 312

PostPosted: Sun Jun 27, 2004 12:55 pm    Post subject: Reply with quote

So is there no way to actually have full write support in ntfs?
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sun Jun 27, 2004 1:07 pm    Post subject: Reply with quote

doro1211 wrote:
So is there no way to actually have full write support in ntfs?


Ask microsoft...
Back to top
View user's profile Send private message
giuseppe
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2004
Posts: 78

PostPosted: Sun Jun 27, 2004 9:19 pm    Post subject: Reply with quote

Hi!
I don't know if this work, but you could try:

http://www.jankratochvil.net/project/captive/

Bye.
_________________
"Unter einer Menge verstehen wir jede
Zusammenfassung M Von bestimmten
wohlunterschiedenen Objekten in unserer
Anschauung oder unseres Denkens (welche
die Elemente von M genannt werden) zu einem ganzen." Georg Cantor
Back to top
View user's profile Send private message
bungernut
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 173

PostPosted: Mon Jun 28, 2004 12:10 am    Post subject: Mine was working fine Reply with quote

put gid and uid into your fstab. I got root to write no problem and gave up and reformatted it to fat to make my life easier, still i am proof that it can be done.
Back to top
View user's profile Send private message
JudgeNik
Tux's lil' helper
Tux's lil' helper


Joined: 02 Mar 2004
Posts: 86
Location: Bolzano, Italy

PostPosted: Mon Jun 28, 2004 2:08 am    Post subject: Reply with quote

Isn't there a max. size limit on the FAT filesystem though?

What FS is writable with Windows and Linux on a 200GB drive?
_________________
See the famous Niko Roberts at http://www.nikoroberts.com
Back to top
View user's profile Send private message
veezi
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 226

PostPosted: Mon Jun 28, 2004 3:35 am    Post subject: Reply with quote

Hi ..

To my knowledge only vfat is common between windows and linux, and max partition size is 4GB (I might be wrong though!).

Back to NTFS, the only reliable read/write driver for linux that I know of is at http://www.ntfs-linux.com/, but it's not free!

Another option is to use the current write mechanism in the ntfs driver. Since it can only modify a file (keeping sam size) I find it usefull to create filesystem images on NTFS partitions and mount them on loop devices under linux. Actually, this was the exact use scenario that ntfs driver developers had in mind when enabling the write option!

Cheers,
Back to top
View user's profile Send private message
idunno246
n00b
n00b


Joined: 26 Oct 2003
Posts: 64

PostPosted: Mon Jun 28, 2004 3:39 am    Post subject: Reply with quote

Quote:
To my knowledge only vfat is common between windows and linux, and max partition size is 4GB (I might be wrong though!).


i have a 150gb fat partition
Back to top
View user's profile Send private message
guitardan311
n00b
n00b


Joined: 21 Jun 2004
Posts: 37
Location: Memphis, TN

PostPosted: Mon Jun 28, 2004 4:04 am    Post subject: Reply with quote

i am trying to do this also, but only with my music folder really, so if i set up a partition for my music what filesystem should i use (that can read/write in windows and gentoo)? it will probibly be between 12Gb - 20Gb.
Back to top
View user's profile Send private message
bungernut
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 173

PostPosted: Mon Jun 28, 2004 9:14 am    Post subject: re: fat and NTFS Reply with quote

i believe both fat32 and ntfs are write in both and both are limited in the terabyte of pentabite range, should be no prob
Back to top
View user's profile Send private message
jdong
n00b
n00b


Joined: 01 Mar 2004
Posts: 41

PostPosted: Mon Jun 28, 2004 1:26 pm    Post subject: Reply with quote

It seems like mass confusion here.

THE SCOOP ON NTFS WRITE:

The NTFS drivers built into the kernel support LIMITED WRITING. You must NOT change the size of files written, nor can you create new files or mess with files <500bytes. This driver is only useful for loopback Linux distros, like TopologiLinux.


The captive NTFS drivers linked in a previous post support FULL READ WRITE to NTFS. It works by using WINE and REACTOS to emulate Windows's ntfs.sys driver. I've used it quite a bit; it's safe, EXCEPT for writing to the root folder (where it may bump the NTLDR off the primary allocation table. DONT WRITE TO THE ROOT FOLDER OF A BOOTABLE NTFS PARTITION!!!!!!!)


There's a few downsides to captive NTFS:

(1) You're using bits of Windows from Linux -- you need to provide Captive with these files. I'm no lawyer, so I won't even try to explain the legal terms of doing this. Basically, you need to have a licensed copy of WinNT, 2k , or XP to do this.

(2) You're emulating the Windows API (WINE) and cloning Windows (ReactOS). Needless to say, Captive is VERY VERY slow -- it's not for copying large files (100MB takes about 10-20minutes to transfer).

(3) The above warning about writing to the root folder. I've trashed two separate installs of XP doing it. Just innocent editing of boot.ini, and Captive bumps NTLDR off to the secondary allocation table. You get the dreaded NTLDR NOT FOUND error booting Windows, and there's NO METHOD of recovery except a reformat of the volume. This kind of bug really worries me about what else Captive could do to a drive.
Back to top
View user's profile Send private message
veezi
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 226

PostPosted: Mon Jun 28, 2004 2:27 pm    Post subject: Reply with quote

Quote:

Quote:

To my knowledge only vfat is common between windows and linux, and max partition size is 4GB (I might be wrong though!).

i have a 150gb fat partition

Ok .. I was wrong about the size. 4GB is the max limit for FAT not FAT32.

idunno246,
How did you create 150GB fat partition??!! My windows xp allows me max 4GB for FAT partitions and max 32GB for FAT32 partitions, anything higher can only be NTFS! :roll:
Are you using a special tool??

Cheers,
Back to top
View user's profile Send private message
idunno246
n00b
n00b


Joined: 26 Oct 2003
Posts: 64

PostPosted: Mon Jun 28, 2004 4:33 pm    Post subject: Reply with quote

i sized my partitions using fdisk, and then formatted in windows, cant remember how, maybe partition magic. my windows dir is still ntfs though.
Back to top
View user's profile Send private message
Wolfpack98
n00b
n00b


Joined: 11 Mar 2003
Posts: 61
Location: USA

PostPosted: Mon Jun 28, 2004 4:37 pm    Post subject: Reply with quote

vzeidat wrote:


idunno246,
How did you create 150GB fat partition??!! My windows xp allows me max 4GB for FAT partitions and max 32GB for FAT32 partitions, anything higher can only be NTFS! :roll:
Are you using a special tool??

Cheers,


Huh. weird.

FAT32 has an upper limit well past 32GB.. I think we've formatted Windows 2000/Windows XP systems here at work with 40 to 60 G Drives in them...
_________________
"no fate but what we make..."
--- John Connor, Terminator 3
Back to top
View user's profile Send private message
nightm4re
Guru
Guru


Joined: 20 Jun 2004
Posts: 519
Location: Providence, RI, USA

PostPosted: Mon Jun 28, 2004 4:42 pm    Post subject: Reply with quote

just a thought.. you could go the other way, make an ext2/3 file system, and use a program in windows to access it. I'm not sure how that works though. Here is the link:

http://uranus.it.swin.edu.au/~jn/linux/ext2ifs.htm

could be more useful than dealing with ntfs/fat... idunno though. haven't tried yet.


*EDIT*

whoops, just found out it's read only. nevermind! but I know i saw a similar project somewhere else...
_________________
Nitrogen - GtkMM based background setter/restorer, please test!
Minuslab | d.minuslab.net
Back to top
View user's profile Send private message
cwt137
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2003
Posts: 99
Location: Southern California

PostPosted: Mon Jun 28, 2004 4:55 pm    Post subject: Reply with quote

vzeidat wrote:
Quote:

Quote:

To my knowledge only vfat is common between windows and linux, and max partition size is 4GB (I might be wrong though!).

i have a 150gb fat partition

Cheers,


I think the max file size on a fat fs is 4gb without performing some tricks. I forget what the max partiton size is but it is less than 60gb because I have a 60gb drive and xp installer wouldn't let me allocate the whole drive for one fat32 partition.
Back to top
View user's profile Send private message
veezi
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 226

PostPosted: Tue Jun 29, 2004 5:53 am    Post subject: Reply with quote

Here's a comparison of FAT, FAT32, and NTFS from MS Docs:
Quote:

NTFS: Recommended minimum volume size is approximately 10 megabytes (MB). Volumes much larger than 2 terabytes (TB) are possible. Cannot be used on floppy disks. File size limited only by size of volume.

FAT: Volumes from floppy disk size up to 4 gigabytes (GB). Does not support domains. Maximum file size is 2 GB.

FAT32: Volumes from 512 MB to 2 TB. In Windows XP, you can format a FAT32 volume up to 32 GB only. Does not support domains. Maximum file size is 4 GB.


So, I guess the 32GB limitation is only when creating it through Windows XP.

The suggestion to use ext2/3 and find a driver for windows, in my opinion, isn't a good one. I've tried that and couldn't find any decent driver that's mature and easy to use.

So, I think your best bet is to go with FAT32. Anyone know a way to create one that's >32GB?? :roll:

Cheers,
Back to top
View user's profile Send private message
Maffuster
n00b
n00b


Joined: 03 Jun 2004
Posts: 38

PostPosted: Tue Jun 29, 2004 6:46 am    Post subject: Reply with quote

Get a win98 bootdisk (www.bootdisk.com)

Fdisk the drive, and set up a partition as big as you want.

then format.
Back to top
View user's profile Send private message
freelight
Apprentice
Apprentice


Joined: 12 Jun 2004
Posts: 295
Location: NYC, NY, USA

PostPosted: Tue Jun 29, 2004 11:31 am    Post subject: Reply with quote

giuseppe wrote:
Hi!
I don't know if this work, but you could try:

http://www.jankratochvil.net/project/captive/

Bye.


I can vouch for this. The captive-ntfs driver works flawlessly (since it uses Microsoft's own ntfs.sys file), and is very much free (assuming you already own a copy of Windows to get the ntfs.sys file from).
Back to top
View user's profile Send private message
jdong
n00b
n00b


Joined: 01 Mar 2004
Posts: 41

PostPosted: Tue Jun 29, 2004 2:20 pm    Post subject: Reply with quote

vzeidat wrote:

So, I think your best bet is to go with FAT32. Anyone know a way to create one that's >32GB?? :roll:

Cheers,


Come on, LINUX!!!

mkfs.vfat -F 32 /dev/hda10
Back to top
View user's profile Send private message
revertex
l33t
l33t


Joined: 23 Apr 2003
Posts: 806

PostPosted: Fri Jul 02, 2004 9:05 pm    Post subject: Reply with quote

i'm not have time enough to install captive in my box, but works perfect, at least with knoppix.
i can read write ntfs partitions with the captive drives shipped with knoppix, i've used it to clean some xp box infected by viruses an work flawlessly.
the funny thing is that xp box are unbootable, and only using linux i can repair it.
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Sat Jul 03, 2004 8:06 am    Post subject: Reply with quote

Quote:
So, I guess the 32GB limitation is only when creating it through Windows XP.


Yes, exactly. If you create a larger fat32 partition (with some other tool, PQMagic, fdisk, ...) win2k+ will use it without any problems. The reason for the limitation is that MSFT wants to force everyone to use NTFS.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
veezi
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 226

PostPosted: Sat Jul 03, 2004 12:46 pm    Post subject: Reply with quote

Quote:

Quote:

vzeidat wrote:

So, I think your best bet is to go with FAT32. Anyone know a way to create one that's >32GB??

Cheers,

Come on, LINUX!!!

mkfs.vfat -F 32 /dev/hda10

I could swear I checked if that command exists before posting that note :oops: :oops: :oops:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum