ווטסאפ - לינוקס, BSD, קוד פתוח ותוכנה חופשית בעברית. Whatsup - Linux, BSD, open source and free software in Hebrew

 
 
  כניסת חברים · רישום · שכחתי סיסמה  
tux the penguin
תגובה לנושא
צפיה בנושא הבא Printable version התחבר כדי לבדוק הודעות פרטיות צפיה בנושא הקודם
sdsאורח · ·
 

הודעה פורסם: 11/06/2007 - 18:18
נושא ההודעה: עיגון diskonkey בnetbsd

שלום!
יש לי מערכת netbsd (שורת פקודה)
איך אני מעגן את הdiskonkey שלי ?
שאני מחבר אותו למחשב המחשב פולט את זה:
קוד:

umass0 at uhub0 port 2 configuration 1 interface 0
umass0: Ativa U3 smart 1GB' rev 2.00/2.00' addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets' 2 luns per target
sd0 at scsibus0 target 0 lun 0 : <Ativa, U3 smart 1GB, 6.50> disk removable
sd0: 958 MB, 61325 cyl, 4 head,8 sec,512 bytes/sect x 1962399 sectors
cd0 at scsibus0 target 0 lun 1: <Ativa,U3 smart 1GB,6.50> cdrom removable

אני יודע שצריך להשתמש בפקודה mount אבל אני לא יודע עם איזה ערכים
תודה
 
   
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
Jabka offlineאורח · ·
 

הודעה פורסם: 11/06/2007 - 18:50
נושא ההודעה:

mount /dev/sd0 path
 
   
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
sdsאורח · ·
 

הודעה פורסם: 11/06/2007 - 19:11
נושא ההודעה:

כתבתי תפקודה שנתת אבל הוא כותב שאין קובץ או תיקייה כזאתי /dev/sd0
 
   
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
לולי-אורח · ·
 

הודעה פורסם: 12/06/2007 - 00:22
נושא ההודעה:

תראה מה עשיתי:
ראשית הרצתי 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

בהצלחה!
 
   
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
sdsאורח · ·
 

הודעה פורסם: 12/06/2007 - 15:39
נושא ההודעה:

תודה רבה הצלחתי
 
   
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
הצגת הודעות מלפני:     
מעבר אל:  
כל הזמנים הם GMT + 2 שעות
תגובה לנושא
צפיה בנושא הבא Printable version התחבר כדי לבדוק הודעות פרטיות צפיה בנושא הקודם
PNphpBB2 © 2003-2004 

תוכן הדיון

  1. אורח [sds]
  2. אורח [Jabka offline]
  3. אורח [sds]
  4. אורח [לולי-]
  5. אורח [sds]