Hitchhiker's Guide to Openbsd


You received the memory device from someone with whom you want to exchange data


Download 1.27 Mb.
Pdf ko'rish
bet229/258
Sana04.04.2023
Hajmi1.27 Mb.
#1328980
1   ...   225   226   227   228   229   230   231   232   ...   258
Bog'liq
obsd-faq49

You received the memory device from someone with whom you want to exchange data
There is a considerable chance the other person is not using OpenBSD, so there may be a foreign filesystem on 
the memory device. Therefore, we will first need to find out which partitions are on the device, as described in 
FAQ 14 - Foreign Filesystems

disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: DIGITAL FILM
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 123
total sectors: 251904
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0 
16 partitions:
# size offset fstype [fsize bsize cpg]
c: 251904 0 unused 0 0 # 
http://www.openbsd.org/faq/faq14.html (29 of 34)9/4/2011 10:02:25 AM


14 - Disk Setup
Cyl 0 - 122 
i: 250592 32 MSDOS # 
Cyl 0*- 122*
As can be seen in the disklabel output above, there is only one partition i, containing a FAT filesystem created on 
a Windows machine. As usual, the c partition indicates the entire device. 
Let's now mount the filesystem in the i partition on 
/mnt/flashmem

mount -t msdos /dev/sd0i /mnt/flashmem
Now you can start using it just like any other disk. 
WARNING: You should always unmount the filesystem before unplugging the memory device. If you don't, 
the filesystem may be left in an inconsistent state, which may result in data corruption. 
Upon detaching the memory device from your machine, you will again see the kernel write messages about this to 
the console: 
umass0: at uhub1 port 1 (addr 2) disconnected
sd0 detached
scsibus2 detached
umass0 detached

Download 1.27 Mb.

Do'stlaringiz bilan baham:
1   ...   225   226   227   228   229   230   231   232   ...   258




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling