Skip navigation.
Home
The QNX Community Portal

View topic - USB memory stick

USB memory stick

Read-only archive of qnx.qnx4 (General QNX4 Discussion Group) at inn.qnx.com

USB memory stick

Postby Shashank » Thu May 18, 2006 8:06 pm

Hello,

I run "Fsys.umass" , and it creates "/dev/hd0" for me. Then I run "mount -p
/dev/hd0".

With a 128MB memory stick, it creates the block special filename
"/dev/hd0t6".
With a 256MB memory stick , it creates a block special filename
"/dev/hd0t14".

Is there a way to keep the same block special filename regardless of the
size of the memory stick.

Your suggestions are appreciated.

Shashank
Shashank
 

Re: USB memory stick

Postby John Garvey » Thu May 18, 2006 9:00 pm

Shashank wrote:
Hello,
I run "Fsys.umass" , and it creates "/dev/hd0" for me. Then I run "mount -p
/dev/hd0".

With a 128MB memory stick, it creates the block special filename
"/dev/hd0t6".
With a 256MB memory stick , it creates a block special filename
"/dev/hd0t14".

Is there a way to keep the same block special filename regardless of the
size of the memory stick.

The names are the type of the partition (the 'os type' field in the
partition table entry). QNX does not care at all what this value
is (other than knowing for auto-mounting purposes that certain types
store certain types of OS). Windows may well care and base certain
descision on it; t6 is "06 DOS 3.31+ 16-bit FAT (over 32M)" and t14
is "0e WIN95: DOS 16-bit FAT, LBA-mapped"; but I don't know. If
you don't want to use the USB under Windows, then just go in with
fdisk and hit the type field. Otherwise, why do you care under
QNX? Fatfsys should scan and automount regardless; if you are doing
something from a script you could test for the existence of certain
names (DOS ones would be 1,4,6,11,12,14, although it may not even
have a partition table).
John Garvey
 


Return to qnx.qnx4

Who is online

Users browsing this forum: No registered users and 2 guests

cron