View previous topic :: View next topic |
Author |
Message |
doro1211 Guru
Joined: 06 Jun 2004 Posts: 312
|
Posted: Sun Jun 27, 2004 11:56 am Post subject: Why is my ntfs hard drive is read only? |
|
|
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 |
|
|
monkey89 Guru
Joined: 08 Mar 2004 Posts: 596
|
Posted: Sun Jun 27, 2004 12:19 pm Post subject: |
|
|
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 |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Sun Jun 27, 2004 12:25 pm Post subject: |
|
|
Moved from Installing Gentoo. |
|
Back to top |
|
|
doro1211 Guru
Joined: 06 Jun 2004 Posts: 312
|
Posted: Sun Jun 27, 2004 12:55 pm Post subject: |
|
|
So is there no way to actually have full write support in ntfs? |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Sun Jun 27, 2004 1:07 pm Post subject: |
|
|
doro1211 wrote: | So is there no way to actually have full write support in ntfs? |
Ask microsoft... |
|
Back to top |
|
|
giuseppe Tux's lil' helper
Joined: 25 Apr 2004 Posts: 78
|
Posted: Sun Jun 27, 2004 9:19 pm Post subject: |
|
|
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 |
|
|
bungernut Apprentice
Joined: 24 Jan 2004 Posts: 173
|
Posted: Mon Jun 28, 2004 12:10 am Post subject: Mine was working fine |
|
|
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 |
|
|
JudgeNik Tux's lil' helper
Joined: 02 Mar 2004 Posts: 86 Location: Bolzano, Italy
|
Posted: Mon Jun 28, 2004 2:08 am Post subject: |
|
|
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 |
|
|
veezi Apprentice
Joined: 10 Nov 2003 Posts: 226
|
Posted: Mon Jun 28, 2004 3:35 am Post subject: |
|
|
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 |
|
|
idunno246 n00b
Joined: 26 Oct 2003 Posts: 64
|
Posted: Mon Jun 28, 2004 3:39 am Post subject: |
|
|
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 |
|
|
guitardan311 n00b
Joined: 21 Jun 2004 Posts: 37 Location: Memphis, TN
|
Posted: Mon Jun 28, 2004 4:04 am Post subject: |
|
|
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 |
|
|
bungernut Apprentice
Joined: 24 Jan 2004 Posts: 173
|
Posted: Mon Jun 28, 2004 9:14 am Post subject: re: fat and NTFS |
|
|
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 |
|
|
jdong n00b
Joined: 01 Mar 2004 Posts: 41
|
Posted: Mon Jun 28, 2004 1:26 pm Post subject: |
|
|
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 |
|
|
veezi Apprentice
Joined: 10 Nov 2003 Posts: 226
|
Posted: Mon Jun 28, 2004 2:27 pm Post subject: |
|
|
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!
Are you using a special tool??
Cheers, |
|
Back to top |
|
|
idunno246 n00b
Joined: 26 Oct 2003 Posts: 64
|
Posted: Mon Jun 28, 2004 4:33 pm Post subject: |
|
|
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 |
|
|
Wolfpack98 n00b
Joined: 11 Mar 2003 Posts: 61 Location: USA
|
Posted: Mon Jun 28, 2004 4:37 pm Post subject: |
|
|
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!
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 |
|
|
nightm4re Guru
Joined: 20 Jun 2004 Posts: 519 Location: Providence, RI, USA
|
Posted: Mon Jun 28, 2004 4:42 pm Post subject: |
|
|
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 |
|
|
cwt137 Tux's lil' helper
Joined: 25 Jul 2003 Posts: 99 Location: Southern California
|
Posted: Mon Jun 28, 2004 4:55 pm Post subject: |
|
|
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 |
|
|
veezi Apprentice
Joined: 10 Nov 2003 Posts: 226
|
Posted: Tue Jun 29, 2004 5:53 am Post subject: |
|
|
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??
Cheers, |
|
Back to top |
|
|
Maffuster n00b
Joined: 03 Jun 2004 Posts: 38
|
Posted: Tue Jun 29, 2004 6:46 am Post subject: |
|
|
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 |
|
|
freelight Apprentice
Joined: 12 Jun 2004 Posts: 295 Location: NYC, NY, USA
|
Posted: Tue Jun 29, 2004 11:31 am Post subject: |
|
|
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 |
|
|
jdong n00b
Joined: 01 Mar 2004 Posts: 41
|
Posted: Tue Jun 29, 2004 2:20 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
revertex l33t
Joined: 23 Apr 2003 Posts: 806
|
Posted: Fri Jul 02, 2004 9:05 pm Post subject: |
|
|
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 |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Sat Jul 03, 2004 8:06 am Post subject: |
|
|
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 |
|
|
veezi Apprentice
Joined: 10 Nov 2003 Posts: 226
|
Posted: Sat Jul 03, 2004 12:46 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
|