Hi,

I'm new on FreeBSD not on unix.

I want to mount automatically an usb-stick memory into my machine ?
I get some problems.

Need help.

-> /etc/devfs.rules
add path 'da*' mode 0660 group operator

Actions:
1) ls -al   /dev/da*
ls: No match.

2) I Plug into the USB port, the ImageMate 12-in-1 Card Reader/Writer
(SanDisk)

3) ls -al   /dev/da*
crw-rw----  1 root  operator    0, 136 25 mai 14:11 /dev/da0
crw-rw----  1 root  operator    0, 138 25 mai 14:11 /dev/da1
crw-rw----  1 root  operator    0, 140 25 mai 14:11 /dev/da2
crw-rw----  1 root  operator    0, 141 25 mai 14:11 /dev/da3

4) I put the memory stick into the Card reader's slot

5) ls -al    /dev/da*
crw-rw----  1 root  operator    0, 136 25 mai 14:11 /dev/da0
crw-rw----  1 root  operator    0, 138 25 mai 14:11 /dev/da1
crw-rw----  1 root  operator    0, 140 25 mai 14:11 /dev/da2
crw-rw----  1 root  operator    0, 141 25 mai 14:11 /dev/da3

the /dev/da2s1 isn't here.

6) mount_msdosfs   /dev/da2s1    /mnt/cleusb/
mount_msdosfs: /dev/da2s1: No such file or directory

7) fdisk    /dev/da2
******* Working on device /dev/da2 *******
parameters extracted from in-core disklabel are:
cylinders=30 heads=64 sectors/track=32 (2048 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=30 heads=64 sectors/track=32 (2048 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 4 (0x04),(Primary DOS with 16 bit FAT (< 32MB))
    start 64, size 62656 (30 Meg), flag 0
        beg: cyl 1/ head 0/ sector 1;
        end: cyl 979/ head 1/ sector 32
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

8) ls -al   /dev/da*
crw-rw----  1 root  operator    0, 136 25 mai 14:11 /dev/da0
crw-rw----  1 root  operator    0, 138 25 mai 14:11 /dev/da1
crw-rw----  1 root  operator    0, 140 25 mai 14:11 /dev/da2
crw-rw----  1 root  operator    0, 141 25 mai 14:11 /dev/da3

9) mount_msdosfs   /dev/da2    /mnt/cleusb
mount_msdosfs: /dev/da2: Invalid argument

The command mount_msdosfs terminated abnormally but created in the /dev
directory  the /dev/da2s1 file.

10) ls -al  /dev/da*
crw-rw----  1 root  operator    0, 136 25 mai 14:11 /dev/da0
crw-rw----  1 root  operator    0, 136 25 mai 14:11 /dev/da0
crw-rw----  1 root  operator    0, 138 25 mai 14:11 /dev/da1
crw-rw----  1 root  operator    0, 140 25 mai 14:11 /dev/da2
crw-rw----  1 root  operator    0, 142 25 mai 14:11 /dev/da2s1
crw-rw----  1 root  operator    0, 141 25 mai 14:11 /dev/da3

11) And now i can mount and umount the stick memory.

Please, can someone explain to me why, when i plug the stick memory into the
slot of the card reader,  the system doesn't create the /dev/da2s1 file in
the the /dev directory.

And why i use the mount_msdosfs command, this command creates /dev/da2s1
file in the /dev directory.

Thank you for your answers !

Sorry for my english.

Best regards

Nej

Email : [EMAIL PROTECTED]
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to