FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Fri Jan 22, 2021 09:24



Post new topic Reply to topic  [ 12 posts ] 
Q's about mounting NTFS on embeed b'd with samsung 2440 
Author Message

Joined: Mon May 18, 2009 09:21
Posts: 10
Post Q's about mounting NTFS on embeed b'd with samsung 2440
hello ~ there

Q's: not happen on embeed linux after mounting using ntfs-3g new version 2009.4.4

I'm working on Embeed linux with samsung 2440 cpu. it means I'm on embeed linux not PC type linux
linux version is 2.6.21

I compiled ntfs-3g-2009.4.4 with
./configure --with-kernel=/linux direcotyr --host=arm-none-linux-gnueabi CC=arm-none-linux-gnueabi-gcc CFLAGS=-mcpu=arm920t --prefix=$(pwd)/out --exec-prefix=$(pwd)/out

kernel config condition : set to support FUSE_FS

there is no error

after compiling I copied the directory of "out" already set by configure time into /root filesystem on embeed linux

fdisk -l says that
/dev/sda1 NTFS

so I mounted like
ntfs-3g /dev/sda1 /mn/hdd
no error

but I didn't see anything after mounting
so I run command "mount"

but there was no mount poing with NTFS.

Q 1: So How am i supposed to do after failing reading NTFS.
Q 2: NTFS-3g-2009.4.4 document says that it doesn't reuqire FUSE
Is it real ????
Because I just follow README, but nothing happens

thanks in advance


Mon May 18, 2009 09:40
Profile

Joined: Mon May 18, 2009 09:21
Posts: 10
Post Re: Q's about mounting NTFS on embeed b'd with samsung 2440
because of mounting failed
I retryed to mount by using mount command on linux like

mount -t ntfs-3g /dev/sda1 /mnt/hdd
where /mnt/hdd is already maid.

but error is "mount:mounting /dev/sda1 on /mnt/hdd failed : No such device"
??????


Mon May 18, 2009 09:44
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post Re: Q's about mounting NTFS on embeed b'd with samsung 2440
You have no error message because your environment (shell?) closes stderr, what it shouldn't, when it calls ntfs-3g.

The "No such device" error means that there is no device driver in your kernel for your device (see more in open(2)). ntfs-3g can mount a volume only if the the device is handled by its device driver. This is a kernel problem, unrelated to ntfs-3g.


Tue May 19, 2009 12:21
Profile

Joined: Mon May 18, 2009 09:21
Posts: 10
Post Re: Q's about mounting NTFS on embeed b'd with samsung 2440
thanks for answer !!

to work properly I compiled fuse-2.7.4 with kernel-module like
./configure --with-kernel=/kernel directory --host=arm-none-linux-gnueabi CC=arm-none-linux-gnueabi-gcc --prefix=$(pwd)/out --enable-kernel-module --disable-mtab

I had seen no error for compiling

after that i run command

insmod fuse.ko

error happens like
fuse : no version for "strcut_module" found : kernel tainted.
fuse : unknown relocation : 40
insmod : cannot insert 'fuse.ko' : invaild module format

To solve isseue I had serached one but artcle sys that plelase insert command option "--with-kernel"
but I already set it.

condition : linux-2.6.21 (not patched for NTFS-3g"

would you please help me to proceed ?

thanks in advance.


Wed May 20, 2009 03:10
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post Re: Q's about mounting NTFS on embeed b'd with samsung 2440
The kernel and the FUSE module was built with different config options.


Wed May 20, 2009 03:22
Profile

Joined: Mon May 18, 2009 09:21
Posts: 10
Post Re: Q's about mounting NTFS on embeed b'd with samsung 2440
thanks for your helping me continusely

even though I don't catche that

as i understand with "--with-kernel" it's ok to compile with sysncronize fuse module and running linux version.

On embeed machine sys after running command "uname -r"

2.6.21-falinux

I think that it's ok becuase i compiled with this version linux with arm-cross-compiler named "arm-none-linux-gnueabi-xxx"
the other program (module) is ok in Makefile with "KERNELDIR =/xxx/linux-2.6.21"

????

Would give me the clue to solve ???

Thanks in advancd.


Wed May 20, 2009 03:28
Profile

Joined: Mon May 18, 2009 09:21
Posts: 10
Post Re: Q's about mounting NTFS on embeed b'd with samsung 2440
I'm glad to why there is issue when inserting module named fuse.ko
it is realted with speacial path for ARM. espeically for armv4

after patching file for ARMV4 patch related with "R_ARM_V4BX"

ok
but saddly has issue like
insmod : cannot insert "fuse.ko" : device or resoure busy

Why ??

but happy to solve and proceed a little bit


Wed May 20, 2009 08:43
Profile

Joined: Mon May 18, 2009 09:21
Posts: 10
Post Re: Q's about mounting NTFS on embeed b'd with samsung 2440
because of faing to complete insertion of fuse.ko

I looked into fuse code and kernel sorce tree

finally found it out

It's realted with EBUSY.

at this time I am not sure but after getting rid of fuse modue supproted by orinally kernel 2.6.21

It's ok but

after running below
ntfs-3g /dev/sda1 /mnt/hdd
there is no issue

oddly I did not see ntfs mouting porinted after run mount command

Woudl please help me with the clue

Thanks in advance.


Wed May 20, 2009 09:56
Profile

Joined: Mon May 18, 2009 09:21
Posts: 10
Post Re: Q's about mounting NTFS on embeed b'd with samsung 2440
this is a report of the issue refering to "strace NTFS-3g /dev/sa1 /mnt/hdd"
this below is shown after running strace

.............
lstat64("/dev", {st_mode=S_IFDIR|0777, st_size=14336, ...}) = 0
lstat64("/dev/sda1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 1), ...}) = 0
getuid32() = 0
getgid32() = 0
open("/proc/filesystems", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tbd"..., 1024) = 342
close(3) = 0
munmap(0x4001f000, 4096) = 0
geteuid32() = 0
getegid32() = 0
stat64("/dev/fuse", {st_mode=S_IFCHR|0660, st_rdev=makedev(10, 229), ...}) = 0
getegid32() = 0
getgid32() = 0
getegid32() = 0
setresgid32(-1, 0, 0) = 0
getegid32() = 0
geteuid32() = 0
getuid32() = 0
geteuid32() = 0
setresuid32(-1, 0, 0) = 0
geteuid32() = 0
stat64("/dev/sda1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 1), ...}) = 0
stat64("/dev/sda1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 1), ...}) = 0
open("/dev/sda1", O_RDWR|O_LARGEFILE) = 3
fcntl64(3, F_SETLK64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 0xbee5e848) = 0
pread(3, "\353R\220NTFS \0\2\10\0\0\0\0\0\0\0\370\0\0?\0\377\0\0\10\0\0\0"..., 512, 0) = 512
_llseek(3, 31457278976, [31457278976], SEEK_SET) = 0
ioctl(3, BLKBSZSET, 0xbee5e874) = 0
--- SIGILL (Illegal instruction) @ 0 (0) ---
+++ killed by SIGILL +++

Would please give me the clue ????

Thanks in Advance


Wed May 20, 2009 10:48
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post Re: Q's about mounting NTFS on embeed b'd with samsung 2440
SIGILL means illegal machine instruction. The cross-compilation tool-chain doesn't match the run-time environment.


Wed May 20, 2009 12:28
Profile

Joined: Mon May 18, 2009 09:21
Posts: 10
Post Re: Q's about mounting NTFS on embeed b'd with samsung 2440
I'm glad to annouce that NTFS-3G is working properly

As the leader of ntfs-3g sys that it's realted with cross compiltation issue.

thanks for helping me

another Q's

Would you please give clues to use stable version between fuse and ntfs-3g
I have used different version
fuse-2.7.4
ntfs-2009.4.4

Is it right choice ?


Thu May 21, 2009 05:39
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post Re: Q's about mounting NTFS on embeed b'd with samsung 2440
Those versions are ok. But please note that the performance won't we be very great. If you're interested then we have a commercial driver which has 10-20 times better data transfer speed and up to 100 times better metadata performance: http://ntfs-3g.org/commercial.html


Thu May 21, 2009 13:22
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.