WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: PIcore 6 & ntfs-3g  (Read 3360 times)

Offline jonesy

  • Newbie
  • *
  • Posts: 7
PIcore 6 & ntfs-3g
« on: May 13, 2015, 07:42:59 AM »
I need RW access to a 1TB USB harddrive.  I can't find ntfs-3g in picore 6, but it's in the picore 5 repo. 
Is there a compatibility reason why ntfs-3g didn't make it to picore 6?
Thanks

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: PIcore 6 & ntfs-3g
« Reply #1 on: May 13, 2015, 08:29:50 AM »
I will add latest ntfs-3g to 6.x repo
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jonesy

  • Newbie
  • *
  • Posts: 7
Re: PIcore 6 & ntfs-3g
« Reply #2 on: May 13, 2015, 08:43:23 AM »
Nice one.  Thank you Béla.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: PIcore 6 & ntfs-3g
« Reply #3 on: June 01, 2015, 02:49:31 AM »
ntfs-3g.tcz added to repo
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jonesy

  • Newbie
  • *
  • Posts: 7
Re: PIcore 6 & ntfs-3g
« Reply #4 on: June 06, 2015, 11:15:17 AM »
Thank you Béla.
Can you spot what I'm doing wrong?  I installed ntfs-3g.tcz, but I keep getting either Permission denied or Read-only file system when I try to copy a file in.

tc@box:~$ sudo mount -t ntfs-3g /dev/sdb1
tc@box:~$ cd /mnt/sdb1
tc@box:/mnt/sdb1$ ls
System Volume Information/ a.txt
tc@box:/mnt/sdb1$ sudo cp a.txt b.txt
cp: can't create 'b.txt': Read-only file system
[  157.767442] ntfs: driver 2.1.31 [Flags: R/W MODULE].
[  158.375141] ntfs: volume version 3.1.

I've also tried
sudo mount -t ntfs-3g -o rw /dev/sdb1 & mount -t ntfs -o rw /dev/sdb1
and I get the same output on DMESG.
filesystem 3.18.10 on 6.1b1
Any thoughts?
Thank you

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: PIcore 6 & ntfs-3g
« Reply #5 on: June 07, 2015, 02:34:34 AM »
Update ntfs-3g.tcz Shared lib was missing, now it is fixed.

Mount with this command:

Code: [Select]
sudo ntfs-3g /dev/sdb1 /mnt/sdb1
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jonesy

  • Newbie
  • *
  • Posts: 7
Re: PIcore 6 & ntfs-3g
« Reply #6 on: June 07, 2015, 08:28:53 AM »
I've tried an update, then I removed it altogether and installed it again and I'm still getting the same error.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: PIcore 6 & ntfs-3g
« Reply #7 on: June 07, 2015, 08:48:36 AM »
What is the output of

Code: [Select]
ntfs-3g --version
command?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jonesy

  • Newbie
  • *
  • Posts: 7
Re: PIcore 6 & ntfs-3g
« Reply #8 on: June 07, 2015, 09:39:59 AM »
Code: [Select]
tc@box:~$ ntfs-3g --version
ntfs-3g 2015.3.14 integrated FUSE 27

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: PIcore 6 & ntfs-3g
« Reply #9 on: June 07, 2015, 02:13:09 PM »
No idea, it works here as expected:

Code: [Select]
tc@box:~$ fdisk -l /dev/sda

Disk /dev/sda: 4039 MB, 4039114752 bytes
255 heads, 63 sectors/track, 491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1         491     3943926   7 HPFS/NTFS
tc@box:~$ sudo ntfs-3g /dev/sda1 /mnt/sda1
tc@box:~$ ls /mnt/sda1
tc@box:~$ mkdir /mnt/sda1/MyNewDir
tc@box:~$ ls /mnt/sda1
MyNewDir/
tc@box:~$ rmdir /mnt/sda1/MyNewDir
tc@box:~$ ls /mnt/sda1
tc@box:~$ ntfs-3g --version
ntfs-3g 2015.3.14 integrated FUSE 27
tc@box:~$
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jonesy

  • Newbie
  • *
  • Posts: 7
Re: PIcore 6 & ntfs-3g
« Reply #10 on: June 14, 2015, 10:07:59 AM »
Well, it looks like I have a quirky USB stick.  Just to be sure, I took a clean version of TC (6.1b1) and tried another USB drive. fstab shows
/dev/sda1       /mnt/sda1       ntfs-3g  noauto,users,exec    0 0 # Added by TC
and this mounts RW without any additional parameters and works fine.
When I umount this drive and plug in the original 'problem' one, it mounts and works RW as expected. However, if I re-boot and plug in problem drive, fstab shows
/dev/sdb1       /mnt/sdb1       ntfs     noauto,users,exec,ro,umask=000 0 0 # Added by TC
dmesg shows this
[  553.361927] sd 4:0:0:0: [sdb] Test WP failed, assume Write Enabled
and I can't RW.
So ntfs-3g is working fine, and I seem to have a quirky thumb drive.
Thanks for your time Béla.