[FreeBSD] usbstick mounten

Pagina: 1
Acties:

  • 0xDEADBEEF
  • Registratie: December 2003
  • Niet online
Het lijkt simpel maar is het niet: hoe mount ik een usbstick met 2 partities onder FreeBSD ?
Met Linux lukt het me wel

Het ding heeft as mentioned before 2 partities, en wordt ( zoals ik al gevonden heb ) vertaalt naar 2 lun's ( scsi-related ).

Kan het met een standaard kernel ?

Heb gezocht

En is het dezelfde procedure als in NetBSD ?

/edit @ MadCow: Ja is VFAT/fat32

[ Voor 11% gewijzigd door 0xDEADBEEF op 17-03-2004 17:02 ]

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg


  • MadCow*
  • Registratie: Januari 2001
  • Laatst online: 05-08-2025

MadCow*

<= icon space for rent

Ik ga er ff van uit dat het dos/windows partities zijn.
Je usb geval wordt als da1 herkent, elke partitie die daar op zit wordt dan
1e partitie da1s1
2e partitie da1s2
ect.

Veni, Vidi, Et je n'en crois pas mes yeux! (ik kwam, ik zag, en ik geloofde mijn ogen niet!) - J. Caesar (Asterix en de gladiatoren) | Nu vernieuwd met toegevoegde lazyness.


  • 0xDEADBEEF
  • Registratie: December 2003
  • Niet online
Dit zie ik bij het inpluggen:

code:
1
2
3
4
5
umass0: vendor 0x1005 USB Flash Drive, rev 2.00/1.00, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <USB Flash Drive 1.06> Removable Direct Access SCSI-0 device
da0: 1.000MB/s transfers
da0: 1MB (4093 512 byte sectors: 64H 32S/T 1C)


En soms wat rare sync errors:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
umass0: vendor 0x1005 USB Flash Drive, rev 2.00/1.00, addr 2
umass0: Residue incorrect, was 219, should've been 0
umass0: Residue incorrect, was 219, should've been 0
umass0: Residue incorrect, was 219, should've been 0
umass0: Residue incorrect, was 219, should've been 0
umass0: Residue incorrect, was 219, should've been 0
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <USB Flash Drive 1.06> Removable Direct Access SCSI-0 device
da0: 1.000MB/s transfers
da0: 1MB (4093 512 byte sectors: 64H 32S/T 1C)
umass0: Residue incorrect, was 18, should've been 0
umass0: Phase Error, residue = 0
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
umass0: Residue incorrect, was 18, should've been 0
umass0: Phase Error, residue = 0
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0


Heb bij het eerste code-blok de sync errors weggelaten

[ Voor 4% gewijzigd door 0xDEADBEEF op 18-03-2004 18:50 ]

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg


  • AVL
  • Registratie: Januari 2000
  • Laatst online: 25-09-2022

AVL

OHMSS

mount -t msdos /dev/da0s1 /mnt ?

"I'd rather have a bottle in front of me than a frontal lobotomy."


  • 0xDEADBEEF
  • Registratie: December 2003
  • Niet online
code:
1
mount -t msdos /dev/da0s1 /mnt/usb

~40 Sec timeout
code:
1
2
3
4
5
6
7
8
9
10
umass0: Phase Error, residue = 0
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
umass0: Residue incorrect, was 18, should've been 0

stardust# mount -t msdos /dev/da0s1 /mnt/usb
msdosfs: /dev/da0s1: Device busy

umass0: Phase Error, residue = 0
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
umass0: Residue incorrect, was 18, should've been 0


Het is me eerder wel één keer gelukt en dat was ook de enige keer tot nu toe

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg


  • 0xDEADBEEF
  • Registratie: December 2003
  • Niet online
* Kick

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg


  • xychix
  • Registratie: September 2000
  • Laatst online: 03-12-2025

xychix

FreeBSD Rules !

hmm ik heb maar een partitie. ik laat de slices dan ook wel
(alhoewel je van een eerste partitie ook zou verwachten dat ie in de eerste slice zit)


probeer eens

mount -t msdosfs /dev/da0 /mnt om te zien wat ie doet.

Every failure offers you a new opportunity! | Lokatie database|GoT - Notepad


  • 0xDEADBEEF
  • Registratie: December 2003
  • Niet online
xychix schreef op 22 maart 2004 @ 17:17:
doe eens mount -t msdosfs /dev/da0 /mnt om te zien wat ie doet.
code:
1
2
mount -t msdosfs /dev/da0 /mnt/usb
mount: /dev/da0: Input/output error

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg


  • 0xDEADBEEF
  • Registratie: December 2003
  • Niet online
Eindelijk \o/

Als je dit in je FreeBSD 5.x ( 5.2.1) kernelconfig verwerkt:
code:
1
2
3
4
5
6
7
8
device      da          # Direct Access (disks)
device      ohci            # OHCI PCI->USB interface
device      pass            # Passthrough device (direct SCSI access)
device      scbus           # SCSI bus (required for SCSI)
device      ugen            # Generic
device      uhci            # UHCI PCI->USB interface
device      umass           # Disks/Mass storage - Requires scbus and da
device      usb         # USB Bus (required)

En eventueel
code:
1
2
makeoptions NO_MODULES=yes
options     SCSI_DELAY=15000    #Delay (in ms) before probing SCSI



Dan is dit, afhankelijk van je hardware, zo ongeveer de output:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Aug 23 20:35:22  kernel: umass0: vendor 0x1005 USB Flash Drive, rev 2.00/1.00, addr 2
Aug 23 20:35:22  kernel: umass0:0:0:-1: Attached to scbus0
Aug 23 20:35:22  kernel: pass0 at umass-sim0 bus 0 target 0 lun 0
Aug 23 20:35:22  kernel: pass0: <USB Flash Drive 1.06> Removable Direct Access SCSI-0 device
Aug 23 20:35:22  kernel: pass0: Serial Number
Aug 23 20:35:22  kernel: pass0: 1.000MB/s transfers
Aug 23 20:35:22  kernel: GEOM: create disk da0 dp=0xc1df7050
Aug 23 20:35:22  kernel: GEOM: new disk da0
Aug 23 20:35:23  kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Aug 23 20:35:23  kernel: da0: <USB Flash Drive 1.06> Removable Direct Access SCSI-0 device
Aug 23 20:35:23  kernel: da0: Serial Number
Aug 23 20:35:23  kernel: da0: 1.000MB/s transfers
Aug 23 20:35:23  kernel: da0: 1MB (4093 512 byte sectors: 64H 32S/T 1C)
Aug 23 20:35:23  kernel: pass1 at umass-sim0 bus 0 target 0 lun 1
Aug 23 20:35:23  kernel: pass1: <USB Flash Drive 1.06> Removable Direct Access SCSI-0 device
Aug 23 20:35:23  kernel: pass1: Serial Number
Aug 23 20:35:23  kernel: pass1: 1.000MB/s transfers
Aug 23 20:35:23  kernel: GEOM: create disk da1 dp=0xc1de0050
Aug 23 20:35:23  kernel: da1 at umass-sim0 bus 0 target 0 lun 1
Aug 23 20:35:23  kernel: da1: <USB Flash Drive 1.06> Removable Direct Access SCSI-0 device
Aug 23 20:35:23  kernel: da1: Serial Number
Aug 23 20:35:23  kernel: da1: 1.000MB/s transfers
Aug 23 20:35:23  kernel: da1: 122MB (249856 512 byte sectors: 64H 32S/T 122C)
Aug 23 20:35:23  kernel: [0] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
Aug 23 20:35:23  kernel: [1] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
Aug 23 20:35:23  kernel: [2] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
Aug 23 20:35:23  kernel: [3] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
Aug 23 20:35:23  kernel: GEOM: new disk da1
Aug 23 20:35:23  kernel: [0] f:00 typ:11 s(CHS):0/1/1 e(CHS):1023/3/61 s:61 l:249795
Aug 23 20:35:23  kernel: [1] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
Aug 23 20:35:23  kernel: [2] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
Aug 23 20:35:23  kernel: [3] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
Aug 23 20:35:23  kernel: GEOM: Configure da1s1, start 31232 length 127895040 end 127926271

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg


  • Polichism
  • Registratie: Maart 2002
  • Niet online

Polichism

MOEHOE

(overleden)
Tuurlijk moet een device wel in je kernel gebakken zijn dat is niet alleen in 5.x zo.. maar dat was ook al in 4.x ;-)

{02:31:10} (splinkie): ik hoor net van iemand dat ze nu met een fietsband moest naaien omdat ze geen condooms meer kon betalen || {02:34:44} (Asjemenou): beter met een lange tijd met goodyear dan een korte tijd met firestone en in de problemen komen


Verwijderd

Op mijn (ex) FreeBSD 5.2.x bak ging USB stick mounten gewoon als:
code:
1
mount_msdosfs /dev/da0s1 /mnt


Ik heb daarvoor niets aan de standaard kernel config veranderd. Het werkte gewoon.
Hierboven in de thread was ook iemand die noemde:
code:
1
mount -t msdos /dev/da0s1 /mnt


Dit zou denk ik ook wel moeten werken. Heb je dat al geprobeerd? Uit deze thread kan ik dat namelijk niet aflezen. Wel zie ik dat je mount -t msdos /dev/da0 /mnt hebt geprobeerd.

  • 0xDEADBEEF
  • Registratie: December 2003
  • Niet online
Oh het is gelukt hoor; het ding heeft een 1 MB partitie (da0, ext2) en een 122 MB partitie (Fat32, da1s1).

code:
1
mount_msdosfs /dev/da1s1 /mnt/usbstick
:)

[ Voor 3% gewijzigd door 0xDEADBEEF op 24-08-2004 11:43 ]

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg

Pagina: 1