LinuxQuestions.org
Review your favorite Linux distribution.
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 10-25-2008, 06:52 AM   #1
ekkins
Member
 
Registered: Nov 2004
Posts: 31

Rep: Reputation: 15
Write access to NTFS USB drive


Hi, all.

I have been trying to mount my USB drive with NTFS file system. I can access the disk, but not able to write to it.

This is what I have modified my /etc/fstab to:
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/mapper/andromeda-root /               ext3    defaults,errors=remount-ro 0       1
/dev/hda1       /boot           ext3    defaults        0       2
/dev/mapper/andromeda-swap_1 none            swap    sw              0       0
/dev/hdb1       /var/www/disk2   ext3 defaults    0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/hdc1       /var/www/disk3   ext3 defaults    0       0
/dev/hdd1       /var/www/disk4   ext3 defaults    0       0
/dev/sda1       /var/www/portable fuse.ntfs defaults   0       0
I have also seen some posts requesting us to paste the output from dmesg | tail, so here comes:

Code:
andromeda:~# dmesg | tail
agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode
[drm] Setting GART location based on new memory map
[drm] Loading R200 Microcode
[drm] writeback test succeeded in 1 usecs
ip_tables: (C) 2000-2006 Netfilter Core Team
NTFS driver 2.1.27 [Flags: R/W MODULE].
NTFS volume version 3.1.
NTFS-fs error (device sda1): load_system_files(): $LogFile is not clean.  Mounting read-only.  Mount in Windows.
NTFS volume version 3.1.
NTFS-fs error (device sda1): load_system_files(): $LogFile is not clean.  Mounting read-only.  Mount in Windows.
Code:
andromeda:~# fdisk -l | grep '^Disk'
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/hda: 40.0 GB, 40060403712 bytes
Disk /dev/hdb: 40.0 GB, 40020664320 bytes
Disk /dev/hdc: 200.0 GB, 200049647616 bytes
Disk /dev/hdd: 122.9 GB, 122942324736 bytes
Disk /dev/dm-0: 38.1 GB, 38117834752 bytes
Disk /dev/dm-1: 1681 MB, 1681915904 bytes
Disk /dev/sda: 500.1 GB, 500107862016 bytes


Any ideas how I can make the portable disk writeable? I red on the forums that the "default" value in options in fstab should set it to rw..

All help appreciated!
 
Old 10-25-2008, 07:02 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
........."NTFS-fs error (device sda1): load_system_files(): $LogFile is not clean. Mounting read-only. Mount in Windo"

Answer is get the ntfs-utils there is a tool inside that you can use to fix this.
 
Old 10-26-2008, 12:43 AM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Using your package manager, install ntfs-3g which will give read/write access. It is better to mount it manually than to try and set it up in /etc/fstab as most USB devices are assigned a drive letter in the order they are plugged in. Meaning, if one day you plugged in your digital camera before the external hard drive the camera would be /dev/sdb and the external would then be /dev/sdc.
Once you have ntfs-3g and dependants installed, in a root terminal type: fdisk -l to see what the external drive's device is (assuming it's turned on), make a directory to access it, unmount it and remount with ntfs-3g with these four commands:
Code:
fdisk -l
mkdir /external
umount /dev/sdb1
mount -t ntfs-3g /dev/sdb1 /external
In the example above I assumed the output of the fdisk -l command showed the external's first partition as /dev/sdb1 when the external was automatically mounted when it was plugged in, but it is in read only mode, so I un-mounted it and re-mounted using ntfs-3g and now it can be accessed via the /external directory in read/write mode. Some distributions only allow root to write to ntfs partitions. You can name the directory you make whatever you want to name it, I just used /external as an example.
 
1 members found this post helpful.
Old 10-26-2008, 06:14 AM   #4
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
@Junior Hacker,

yes but if he already got theses modules, and he get this error - the you've to run ntfsfix on the designated drives.
This happens if they are removed within windows w/o using the safely remove icon in systray.
 
Old 07-16-2013, 05:44 AM   #5
kolorafa
LQ Newbie
 
Registered: Jul 2013
Posts: 1

Rep: Reputation: Disabled
Smile

As for me, i also had bad unmounted ntfs FS (suspended windows, and removed usb in some time) and i got the same error message:

Code:
NTFS-fs error (device sdb1): load_system_files(): $LogFile is not clean.  Mounting read-only.  Mount in Windows.
I didn't found ntfs-utils in testing debian repo so i installed:

Code:
# apt-get install ntfs-3g
and then simply:

Code:
# umount /ntfs
# mount /dev/sdb1 /ntfs
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
So looks like ntfs-3g have fix tools already
 
1 members found this post helpful.
Old 07-16-2013, 05:15 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,677

Rep: Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260
Hello kolorafa and welcome to LQ.

Yep, some of these older posts are not current. Back in 08 many distro's didn't have ntfs-3g and it was not as advanced.

Thanks for showing that it not has an automatic way of fixing.
 
  


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
USB drive Read/Write - NTFS sp149 Linux - General 7 11-14-2007 05:11 PM
NTFS write access replica9000 Linux - Software 11 02-01-2007 04:28 AM
write access for ntfs dellmill Linux - Software 3 09-10-2006 08:28 AM
Non-root write access to a USB drive (ext2) ?? jmborr Linux - Hardware 4 10-17-2005 03:38 PM
Write access to NTFS drive Caboose447 SUSE / openSUSE 9 12-18-2004 09:53 PM


All times are GMT -5. The time now is 12:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration