DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3rd January 2011
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default ntfs-3g can not mount USB flash

I use FreeBSD 8.1 AMD64 with Gnome and I want mount read and write ntfs flash drive and I install fusefs-ntfs-2010.10.2 from ports and I put
Code:
fusefs_enable="YES"
in /etc/rc.conf
and
Code:
fuse_load="YES"
in /boot/loader.conf
when I run this command
Code:
mount -t ntfs-3g /dev/da0s1 /mnt/narges/
I see this error
Code:
mount: /dev/da0s1 : Operation not supported by device
but when I run this command
Code:
mount_ntfs  /dev/da0s1 /mnt/narges/
I do not see error and when I run df -h , I see this
Code:
Filesystem      Size    Used   Avail Capacity  Mounted on
/dev/ad10s1a    496M    275M    181M    60%    /
devfs           1.0K    1.0K      0B   100%    /dev
/dev/ad10s1e    496M    1.1M    455M     0%    /tmp
/dev/ad10s1f    136G    110G     15G    88%    /usr
/dev/ad10s1d    3.8G    2.4G    1.1G    68%    /var
procfs          4.0K    4.0K      0B   100%    /proc
/dev/da0s1      7.5G    230M    7.2G     3%    /mnt/narges
this show me my 8GB Flash drive with NTFS file system is mount and I can use it , so when I run this command for copy file ,
Code:
cp supertux-0.1.3-setup.exe /mnt/narges/
I see this
Code:
cp: /mnt/narges/supertux-0.1.3-setup.exe: No such file or directory
and I when I want copy directory like this
Code:
cp -r 6.4-RELEASE-i386-disc1/ /mnt/narges/
I see this
Code:
cp: /mnt/narges/6.4-RELEASE-i386-disc1.iso: No such file or directory
I need suggestion for solve this problem
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
  #2   (View Single Post)  
Old 3rd January 2011
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

What is output of that command: # fdisk da0
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #3   (View Single Post)  
Old 3rd January 2011
JokerBoy JokerBoy is offline
Real Name: Bogdan
New User
 
Join Date: Dec 2010
Location: Romania
Posts: 6
Thanked 2 Times in 2 Posts
Default

did you tried ntfs-3g /dev/da0s1 /mnt/narges? did worked for me..
Reply With Quote
  #4   (View Single Post)  
Old 3rd January 2011
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by vermaden View Post
What is output of that command: # fdisk da0
when I run that command I see this
Code:
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=974 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=974 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX)
    start 80, size 15663024 (7647 Meg), flag 80 (active)
	beg: cyl 0/ head 1/ sector 1;
	end: cyl 505/ head 19/ sector 16
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
  #5   (View Single Post)  
Old 3rd January 2011
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

@mfaridi

Try JokerBoy suggestion, also worked for me, sometimes I only needed to add -o force option.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #6   (View Single Post)  
Old 3rd January 2011
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,068
Thanked 198 Times in 156 Posts
Default

Quote:
I only needed to add -o force option.
Forcing anything with any filesystem seems like a bad idea to me unless you:

1) Use it in read-only mode (And even then this can be dangerous. Anyone remember ext2 on freeBSD 4?)
2) You are comfortable with losing any and all data on the partition.
3) You are comfortable with your machine crashing.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #7   (View Single Post)  
Old 3rd January 2011
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Thanks all guys , I use JokerBoy way to mount and use NTFS file system and it work good and I can mount NTFS , but I do not know why speed is so slow and and copy 4.1GB take long time and speed is 2 MB with mc , very bad thing is happen for me , I want copy OpenSuse 11.3 iso file to my USB flash , this ISO is 4.1GB and I use mc for copy this file after long time I see error about I/O error , and I can not copy this file , so I will copy this file with cp command , I wish cp command work good and copy over 4.2GB files to my USB flash
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
  #8   (View Single Post)  
Old 3rd January 2011
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

Quote:
Originally Posted by mfaridi View Post
but I do not know why speed is so slow
NTFS-3G uses FUSE, which means filesystem in userspace, which is slow


@Carpetsmoker

Is there an fsck_ntfs-3g to fix it? I do not remember any.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #9   (View Single Post)  
Old 3rd January 2011
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

I do not know why big files can not coy , I check with mc and cp command , I use this command
Code:
cp -v openSUSE-11.3-DVD-i586.iso /mnt/narges/
and I see this error
Code:
cp: /mnt/narges/openSUSE-11.3-DVD-i586.iso: No such file or directory
and only 3.5GB of files is copied , and copy stop
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
Old 3rd January 2011
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

Why not just format that USB drive under FAT32 or EXT2 filesystem?
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
Old 3rd January 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,142
Thanked 182 Times in 149 Posts
Default

Vermaden, if files are bigger than 4GB you cannot use FAT32

From http://en.wikipedia.org/wiki/FAT32#FAT32
Quote:
The maximum possible size for a file on a FAT32 volume is 4 GiB minus 1 byte (232−1=4,294,967,295 bytes). Video applications, large databases, and some other software easily exceed this limit. Larger files require another formatting type such as NTFS.
For a comparison of of file systems limits see http://en.wikipedia.org/wiki/Compari...systems#Limits
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 3rd January 2011
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,068
Thanked 198 Times in 156 Posts
Default

I am guessing that openSUSE-11.3-DVD-i586.iso is larger than the 4GiB file limit imposed by FAT32.

EDIT: J65nko beat me to it.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 3rd January 2011
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

Quote:
Originally Posted by J65nko View Post
Vermaden, if files are bigger than 4GB you cannot use FAT32

From http://en.wikipedia.org/wiki/FAT32#FAT32

For a comparison of of file systems limits see http://en.wikipedia.org/wiki/Compari...systems#Limits
Yes FAT32 is very limited in that case, I alwasy use split(1) for bigger then 4GB files on FAT32.

It would be nice to have exFAT support on FreeBSD, but there is zero to none chance that Microsoft would release it without all these patents and fees.

Quote:
Originally Posted by Carpetsmoker View Post
I am guessing that openSUSE-11.3-DVD-i586.iso is larger than the 4GiB file limit imposed by FAT32.
Strange case (as usual with mfaridi), he used NTFS (which does not have this limit) ... and then he hits the 4GB file limit (maybe he reformatted it as FAT32, who knows).
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
Old 4th January 2011
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by vermaden View Post
Yes FAT32 is very limited in that case, I alwasy use split(1) for bigger then 4GB files on FAT32.

It would be nice to have exFAT support on FreeBSD, but there is zero to none chance that Microsoft would release it without all these patents and fees.



Strange case (as usual with mfaridi), he used NTFS (which does not have this limit) ... and then he hits the 4GB file limit (maybe he reformatted it as FAT32, who knows).
No NO my USB is NTFS and I see that error
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you mount logical ntfs partitions? Broodjegehaktmetmayo FreeBSD General 10 11th April 2010 07:47 PM
NTFS on DragonFly BSD Malakim Other BSD and UNIX/UNIX-like 4 17th October 2008 03:43 PM
Mounting ntfs drive as rw using fusefs-ntfs caesius FreeBSD General 3 12th October 2008 11:08 AM
Cannot mount (NTFS) IIMarckus OpenBSD General 4 11th August 2008 08:44 PM
mount problems with ntfs drive shinjii FreeBSD General 3 25th June 2008 12:33 AM


All times are GMT. The time now is 12:05 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick