Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 26 Jul 2014, 09:22
All times are UTC - 4
 Forum index » Advanced Topics » Hardware
How to write on a usb-harddisk with ntfs? (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
Roogan

Joined: 20 Dec 2013
Posts: 13

PostPosted: Thu 30 Jan 2014, 09:02    Post subject:  How to write on a usb-harddisk with ntfs? (Solved)
Subject description: The problem just went away, or fixed itself.
 

Hi folks!

The message I get, when I try to use my external harddisk is something like: "Because of the NTFS-driver you are allowed to "read only". What can I do to be able to "write also"?

I just started to use Precise Puppy 5.7.1 via USB-Flash-Drive. This is the last problem I have to solve, than PrecisePuppy will be my most beloved OS!
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3212
Location: Ontario

PostPosted: Thu 30 Jan 2014, 20:50    Post subject:  

You should be able to able to read and write with recent kernels
like precise. I bet your problem is because you are running from a USB flash stick.

If you can't solve the problem then you will have to use a disk formater
(either windows or linux) to resize the ntfs partition to leave some unformatted
space on your windows computer. Then gparted can format that
unformated space to fat32 .
http://ubuntuforums.org/showthread.php?t=2180625


fat32 or fat 16 is the best for exchanging windows data with mac or linux
operating system.

_____________________________________________________


You could try putting a line in /etc/fstab to recognize the ntfs partition
at startup. Read about this on the internet.

________________________________________
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 256

PostPosted: Thu 30 Jan 2014, 20:53    Post subject:  

Whenever I've gotten a read only ntfs disk, the problem has been that there was some sort of error on the disk (and presumably Puppy didn't want to write to it because it was afraid of messing it up).

Both times it happened, I fixed it by running "chkdsk -f" in Windows on the disk.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10931
Location: Arizona USA

PostPosted: Thu 30 Jan 2014, 22:06    Post subject:  

FWIW, all my Puppies have been able to write on any NTFS-formatted disk or partition. I think dancytron must be on the right track, and, if you don't do any thing rash, you'll be able to fix the problem without any damage to the Windows partition.
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3955
Location: Kiel,Germany

PostPosted: Fri 31 Jan 2014, 01:00    Post subject:  

dancytron wrote:
Whenever I've gotten a read only ntfs disk, the problem has been that there was some sort of error on the disk (and presumably Puppy didn't want to write to it because it was afraid of messing it up).

Both times it happened, I fixed it by running "chkdsk -f" in Windows on the disk.


Puppy's /bin/mount wrapper script is coded to handle ntfs mounting
by using the user space driver /bin/ntfs-3g .
This is a binary that became a little more cautious with newer versions beginning with Puppy-5 Lupu series .
The /bin/mount wrapper switches to use the inbuilt kernel driver ntfs.ko that only allows writing to already existing files if /bin/ntfs-3g cowards .


kernel 3.4 source :

CONFIG_NTFS_RW:

This enables the partial, but safe, write support in the NTFS driver.

| The only supported operation is overwriting existing files, without
│ changing the file length. No file or directory creation, deletion or
│ renaming is possible. Note only non-resident files can be written to
│ so you may find that some very small files (<500 bytes or so) cannot
│ be written to.

│ While we cannot guarantee that it will not damage any data, we have
│ so far not received a single report where the driver would have
│ damaged someones data so we assume it is perfectly safe to use.

│ Note: While write support is safe in this version (a rewrite from
│ scratch of the NTFS support), it should be noted that the old NTFS
│ write support, included in Linux 2.5.10 and before (since 1997),
│ is not safe.

| Symbol: NTFS_RW [=y]
│ Type : boolean
│ Prompt: NTFS write support
│ Defined at fs/ntfs/Kconfig:51
│ Depends on: BLOCK [=y] && NTFS_FS [=y]
│ Location:
│ -> File systems
│ -> DOS/FAT/NT Filesystems
│ -> NTFS file system support (NTFS_FS [=y])

It is perfectly safe to say N here. Laughing

Last edited by Karl Godt on Fri 31 Jan 2014, 13:16; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Roogan

Joined: 20 Dec 2013
Posts: 13

PostPosted: Fri 31 Jan 2014, 12:24    Post subject:  

Thanks a lot for your time!

As an interested noob I think Karl provided the most profound hints. As a noob with a tiny shell-command-phobia (I am working on it Smile) I am not sure if I should try Karls way and if Karls way involves risks I shouldn't take. If there is a saver workaround for my problem, I will try that.

So, more information:

- I'd like use puppy via Flash-Drive on several computers.
- On my USB-Harddisk I have a truecrypt container that exceeds 4GB (so fat32 is out). I'd like to open and read/write within that container with both, Linux and Windows.

Are there other harddisk-format but fat32 or NTFS, that Puppy and Windows fully work with?
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3955
Location: Kiel,Germany

PostPosted: Fri 31 Jan 2014, 13:15    Post subject:  

Roogan wrote:
Thanks a lot for your time!

As an interested noob I think Karl provided the most profound hints. As a noob with a tiny shell-command-phobia (I am working on it Smile) I am not sure if I should try Karls way and if Karls way involves risks I shouldn't take. If there is a saver workaround for my problem, I will try that.

So, more information:

- I'd like use puppy via Flash-Drive on several computers.
- On my USB-Harddisk I have a truecrypt container that exceeds 4GB (so fat32 is out). I'd like to open and read/write within that container with both, Linux and Windows.

Are there other harddisk-format but fat32 or NTFS, that Puppy and Windows fully work with?


My 4 machines run full installs, I even did not install that OEM Windows Vista that came with the used Dell I am currently running on the new two internal common HDDs .
Running full installs on common HDDs it is very simple to compile and install your own kernel, since you don't need to alter any initrd.gz for replacing modular build drivers .

To access Linux ext2-4 partitions in Windows I used http://sourceforge.net/projects/ext2fsd/

And I am not aware that Windows would allow any mount access to non-Windows file systems .

For a common user there are three OS to choose : AppleOS, some kind of LinuxOS and WindowsOS .

In a world that exist in large varieties of everything, they are neat few.
Back to top
View user's profile Send private message Visit poster's website 
dancytron

Joined: 18 Jul 2012
Posts: 256

PostPosted: Fri 31 Jan 2014, 18:55    Post subject:  

Have you tried chkdsk yet? 99% chance that will fix it.
Back to top
View user's profile Send private message 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 508

PostPosted: Sat 01 Feb 2014, 13:34    Post subject:  

dancytron wrote:
Have you tried chkdsk yet? 99% chance that will fix it.


I have seen cases where chkdsk would refuse to fix a disk or would make a disk worse. I always recommend that everything important on a USB NTFS drive be saved elsewhere whenever you are going to do a chkdsk on it.

I have seen two cases where the drive was totally unusable on Windows and yet SuSE could mount it and copy the files off.

After the mount and copy, I did a mount with the "-o force" option and then a umount and when I was done Windows would like the drive again.

I never keep a USB drive in NTFS format because there are just too many weird things that can happen.
Back to top
View user's profile Send private message 
Roogan

Joined: 20 Dec 2013
Posts: 13

PostPosted: Tue 04 Feb 2014, 08:09    Post subject:  

dancytron wrote:
Have you tried chkdsk yet? 99% chance that will fix it.



I just ordered another USB-Hard-Disk in order to copy everything before running chkdsk. And furthermore I can experiment with ext3 if I want to.

Thanks for your participation, I'll let you know, what solution it will be!
Back to top
View user's profile Send private message 
Roogan

Joined: 20 Dec 2013
Posts: 13

PostPosted: Fri 07 Feb 2014, 06:13    Post subject:  

What shall I say?

Wonders happen.

The new harddisk (ntfs) works perfectly with puppy. The old harddisk suddenly works perfectly too.

I assume, the other windows-computer "chkdsk"ed my old harddisk on its own, when I connected them.

Thanks for your advice and help, I really enjoy to become an more advanced puppy-user!
Back to top
View user's profile Send private message 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 508

PostPosted: Sun 16 Feb 2014, 13:17    Post subject:  

Moose On The Loose wrote:

After the mount and copy, I did a mount with the "-o force" option and then a umount and when I was done Windows would like the drive again.


I am going to type this from memory:

Code:

mkdir /mnt/broken
mount  -v -t ntfs -o force -w  /dev/sdX1 /mnt/broken


IIRC, the order of the arguments mattered. The"-v" causes mount to say in some detail what it is doing. The messages gave a bit of re-assurance that the mount worked.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0831s ][ Queries: 12 (0.0041s) ][ GZIP on ]