Date: Tue, 21 Feb 2006 14:28:46 -0500 (EST) From: Peter <petermatulis@yahoo.ca> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: getting started with USB hard drive Message-ID: <20060221192846.71648.qmail@web60015.mail.yahoo.com> In-Reply-To: <20060221174550.GA54062@flame.pc>
next in thread | previous in thread | raw e-mail | index | archive | help
--- Giorgos Keramidas <keramida@ceid.upatras.gr> wrote: > On 2006-02-21 11:44, Peter <petermatulis@yahoo.ca> wrote: > > Hi. I picked up a USB hard drive and quite frankly I am not sure how > to > > use disklabel with it (what device I should use). Here are the > messages > > appended to my logs when connected: > > > > kernel: umass0: PI-036 USB2.0 Drive, rev 2.00/0.01, addr 3 > > kernel: umass0: Get Max Lun not supported (STALLED) > > kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > > kernel: da0: <WDC WD20 00JB-00KFA0 \0000\0000> Fixed Direct Access > SCSI-0 > > device > > kernel: da0: 1.000MB/s transfers > > kernel: da0: 190782MB (390721968 512 byte sectors: 255H 63S/T 24321C) > > > > Can anyone lend a hand? I am running 5.4-STABLE with a "pretty > GENERIC > > kernel". > > Very cool! > > Your kernel discovered the USB disk and created a /dev/da0 device node > for it. > > I think you'l find this post useful, as it describes what I did to use > my own USB disk on FreeBSD: > > > http://keramida.serverhive.com/weblog/archives/2004-10-16/using-a-usb-20-flash-mini-disk-on-freebsd > > Then this one too, to enable USB 2.X support (and greater transfer > speeds, as a result): > > > http://keramida.serverhive.com/weblog/archives/2005-06-23/usb-2x-support-in-freebsd Thanks for your links. I have a hell of a time setting up disks. This is what I did: # fdisk -BI da0 (using just -I failed) # bsdlabel -w da0 Then I get stuck. # bsdlabel da0s1 (fails) So, as usual, I retreat back to sysinstall. # sysinstall Now I have da0s1 # bsdlabel da0s1 # /dev/da0s1: type: SCSI disk: da0s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 24321 sectors/unit: 390721968 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 390716802 0 unused 0 0 # "raw" part, don't edit d: 390716802 0 4.2BSD 2048 16384 28552 bsdlabel: partition c doesn't cover the whole unit! bsdlabel: An incorrect partition c may cause problems for standard system utilities Now I wonder why this disk which is supposed to be 200 GB, was detected by FreeBSD (when connected) as 190 GB, shows up as 186 GB inside sysinstall, and has a size of 180 GB when seen by df. __________________________________________________________ Find your next car at http://autos.yahoo.ca
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060221192846.71648.qmail>