kanotix.com

General Support - Writing to ntfs

giaur - 20.03.2007, 21:30 Uhr
Titel: Writing to ntfs
Hello,

How to enable ntfs writing? I have Ntfs-3g and libntfs9 installed, but I can't write to ntfs partition, even if I set rw mode in my fstab file.

While botting system, always this messages appears:

Zitat:
NTFS-fs warning (device hda1): load_system_files(): Unsupported volume flags 0x4000 encountered.
NTFS-fs warning (device hda1): load_system_files(): Volume has unsupported flags set. Will not be able to remount read-write. Run chkdsk and mount in Windows.


... and writing to ntfs is disabled. What can I do?
Kano - 20.03.2007, 21:35 Uhr
Titel: RE: Writing to ntfs
I hope you can read: run chkdsk first!
Crest - 20.03.2007, 22:53 Uhr
Titel: RE: Writing to ntfs
Be sure to shutdown Windows the correct way. If you had a crash (bsod) while running Windows then you must first reboot. This forces chkdsk to run and solve possible problems with the ntfs partition. r/w access to ntfs partitions under Linux is only possible when the clean flag for the partition is found (set by Windows when shutting down).
giaur - 21.03.2007, 06:31 Uhr
Titel:
Nope... Real problem is, that Windows is closed correctly, but this message still appears... chkdsk doesn't report any errors, so I assume that my ntfs partitions are clear.

I have 3 NTFS partitions on 2 hard discs, but writing doesn't work at all and messages about unsuppoerted flags always appears.

Note, that writing to the same partitions from Knoppix live CD works fine, but I don't want to install knoppix now, I want to enable this feature in Kanotix I have installed.
Crest - 21.03.2007, 15:07 Uhr
Titel:
Well, I have never used/tried the r/w feature of the driver since I don't really need it. Maybe it makes also a difference if you are using Kernel 2.6.18 or Kano's test Kernel 2.6.20. In fact I have never played with any ntfs-3g related settings.
Kano - 21.03.2007, 17:33 Uhr
Titel:
With the 2.6.20 kernel you get ntfs-3g updates to 1.3x.
giaur - 21.03.2007, 18:36 Uhr
Titel:
Hmm newest (experimental) ntfs-3g version available now is 1:0.0.0+20070207 and I have installed 1:0.0.0+20061031-9.

Should I install experimental version ? I don't want to recompile my kernel.
Kano - 21.03.2007, 20:18 Uhr
Titel:
My kernel update packs haven even newer code.

http://kanotix.com/files/kernel/kernel- ... ide.tar.gz

Currently: 1.320 RC.
giaur - 23.03.2007, 20:39 Uhr
Titel:
No changes. First, I installed ntfs-3g and libntfs-3g from updates directory - but this didn't help.
and then I decided to run install.sh and update kernel, but it doesn't work, error messages:

Code:
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  initramfs-tools: Depends: klibc-utils (>= 1.4.19-2) but it is not going to be installed
                   Depends: busybox (>= 1:1.01-3) but it is not going to be installed or
                            busybox-cvs-static (>= 20040623-1) but it is not installable
  libntfs-3g-dev: Depends: libntfs-3g0 (= 1:0.0.0+20061031-9) but 1:1.320~rc-0 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Error: update-initramfs not found!


But I dont think, that kernel update to 2.6.20 is necessary - Knoppix has 2.6.19 and writing to ntfs works great.

Any ideas?
Kano - 23.03.2007, 22:44 Uhr
Titel:
You think too much, for best use of ntfs-3g you need the fuse kernel module from 2.6.20!
giaur - 24.03.2007, 21:41 Uhr
Titel:
Ok, I 've installed your patches, but still writing to ntfs is unavailable. I changed "ro" to "rw" in /etc/fstab.

And another question: how to enable verbose mode now? Pressing Esc causes stop animation only, but verbose mode doesn't work (bug?)

I don't need splash screen, I prefer verbose mode

[edit]
Something is really wrong, I can't switch to text mode to reinstall nVidia drivers!

init 3 causes black screen and system not response, console login in boot menu - colored screen. It seems that text mode doesn't work at all, but X works fine...
Kano - 24.03.2007, 22:39 Uhr
Titel:
You need "ntfs-3g defaults" instead of "nfts <some options>" .
giaur - 24.03.2007, 23:07 Uhr
Titel:
Yes, now it works as should, but if ntfs partition isn't clean, I can't acces it in linux at all, how to change this? I mean if I can read only access in this case.

And, what about my another questions?
Kano - 24.03.2007, 23:50 Uhr
Titel:
For ntfs

a) use force instead of default
b) use chkdsk within win

For nvidia:

Simply within X:

su
update-scripts-kanotix.sh
DISPLAY= nohup install-nvidia-debian.sh
giaur - 25.03.2007, 20:29 Uhr
Titel:
Nvidia works now, but something is really wrong - I can't run system without X.

Both console login option in login menu and init 3 in console doesn't work - colored or black screen is displayed and system is halted.

Any sugeestions?
jackiebrown - 25.03.2007, 21:11 Uhr
Titel:
I used to have that problem with spashy. Try consol 2
giaur - 26.03.2007, 06:30 Uhr
Titel:
Zitat:
Try consol 2


What do you mean?

Another problem occurs after kernel upgrading. I can't turn off my computer - it's always restarts, even if I use "Turn off computer" from KDE menu, and I can't see what's wrong because verbose mode doesn't work.
I'm going to check logs and post it here, but can you tell me if anyone has similar problem after update?

[edit]
One more thing about NTFS - it should be easy question. After ntfs-3g and kernel update, I can't access files and directiories containing non-ascii (national) characters - for example names with ą, ę, ć, ś, ź are invisible. How to fix this?

My /etc/fstab:

Zitat:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hdc1
UUID=12e3ace6-647d-45a1-82fd-8e76e76bdf39 / ext3 defaults,errors=remount-ro 0 1
# /dev/hda1
/dev/disk/by-uuid/60B80C31B80C086C /media/hda1 ntfs-3g defaults,umask=000,nls=utf8 0 0
# /dev/hda5
/dev/disk/by-uuid/38B4EA33B4E9F2F4 /media/hda5 ntfs-3g defaults,umask=000,nls=utf8 0 0
# /dev/hda6
UUID=d56300f3-f894-4d25-9dad-4e07df7ee910 /media/hda6 ext3 defaults 0 0
# /dev/hdb1
/dev/disk/by-uuid/C090244B90244A6C /media/hdb1 ntfs-3g defaults,umask=000,nls=utf8 0 0
# /dev/hda7
UUID=6af4910a-ba16-4a9d-addd-ccd0f1639c43 none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

Crest - 27.03.2007, 06:39 Uhr
Titel:
Just for the records: I have changed to ntfs-3g now and enabled write access. I have encountered no errors when copying to and deleting a file on a ntfs (Win2000) partition.

My ntfs partitions reads like this in fstab (one of two ntfs partitions):
# /dev/sdb5
/dev/disk/by-uuid/FA0804120803CD17 /media/hdb5 ntfs-3g rw,umask=000 0 0
giaur - 27.03.2007, 12:13 Uhr
Titel:
Yes, I have no errors too. But, as I wrote - I have no access to directories and files with no ascii national characters in names.

What's the reason of this? No NLS support in kernel? What can I do?
Kano - 27.03.2007, 13:44 Uhr
Titel:
nls is wrong option, i told you to remove all. That works for me, if not use something like

locale=de_DE.utf8

where this should be the same as the output of

locale -a
giaur - 27.03.2007, 19:18 Uhr
Titel:
Both doesn't work - still can't see folders/files with national letters.

locale - a output:

Zitat:

C
da_DK
da_DK.iso88591
da_DK.iso885915
da_DK.utf8
danish
dansk
de_AT
de_AT@euro
de_AT.iso88591
de_AT.iso885915@euro
de_AT.utf8
de_AT.utf8@euro
de_BE
de_BE@euro
de_BE.iso88591
de_BE.iso885915@euro
de_BE.utf8
de_BE.utf8@euro
de_CH
de_CH.iso88591
de_CH.utf8
de_DE
de_DE@euro
de_DE.iso88591
de_DE.iso885915@euro
de_DE.utf8
de_DE.utf8@euro
de_LU
de_LU@euro
de_LU.iso88591
de_LU.iso885915@euro
de_LU.utf8
de_LU.utf8@euro
deutsch
dutch
el_GR
el_GR.iso88597
el_GR.utf8
en_AU
en_AU.iso88591
en_AU.utf8
en_BW
en_BW.iso88591
en_BW.utf8
en_CA
en_CA.iso88591
en_CA.utf8
en_DK
en_DK.iso88591
en_DK.utf8
en_GB
en_GB.iso88591
en_GB.iso885915
en_GB.utf8
en_HK
en_HK.iso88591
en_HK.utf8
en_IE
en_IE@euro
en_IE.iso88591
en_IE.iso885915@euro
en_IE.utf8
en_IE.utf8@euro
en_IN
en_IN.utf8
en_NZ
en_NZ.iso88591
en_NZ.utf8
en_PH
en_PH.iso88591
en_PH.utf8
en_SG
en_SG.iso88591
en_SG.utf8
en_US
en_US.iso88591
en_US.iso885915
en_US.utf8
en_ZA
en_ZA.iso88591
en_ZA.utf8
en_ZW
en_ZW.iso88591
en_ZW.utf8
fran�is
fr_BE
fr_BE@euro
fr_BE.iso88591
fr_BE.iso885915@euro
fr_BE.utf8
fr_BE.utf8@euro
fr_CA
fr_CA.iso88591
fr_CA.utf8
fr_CH
fr_CH.iso88591
fr_CH.utf8
french
fr_FR
fr_FR@euro
fr_FR.iso88591
fr_FR.iso885915@euro
fr_FR.utf8
fr_FR.utf8@euro
fr_LU
fr_LU@euro
fr_LU.iso88591
fr_LU.iso885915@euro
fr_LU.utf8
fr_LU.utf8@euro
german
greek
italian
it_CH
it_CH.iso88591
it_CH.utf8
it_IT
it_IT@euro
it_IT.iso88591
it_IT.iso885915@euro
it_IT.utf8
it_IT.utf8@euro
nl_BE
nl_BE@euro
nl_BE.iso88591
nl_BE.iso885915@euro
nl_BE.utf8
nl_BE.utf8@euro
nl_NL
nl_NL@euro
nl_NL.iso88591
nl_NL.iso885915@euro
nl_NL.utf8
nl_NL.utf8@euro
pl_PL
pl_PL.iso88592
pl_PL.utf8
polish
POSIX
sk_SK
sk_SK.iso88592
sk_SK.utf8
slovak


I want polish nls, so I tried locale=pl_PL.utf8 but desn't work. Without nls doesn't work too. What else can I try?
Kano - 27.03.2007, 19:29 Uhr
Titel:
Show me your fstab and output of mount. Also echo $LANG .
giaur - 27.03.2007, 19:54 Uhr
Titel:
fstab entry for ntfs:
Zitat:
/dev/disk/by-uuid/60B80C31B80C086C /media/hda1 ntfs-3g rw,umask=000,nls=pl_PL.utf8 0 0


$LANG : en_US.UTF-8, this can't be? I don't care about locale, polish version of KDE is enough. And I had all folders visible before updating system

Mount output: How to check this? I can do nothing about mount/unmount partitions - already mounted and when try unmount, unmounting message like: "Can't unmount, not mounted by HAL"
Kano - 27.03.2007, 20:18 Uhr
Titel:
Told you to use something different! Can't you read?

/dev/disk/by-uuid/60B80C31B80C086C /media/hda1 ntfs-3g defaults 0 0

OR

/dev/disk/by-uuid/60B80C31B80C086C /media/hda1 ntfs-3g locale=en_US.utf8 0 0
giaur - 27.03.2007, 20:47 Uhr
Titel:
Second command works fine.

So, now I'm waiting for responses to other problems I posted... If you have any ideas or tips, you are welcome (or maybe I should create another thread for this)
giaur - 02.04.2007, 21:43 Uhr
Titel:
Another thing about ntfs writing....

Now I'm sure, that enabling it without any restrictions is very bad idea ... (my Windows is dead Böse , because of viruses and other not very nice stuff from net). I have to format all windows partitions and I dont want this situation again after this.

So I want to set rw access for root user only, and read only access for other users. How can I do this?
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007