New IT forum Follow us on Twitter
04 February 2012, 03:32:20 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: DreamPlug tutorial in Linux Format issue 145!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: USB hard drive formatted in NTFS  (Read 4091 times)
wirewizard
Newbie
*
Posts: 2


« on: 05 November 2009, 08:33:39 am »

I have recently got one of these sheevaplugs and have set this box up with apache /webmin / php / MySql / Zoneminder. As Zoneminder is an IP security camera software I was looking to take motion sensitive pictures and videos, obviously I needed more than a SD card or USB stick, so I decided to try a USB HDD. Using webmin, I can mount the drive easy enough. I can read the drive, but thats all I can do.

After some research I have found the following http://ubuntuforums.org/showthread.php?t=1082489&page=12 Basically the standard ntfs tools that come with the sheevaplug has issues, I have tried adding something called ntfs-3g which is supposed to resolve this issue, but upon mounting the drive in an ssh session I get the following:

FATAL: Could not load /lib/modules/2.6.22.18/modules.dep: No such file or directory

researching this error I found this: http://openplug.org/plugforum/index.php?topic=37.0

This goes on about recompiling the kernel, being a linux newb, I am extremely unconfident about doing this. Apparently it is an issue with NTFS filesystems, I was wondering if anybody here has found a way to get around this without recompiling the whole kernel  Undecided Any help would be appreciated.
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #1 on: 05 November 2009, 11:01:29 am »

The newer kernel in the plugcomputer.org "installer" configurations may eliminate this problem. I'll try some tests in the next day or two and let you know the results.
Logged
wirewizard
Newbie
*
Posts: 2


« Reply #2 on: 05 November 2009, 11:39:11 am »

ok, thank you very much  Smiley
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #3 on: 05 November 2009, 09:30:22 pm »

I have recently got one of these sheevaplugs and have set this box up with apache /webmin / php / MySql / Zoneminder. As Zoneminder is an IP security camera software I was looking to take motion sensitive pictures and videos, obviously I needed more than a SD card or USB stick, so I decided to try a USB HDD. Using webmin, I can mount the drive easy enough. I can read the drive, but thats all I can do.

After some research I have found the following http://ubuntuforums.org/showthread.php?t=1082489&page=12 Basically the standard ntfs tools that come with the sheevaplug has issues, I have tried adding something called ntfs-3g which is supposed to resolve this issue, but upon mounting the drive in an ssh session I get the following:

FATAL: Could not load /lib/modules/2.6.22.18/modules.dep: No such file or directory

researching this error I found this: http://openplug.org/plugforum/index.php?topic=37.0

This goes on about recompiling the kernel, being a linux newb, I am extremely unconfident about doing this. Apparently it is an issue with NTFS filesystems, I was wondering if anybody here has found a way to get around this without recompiling the whole kernel  Undecided Any help would be appreciated.

I've done some tests with a preconfigured UBIFS setup (2.6.30.2 kernel). I now have a read/write external USB NTFS-formatted drive. In brief:

Starting with a 2.6.30.2 kernel, I installed ntfs-3g and attempted to mount a drive using webmin. I had multiple failures that gave (for instance) the following error:

Failed to save mount : Mount failed :

The disk contains an unclean file system (0, 1).
The file system wasn't safely closed on Windows. Fixing.
ntfs_attr_pread_i: ntfs_pread failed: Input/output error
Failed to read NTFS $Bitmap: Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.
Failed to sync device /dev/sda1: Input/output error
Failed to close volume /dev/sda1: Input/output error


That led me here, here and here.

So ... linux thinks that the NTFS drive didn't look right, and suggests that either a linux package named ntfsprogs may be used to fix the errors, or that the drive should be placed in a Windows PC so that Windows might have the chance to run chkdsk and fix any problems.

And this diagnosis was correct, in that the drive is unreliable and didn't even appear consistently when plugged into a Windows PC. Nevertheless, by this time I had installed ntfsprogs and running ntfsfix /dev/sda1 didn't fix the drive problems.

An alternative drive worked straightaway, mounting it via webmin. Read/write-ability remained after removing ntfsprogs.

Therefore, a solution for 2.6.30.2 kernel systems is as simple as:

apt-get install ntfs-3g

For a new user, this experiment suggests that the cleanest solution might be to zap the base system and replace it with a UBIFS-booting 2.6.30.2 kernel. You still have that option, if you are prepared to learn how to use the plugcomputer.org Installer and if it is acceptable for you to hose your existing setup. We can guide you through that. The other solution is the tougher question posed in your original post: how to upgrade the kernel as a separate exercise.

I note that kernels from 2.6.30.1 - 2.6.30-9 and 2.6.31.1 - 2.61.31.5 are downloadable. Frankly, we haven't looked into how to do this yet; it's something that we can add to our "To Do" list, but I can't promise a turnaround as quick as you would probably wish.

Talking of "To Do"s, I also found this entry in the slimdevices forum; at the very bottom there is listed a "TO DO" install FUSE and ntfs-3g for read-write access to USB NTFS drive. (Unfortunately it still seems to be on their To Do list too).

Hope this helps, for the moment at least.
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #4 on: 08 November 2009, 10:42:59 pm »

I don't see that you can perform the upgrade that you need without wiping the NAND memory. I've been reviewing and testing the procedures for changing the kernel and I think that the key information is in the first paragraph here:

Quote
WARNING - This procedure will not work on a SheevaPlug as shipped from the factory because the flash partition is too small for the Prebuilt Kernels and you will end up with an unbootable kernel http://plugcomputer.org/plugforum/index.php?topic=377.0. Check out the SheevaPlug Installer http://www.openplug.org/plugwiki/index.php/SheevaPlug_Installer

So, if you use the plugcomputer.org installer you will get what you desire (we know that, because I've tested on a UBIFS system that was created using the installer), BUT you will have to repeat your customisations and reinstall any software.

There's another issue that you didn't raise in your first post, but which might be a challenge for you (or might not). It looks to me as though you will need to compile Zoneminder (since there is no ARM version here.
Logged
bushcamper
Newbie
*
Posts: 1


« Reply #5 on: 10 January 2010, 06:14:44 pm »

Jason,

just received my NewIT Sheevaplug Multi-Boot Debian Squeeze 4GB-SD (NAND=Ubuntu, UBIFS) and it works great!

Quote
Therefore, a solution for 2.6.30.2 kernel systems is as simple as:

apt-get install ntfs-3g

That is really all (and safe) to do for writing to NTFS-formatted USB-HDDs, when using your preconfigured plug?

Thank you
Bushcamper
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #6 on: 10 January 2010, 07:33:24 pm »

NTFS support was considered experimental for a long time. I think the status has been upgraded, so it should now be considered stable / official:

http://en.wikipedia.org/wiki/NTFS-3G
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #7 on: 03 February 2010, 07:16:09 pm »

I have recently got one of these sheevaplugs and have set this box up with apache /webmin / php / MySql / Zoneminder. As Zoneminder is an IP security camera software I was looking to take motion sensitive pictures and videos, obviously I needed more than a SD card or USB stick, so I decided to try a USB HDD. Using webmin, I can mount the drive easy enough. I can read the drive, but thats all I can do.


Better late than never ... on the subject of zoneminder, today I found this:

http://www.zoneminder.com/forums/viewtopic.php?p=51000
Logged
wonka68
Newbie
*
Posts: 12


« Reply #8 on: 07 June 2010, 07:53:53 pm »

Just in case anyone is interested in accessing a USB drive formatted with NTFS....

I installed ntfsprogs, which didn't work.

However, I then installed ntfs-3g, which worked no problem.
Logged
katieburton12
Newbie
*
Posts: 3


« Reply #9 on: 30 August 2010, 09:27:42 am »

I believe the default size is 4KB, but since you are storing large video files you might want to increase that to 16KB or 32KB for a little better peformance, I think the max is 64KB. The only thing about not using the 4KB is you can't compress the drive but that's probalby not something you intend to do anyway.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!