תראה מה עשיתי:
ראשית הרצתי dmesg והבטתי בשורות האחרונות:
קוד: |
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: USB 2.0 Flash Disk, rev 2.00/11.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, 1 lun per target
sd0 at scsibus1 target 0 lun 0: <USB 2.0, Flash Disk, 1100> disk removable
sd0: 967 MB, 1968 cyl, 16 head, 63 sec, 512 bytes/sect x 1981440 sectors
|
מכאן שכינוי הדיסק הוא sd0.
עכשיו בדקתי את חלוקתו לפרוסות על ידי disklabel:
קוד: |
disklabel sd0
# /dev/rsd0d:
type: SCSI
disk: mydisk
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 1968
total sectors: 1981440
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
d: 1981440 0 unused 0 0 # (Cyl. 0 - 1965*)
e: 1981407 32 MSDOS # (Cyl. 0*- 1965*)
disklabel: boot block size 0
disklabel: super block size 0
|
מכאן עולה שהפרוסה המבוקשת היא e והיא מפורמטת כ msdos (שנתמכת על ידי netbsd).
יצרתי ספריה, עיגנתי לתוכה את הדיסק ובדקתי את תכנה:
קוד: |
# mkdir /mnt/dok
# mount /dev/sd0e /mnt/dok
# cd /mnt/dok
# ls -al
total 132098
drwxr-xr-x 1 root wheel 16384 Dec 31 1979 .
drwxr-xr-x 6 root wheel 512 Jun 12 03:05 ..
drwxr-xr-x 1 root wheel 16384 Feb 5 04:12 AMICHAI
-rwxr-xr-x 1 root wheel 14051021 Feb 26 14:31 C1Trace00347.csv
-rwxr-xr-x 1 root wheel 2592642 Feb 26 16:20 C1Trace00348.csv
-rwxr-xr-x 1 root wheel 28208603 Feb 26 16:21 C1Trace00349.csv
-rwxr-xr-x 1 root wheel 28225897 Feb 26 16:21 C1Trace00350.csv
-rwxr-xr-x 1 root wheel 2691498 Feb 26 16:21 C1Trace00351.csv
-rwxr-xr-x 1 root wheel 2576263 Feb 26 16:25 C1Trace00352.csv
-rwxr-xr-x 1 root wheel 26331508 Feb 26 16:26 C1Trace00353.csv
-rwxr-xr-x 1 root wheel 2678121 Feb 26 16:27 C1Trace00354.csv
-rwxr-xr-x 1 root wheel 27446162 Feb 26 16:28 C1Trace00355.csv
-rwxr-xr-x 1 root wheel 71889 Feb 22 14:32 D000.TIF
-rwxr-xr-x 1 root wheel 71889 Feb 22 14:33 D001.TIF
-rwxr-xr-x 1 root wheel 71889 Feb 22 14:34 D002.TIF
drwxr-xr-x 1 root wheel 16384 Dec 20 11:26 OpenOffice.org 2.1 Installation Files
drwxr-xr-x 1 root wheel 16384 Feb 20 14:14 TRACES
drwxr-xr-x 1 root wheel 16384 Jun 12 02:52 ksocket-lulinbsd
drwxr-xr-x 1 root wheel 16384 Jun 12 02:55 ksocket-lulinbsd00456a
drwxr-xr-x 1 root wheel 16384 Feb 4 05:48 office2003
drwxr-xr-x 1 root wheel 16384 Jan 16 17:07 w2k-belkin-nik
|
מערכת ההפעלה היא:
קוד: |
# uname -a
NetBSD 3.1 NetBSD 3.1 (GENERIC) #0: Mon Oct 30 21:47:28 UTC 2006 builds@b1.netbsd.org:/home/builds/ab/
netbsd-3-1-RELEASE/amd64/200610302053Z-obj/
home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/
amd64/compile/GENERIC amd64
|
בהצלחה!