|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Code:
max@/dev: ls acd0 cuad0.lock mem sndstat ttyv8 acd1 dcons midistat stderr ttyv9 acpi devctl mixer0 stdin ttyva ad0 devstat net stdout ttyvb ad0s1 dgdb net1 sysmouse ttyvc ad0s1a dsp0.0 net2 ttyd0 ttyvd ad0s1b dumpdev net3 ttyd0.init ttyve ad0s1c fd network ttyd0.lock ttyvf ad0s1d fido nfs4 ttyp0 ugen0 ad0s1e geom.ctl nfslock ttyp1 ugen0.1 ad0s1f io null ttyp2 ums0 ata kbd0 nvidia0 ttyp3 urandom atkbd0 kbd1 nvidiactl ttyv0 usb audit kbdmux0 pci ttyv1 usb0 bpf0 klog ppi0 ttyv2 usb1 console kmem ptyp0 ttyv3 xpt0 consolectl log ptyp1 ttyv4 zero ctty lpt0 ptyp2 ttyv5 cuad0 lpt0.ctl ptyp3 ttyv6 cuad0.init mdctl random ttyv7 max@/dev: ls acd0 cuad0.lock mem sndstat ttyv8 acd1 dcons midistat stderr ttyv9 acpi devctl mixer0 stdin ttyva ad0 devstat net stdout ttyvb ad0s1 dgdb net1 sysmouse ttyvc ad0s1a dsp0.0 net2 ttyd0 ttyvd ad0s1b dumpdev net3 ttyd0.init ttyve ad0s1c fd network ttyd0.lock ttyvf ad0s1d fido nfs4 ttyp0 ugen0 ad0s1e geom.ctl nfslock ttyp1 ugen0.1 ad0s1f io null ttyp2 ums0 ata kbd0 nvidia0 ttyp3 urandom atkbd0 kbd1 nvidiactl ttyv0 usb audit kbdmux0 pci ttyv1 usb0 bpf0 klog ppi0 ttyv2 usb1 console kmem ptyp0 ttyv3 xpt0 consolectl log ptyp1 ttyv4 zero ctty lpt0 ptyp2 ttyv5 cuad0 lpt0.ctl ptyp3 ttyv6 cuad0.init mdctl random ttyv7 max@/dev: ls acd0 cuad0.lock mem sndstat ttyv8 acd1 dcons midistat stderr ttyv9 acpi devctl mixer0 stdin ttyva ad0 devstat net stdout ttyvb ad0s1 dgdb net1 sysmouse ttyvc ad0s1a dsp0.0 net2 ttyd0 ttyvd ad0s1b dumpdev net3 ttyd0.init ttyve ad0s1c fd network ttyd0.lock ttyvf ad0s1d fido nfs4 ttyp0 ugen0 ad0s1e geom.ctl nfslock ttyp1 ugen0.1 ad0s1f io null ttyp2 ums0 ata kbd0 nvidia0 ttyp3 urandom atkbd0 kbd1 nvidiactl ttyv0 usb audit kbdmux0 pci ttyv1 usb0 bpf0 klog ppi0 ttyv2 usb1 console kmem ptyp0 ttyv3 xpt0 consolectl log ptyp1 ttyv4 zero ctty lpt0 ptyp2 ttyv5 cuad0 lpt0.ctl ptyp3 ttyv6 cuad0.init mdctl random ttyv7 max@/dev: ls acd0 cuad0.lock mem sndstat ttyv8 acd1 dcons midistat stderr ttyv9 acpi devctl mixer0 stdin ttyva ad0 devstat net stdout ttyvb ad0s1 dgdb net1 sysmouse ttyvc ad0s1a dsp0.0 net2 ttyd0 ttyvd ad0s1b dumpdev net3 ttyd0.init ttyve ad0s1c fd network ttyd0.lock ttyvf ad0s1d fido nfs4 ttyp0 ugen0 ad0s1e geom.ctl nfslock ttyp1 ugen0.1 ad0s1f io null ttyp2 ums0 ata kbd0 nvidia0 ttyp3 urandom atkbd0 kbd1 nvidiactl ttyv0 usb audit kbdmux0 pci ttyv1 usb0 bpf0 klog ppi0 ttyv2 usb1 console kmem ptyp0 ttyv3 xpt0 consolectl log ptyp1 ttyv4 zero ctty lpt0 ptyp2 ttyv5 cuad0 lpt0.ctl ptyp3 ttyv6 cuad0.init mdctl random ttyv7 max@/dev: ls acd0 cuad0.lock mem sndstat ttyv8 acd1 dcons midistat stderr ttyv9 acpi devctl mixer0 stdin ttyva ad0 devstat net stdout ttyvb ad0s1 dgdb net1 sysmouse ttyvc ad0s1a dsp0.0 net2 ttyd0 ttyvd ad0s1b dumpdev net3 ttyd0.init ttyve ad0s1c fd network ttyd0.lock ttyvf ad0s1d fido nfs4 ttyp0 ugen0 ad0s1e geom.ctl nfslock ttyp1 ugen0.1 ad0s1f io null ttyp2 ums0 ata kbd0 nvidia0 ttyp3 urandom atkbd0 kbd1 nvidiactl ttyv0 usb audit kbdmux0 pci ttyv1 usb0 bpf0 klog ppi0 ttyv2 usb1 console kmem ptyp0 ttyv3 xpt0 consolectl log ptyp1 ttyv4 zero ctty lpt0 ptyp2 ttyv5 cuad0 lpt0.ctl ptyp3 ttyv6 cuad0.init mdctl random ttyv7 max@/dev: dmesg Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Sempron(tm) Processor 3200+ (1803.78-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x40ff2 Stepping = 2 Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> Features2=0x2001<SSE3,CX16> AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!> AMD Features2=0x19<LAHF,ExtAPIC,CR8> real memory = 3489333248 (3327 MB) avail memory = 3401707520 (3244 MB) ACPI APIC Table: <A M I OEMAPIC > ioapic0 <Version 1.1> irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) hptrr: HPT RocketRAID controller driver v1.1 (Feb 24 2008 19:59:27) acpi0: <A M I OEMRSDT> on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, cff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: <ACPI CPU> on acpi0 powernow0: <PowerNow! K8> on cpu0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 pci0: <memory, RAM> at device 0.0 (no driver attached) pci0: <memory, RAM> at device 0.1 (no driver attached) pci0: <memory, RAM> at device 0.2 (no driver attached) pci0: <memory, RAM> at device 0.3 (no driver attached) pci0: <memory, RAM> at device 0.4 (no driver attached) pci0: <memory, RAM> at device 0.5 (no driver attached) pci0: <memory, RAM> at device 0.6 (no driver attached) pci0: <memory, RAM> at device 0.7 (no driver attached) pcib1: <ACPI PCI-PCI bridge> at device 3.0 on pci0 pci1: <ACPI PCI bus> on pcib1 pcib2: <ACPI PCI-PCI bridge> at device 4.0 on pci0 pci2: <ACPI PCI bus> on pcib2 vgapci0: <VGA-compatible display> port 0xec00-0xec7f mem 0xfd000000-0xfdffffff,0xd0000000-0xdfffffff,0xfa000000-0xfbffffff irq 16 at device 0.0 on pci2 nvidia0: <GeForce 8600 GT> on vgapci0 vgapci0: child nvidia0 requested pci_enable_busmaster vgapci0: child nvidia0 requested pci_enable_io nvidia0: [GIANT-LOCKED] nvidia0: [ITHREAD] pci0: <memory, RAM> at device 9.0 (no driver attached) isab0: <PCI-ISA bridge> at device 10.0 on pci0 isa0: <ISA bus> on isab0 pci0: <serial bus, SMBus> at device 10.1 (no driver attached) ohci0: <OHCI (generic) USB controller> mem 0xf9fbe000-0xf9fbefff irq 21 at device 11.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: <nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0 uhub0: 8 ports with 8 removable, self powered ehci0: <EHCI (generic) USB 2.0 controller> mem 0xf9fbfc00-0xf9fbfcff irq 22 at device 11.1 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb1: EHCI version 1.0 usb1: companion controller, 8 ports each: usb0 usb1: <EHCI (generic) USB 2.0 controller> on ehci0 usb1: USB revision 2.0 uhub1: <nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb1 uhub1: 8 ports with 8 removable, self powered atapci0: <nVidia nForce MCP51 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 13.0 on pci0 ata0: <ATA channel 0> on atapci0 ata0: [ITHREAD] ata1: <ATA channel 1> on atapci0 ata1: [ITHREAD] atapci1: <nVidia nForce MCP51 SATA300 controller> port 0xd800-0xd807,0xd480-0xd483,0xd400-0xd407,0xd080-0xd083,0xd000-0xd00f mem 0xf9fbd000-0xf9fbdfff irq 23 at device 14.0 on pci0 atapci1: [ITHREAD] ata2: <ATA channel 0> on atapci1 ata2: [ITHREAD] ata3: <ATA channel 1> on atapci1 ata3: [ITHREAD] pcib3: <ACPI PCI-PCI bridge> at device 16.0 on pci0 pci3: <ACPI PCI bus> on pcib3 pcm0: <NVidia MCP51 High Definition Audio Controller> mem 0xf9fb8000-0xf9fbbfff irq 20 at device 16.1 on pci0 pcm0: [ITHREAD] nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xcc00-0xcc07 mem 0xf9fbc000-0xf9fbcfff irq 21 at device 20.0 on pci0 miibus0: <MII bus> on nfe0 rlphy0: <RTL8201L 10/100 media interface> PHY 1 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto nfe0: Ethernet address: 00:13:8f:a5:1f:bf nfe0: [FILTER] acpi_button0: <Power Button> on acpi0 fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] pmtimer0 on isa0 ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: <Parallel port bus> on ppc0 ppbus0: [ITHREAD] plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ugen0: <vendor 0x046d product 0x0920, class 255/255, rev 1.10/0.01, addr 2> on uhub0 ums0: <Microsoft Microsoft 3-Button Mouse with IntelliEye(TM), class 0/0, rev 1.10/3.00, addr 3> on uhub0 ums0: 3 buttons and Z dir. Timecounter "TSC" frequency 1803776989 Hz quality 800 Timecounters tick every 1.000 msec hptrr: no controller detected. ad0: 152627MB <Maxtor 6G160P0 KA201V00> at ata0-master UDMA133 acd0: DVDR <PIONEER DVD-RW DVR-111D/1.19> at ata1-master UDMA66 acd1: DMA limited to UDMA33, device found non-ATA66 cable acd1: DVDROM <ASUS DVD-E616A2/1.03> at ata1-slave UDMA33 pcm0: <HDA Codec: Realtek ALC888> pcm0: <HDA Driver Revision: 20071129_0050> Trying to mount root from ufs:/dev/ad0s1a linux: pid 1017 (opera): ioctl fd=499, cmd=0x8910 ('\M^I',16) is not implemented |
|
|||
Yes, the USB drive has a small white light on it to indicate (I suppose) it has power.
I've checked the drive on a Vista laptop and an XP machine at work. I've used two different USB pen/thumb drives in the same port and they are fine, and I then mount them from da0s1 to /mnt/flash |
|
|||
When you formatted the USB stick with NTFS it was recognized. That is why I suggest to do this again. Then with FreeBSD's fdisk you change the partition type from NTFS to FAT32
Fdisk output concerning one of my USB sticks Code:
# fdisk da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=244 heads=255 sectors/track=63 (16065 blks/cyl) parameters to be used for BIOS calculations are: cylinders=244 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 6 (0x06),(Primary 'big' DOS (>= 32MB)) start 32, size 3932128 (1919 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 960/ head 128/ sector 32 The data for partition 2 is: <UNUSED> The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED> So the task is simple, change this ID from 7 to 6 . In the following I will change the partition ID 6 of my stick to OpenBSD's ID 166. Code:
# fdisk -u da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=244 heads=255 sectors/track=63 (16065 blks/cyl) parameters to be used for BIOS calculations are: cylinders=244 heads=255 sectors/track=63 (16065 blks/cyl) Do you want to change our idea of what BIOS thinks ? [n] enter Code:
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 6 (0x06),(Primary 'big' DOS (>= 32MB)) start 32, size 3932128 (1919 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 960/ head 128/ sector 32 Do you want to change it? [n] y enter Code:
Supply a decimal value for "sysid (165=FreeBSD)" [6] 166 Supply a decimal value for "start" [32] 63 Supply a decimal value for "size" [3932128] fdisk: WARNING: partition does not end on a cylinder boundary fdisk: WARNING: this may confuse the BIOS or some operating systems Correct this automatically? [n] y enter Code:
fdisk: WARNING: adjusting size of partition to 3919797 Explicitly specify beg/end address ? [n] sysid 166 (0xa6),(OpenBSD) start 63, size 3919797 (1913 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 243/ head 254/ sector 63 Are we happy with this entry? [n] y enter Code:
The data for partition 2 is: <UNUSED> Do you want to change it? [n] enter The data for partition 3 is: <UNUSED> Do you want to change it? [n] enter The data for partition 4 is: <UNUSED> Do you want to change it? [n] enter Partition 1 is marked active Do you want to change the active partition? [n] enter Code:
We haven't changed the partition table yet. This is your last chance. parameters extracted from in-core disklabel are: cylinders=244 heads=255 sectors/track=63 (16065 blks/cyl) parameters to be used for BIOS calculations are: cylinders=244 heads=255 sectors/track=63 (16065 blks/cyl) Information from DOS bootblock is: 1: sysid 166 (0xa6),(OpenBSD) start 63, size 3919797 (1913 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 243/ head 254/ sector 63 2: <UNUSED> 3: <UNUSED> 4: <UNUSED> Should we write new partition table? [n] y enter So you task is the change the NTFS sysid to 06. When that is done you format that slice with FreeBSD's newfs_msdos. Code:
# newfs_msdos /dev/da0s1
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
I've found with a lot of FAT-formatted USB drives, you have to manually run mount -t msdosfs /dev/da0 /mnt so that GEOM can "taste" the drive and figure out how it is formatted/partitioned. After that, devd should add the device nodes to /dev. Then you re-run the mount command using the correct slice (/dev/da0s1, for example).
In theory, trying to do it with the slice info first should accomplish the same task, but I've found it to be hit-and-miss. However, that only works if the kernel correctly detects the USB device, and correctly sets up the umass drive, such that a da(4) device is configured. It also depends on how you format the drive, and whether or not it has a correct MBR. If possible, try doing the fdisk and newfs from FreeBSD, instead of from Windows. |
|
|||
Reformatted as NTFS, then plugged it back into my FreeBSD box. Not showing up under /dev at all now...
|
|
||||
To quote myself:
Quote:
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
Okay, I'll look at doing that, but I'm confused (obviously).
Why should a device which as you say even if filled with random data, turn up under /dev/da0 not do so, if I know that a ) the device functions b ) the physical port functions. This isn't an issue I've encountered with the machine in the past (in a previous, Ubuntu incarnation). |
|
||||
A (new) WD Passport drive crossed my desk today, since I happend to have a FreeBSD machine running it was little trouble testing it.
It worked without problems for me, with different filesystems.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
Post moved here: http://daemonforums.org/showthread.php?t=2872
__________________
May the source be with you! Last edited by Beastie; 16th February 2009 at 10:15 AM. |
|
|||
Okay. So they can function. Not really of help to me currently, but I'll persevere.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to mount ext3 | guitarscn | FreeBSD General | 2 | 26th August 2009 07:31 PM |
ssh mount inquiry | revzalot | Solaris | 1 | 18th March 2009 11:49 PM |
mount ufs from linux | kanonmat | FreeBSD General | 8 | 2nd December 2008 06:13 AM |
NFS mount /usr/home? | giddyupman | FreeBSD General | 1 | 1st September 2008 07:06 PM |
Cannot mount (NTFS) | IIMarckus | OpenBSD General | 4 | 11th August 2008 08:44 PM |