Modify

Opened 4 years ago

Last modified 19 months ago

#16422 new defect

NTFS-3G support for block-mount(ubox package)

Reported by: Aravind KR Owned by: developers
Priority: high Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

Hi,

I am using block-mount utility of ubox package for auto detection and mount of block devices(USB and hard disc) on barrier breaker release.

uBox package that provides block-mount for auto detection of mounting of block devices like USB,SATA doesn’t support NTFS filesystem.

Block-mount uses libblkid-tiny filesystem parser for parsing filesystem after auto detecting a block device.
Ubox-2014-01-22/libblkid-tiny/libblkid-tiny.c has parsers for below filesystems,
static const struct blkid_idinfo *idinfos[] =
{

&vfat_idinfo,

&swsuspend_idinfo,
&swap_idinfo,
&ext4dev_idinfo,
&ext4_idinfo,
&ext3_idinfo,
&ext2_idinfo,
&jbd_idinfo,
&squashfs_idinfo,
&jffs2_idinfo,

};

Here we can see the support for FAT32,VFAT,ext2,ext3,ext4,Squashfs and Jffs2.

So I added NTFS parser that detects if the filesystem is NTFS or not and returns success if NTFS.
My parser function extracts NTFS magic number from 4th byte to 7th byte of NTFS meta data as per the below link,
http://www.cse.scu.edu/~tschwarz/coen252_07Fall/Lectures/NTFS.html

I appended my block info structure &ntfs_idinfo and probe function to the above list.

Now block-mount is mounting NTFS partition with above changes.

Is there any ongoing development of block-mount utility to support NTFS filesystem?

Regards,
Aravind

Attachments (0)

Change History (7)

comment:1 Changed 4 years ago by pepvf@…

Not a defect.
In addition, NTFS is a bad idea for extroot. The best way is create a first ext4 partition and a NTFS partition in the rest of the storage device.

comment:2 Changed 4 years ago by iancilos@…

Aravind KR is right. Without this fix "fstab" even if properly configured can not automatically mount any work NTFS partition. Many people like me who need this file system for various reasons (albeit slow). Please make this correction to return to work, the lord above correction has already ready!
Please excuse my English

comment:3 in reply to: ↑ description Changed 4 years ago by anonymous

Replying to Aravind KR:
Could you post the patch here? Then it would be useful to at least the people who would patch manually.

comment:4 Changed 3 years ago by Zvika

Hi.
pepvf, why do you say that it's "Not a defect"?
I (and other users) definitely see this as a defect, there is a proposed solution; what are the reasons to not accept the fix?

Thanks,
Zvika

comment:5 Changed 3 years ago by xuefer

you don't have do your own parser, it's in util-linux-2.24.1/libblkid/src/superblocks/ntfs.c
the libblkid-tiny/vfat.c (and others) is copied and modified from util-linux i guess, can anyone port this ntfs.c into the tiny version?

comment:6 Changed 3 years ago by xuefer

you don't have do your own parser, it's in util-linux-2.24.1/libblkid/src/superblocks/ntfs.c
the libblkid-tiny/vfat.c (and others) is copied and modified from util-linux i guess, can anyone port this ntfs.c into the tiny version?

comment:7 Changed 19 months ago by mohammad.rasim96@…

I need this as well, can some one solve it? @Aravind can you post a patch ?

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.