Problem s USB Flashkou
David Pasek
david.pasek at gmail.com
Tue Jul 20 13:20:10 CEST 2010
Ahoj,
mam jeden box, na kterem je FreeBSD 7.2 s generic kernelem
[root at accontrol ~]# uname -a
FreeBSD accontrol.home.uw.cz 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1
08:49:13 UTC 2009 root at walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
i386
Do boxu mam zastrcenou USB flashku a todle je videt v dmsg ...
ohci0: <OHCI (generic) USB controller> mem 0xa0003000-0xa0003fff irq 11 at
device 19.0 on pci0
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <(0x0e11) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 3 ports with 3 removable, self powered
...
umass0: <Philips USB Flash Drive, class 0/0, rev 2.00/11.00, addr 2> on
uhub0
...
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Philips USB Flash Drive 1100> Removable Direct Access SCSI-0 device
da0: 1.000MB/s transfers
da0: 3824MB (7831552 512 byte sectors: 255H 63S/T 487C)
...
Tady je jeste pro uplnost vypis fdisku ...
[root at accontrol /home/accontrol/www]# fdisk /dev/da0
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=487 heads=255 sectors/track=63 (16065 blks/cyl)
parameters to be used for BIOS calculations are:
cylinders=487 heads=255 sectors/track=63 (16065 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 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 7823592 (3820 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 486/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
a bsdlabelu ....
[root at accontrol /home/accontrol/www]# bsdlabel /dev/da0
da0 da0s1 da0s1c da0s1d
[root at accontrol /home/accontrol/www]# bsdlabel /dev/da0s1
# /dev/da0s1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
c: 7823592 0 unused 0 0 # "raw" part, don't
edit
d: 7823592 0 4.2BSD 0 0 0
Kdyz se pokousim vytvorit filesystem, tak to skonci s podivnou hlaskou o
"bad magic number". Viz. nize.
[root at accontrol /home/accontrol/www]# newfs -U -O2 /dev/da0s1d
/dev/da0s1d: 3820.1MB (7823592 sectors) block size 16384, fragment size 2048
using 21 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
with soft updates
super-block backups (for fsck -b #) at:
160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976,
3387328, 3763680, 4140032, 4516384, 4892736, 5269088, 5645440, 6021792,
6398144, 6774496, 7150848, 7527200
cg 0: bad magic number
Na jinem hardwaru mi to funguje, ale jeste to jednou poradne vyzkousim.
Netusite nekdo v cem by mohl byt problem?
Predem diky,
David.
--
David Pasek
david.pasek at gmail.com, +420 602 525 736
More information about the Users-l
mailing list