12449 external hard-disk ain't recognized - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Peripheral Hardware

Peripheral Hardware Stuff that plugs in via USB, FireWire, eSATA, PS/2, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old April 25th, 2010, 16:04
jalu
Guest
 
Posts: n/a
Default external hard-disk ain't recognized

I just attached my external hard-disk (with usb) and can't recognize it with fdisk.
I checked dmesg:
Code:
root:# dmesg | tail
info: [drm] Initialized i915 1.6.0 20080730
drm0: [ITHREAD]
ugen3.2: <Sunplus Technology Inc.> at usbus3
umass0: <Bulk Only Interface> on usbus3
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:0:0:-1: Attached to scbus0
(da0:umass-sim0:0:0:0): got CAM status 0x4
(da0:umass-sim0:0:0:0): fatal error, failed to attach to device
(da0:umass-sim0:0:0:0): lost device
(da0:umass-sim0:0:0:0): removing device entry
Whats wrong?
Reply With Quote
  #2  
Old April 25th, 2010, 16:29
MG's Avatar
MG MG is offline
Member
 
Join Date: Nov 2008
Location: Netherlands
Posts: 191
Thanks: 5
Thanked 15 Times in 11 Posts
Default

Maybe your USB port has not enough power. I have an external disk with 2 connectors. On some computers I see this message when only one is plugged in.
Reply With Quote
  #3  
Old April 25th, 2010, 16:34
jalu
Guest
 
Posts: n/a
Default

Aha. That might be. Its a rather old PC.
Thanks.
Reply With Quote
  #4  
Old May 3rd, 2010, 02:46
fbsd1 fbsd1 is offline
Member
 
Join Date: Feb 2010
Location: Angeles City, Philippines
Posts: 199
Thanks: 0
Thanked 42 Times in 28 Posts
Default

check the ribbon cable nipple is correctly pluged into the HD. I got that same error when the nipple was one row of pins off.
__________________
FreeBSD Install Guide www.a1poweruser.com
Maintainer of the sysutils/qjail port
Reply With Quote
  #5  
Old May 3rd, 2010, 14:48
jalu
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by fbsd1 View Post
check the ribbon cable nipple is correctly pluged into the HD. I got that same error when the nipple was one row of pins off.
With Debian i may mount the HD just fine (on the same PC, its dual-boot). So it is rather that i am doing it wrong the BSD-way than something hardware-related.
Reply With Quote
  #6  
Old May 5th, 2010, 02:19
fronclynne's Avatar
fronclynne fronclynne is offline
Senior Member
 
Join Date: Feb 2009
Location: Lunch Time
Posts: 1,297
Thanks: 132
Thanked 166 Times in 143 Posts
Default

It looks to m[e|y inexpert eye] like your USB->[S]ATA chip doesn't play nicely with FreeBSD. I dunno if you'll be best off with the freebsd-usb@ list, or hackers, or here, or what, though. Sorry.
__________________
Quid habemus reliquum?
Nutrimentum anatum!

Внимание: лифт вниз не поднимает
Reply With Quote
  #7  
Old May 28th, 2010, 16:14
none's Avatar
none none is offline
Junior Member
 
Join Date: Nov 2008
Posts: 94
Thanks: 7
Thanked 2 Times in 2 Posts
Default

I have a external usb to ide that was ok in 7.x days, and now is not. a PR is already filed for that.

none
__________________
Nenhum_de_Nos
"We will call you cygnus, The God of balance you shall be"
Reply With Quote
  #8  
Old May 28th, 2010, 16:28
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

Try unplugging it and plugging it back in. I had a similar issue last night with a brand new 2TB external drive. First time it just refused to recognize it. After the unplug/plug it worked.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #9  
Old June 2nd, 2010, 04:35
jalu
Guest
 
Posts: n/a
Default

I read the advices here, so i tried it again (plugged and un-plugged a few times).
To make it short: i was able to mount it.

As 'fdisk' didn't show it i ran 'dmesg'. The last two lines were:
Code:
xptioctl: pass driver is not in the kernel
xptioctl: put "device pass" in your kernel config file
A search gave me this:
http://groups.google.com/group/maili...dc8809a498ac11
I did ran the command to be found there:
Code:
/etc/rc.d/devd restart
(which gave me errors, but /dev/da0 showed up in 'dmesg') and a final:
Code:
mount -t ext2fs /da0s2
mounted it.

I still don't understand the output of 'fdisk', but i for one can't find the device here:
Code:
ROOT# fdisk
******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=77622 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=77622 heads=16 sectors/track=63 (1008 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 57721041 (28184 Meg), flag 80 (active)
	beg: cyl 0/ head 1/ sector 1;
	end: cyl 1023/ head 15/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
sysid 5 (0x05),(Extended DOS)
    start 57721545, size 20515005 (10017 Meg), flag 0
	beg: cyl 1023/ head 255/ sector 63;
	end: cyl 1023/ head 9/ sector 63
ROOT#
Thanks for the help.
Reply With Quote
  #10  
Old June 2nd, 2010, 10:37
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,702
Thanks: 0
Thanked 301 Times in 245 Posts
Default

Your desktop environment may be automounting it. Are you sure it's mounted? Does it show up when you execute the command % mount?

Besides, unless you already have an entry for da0 in /etc/fstab, you will need to specify a mountpoint, e.g. # mount -t ext2fs /da0s2 /mountpoint.

And BTW, if you execute fdisk(8) without specifying a device, it will use the default one, i.e. your system disk (in this case ad0). Try % fdisk da0.
__________________
May the source be with you!
Reply With Quote
  #11  
Old June 2nd, 2010, 20:31
jalu
Guest
 
Posts: n/a
Default

Quote:
Beastie: Your desktop environment may be automounting it. Are you sure it's mounted? Does it show up when you execute the command % mount?
I am using e17. It doesn't automount per default. Might be i may set it that way, but i don't want to.

Quote:
Beastie: Besides, unless you already have an entry for da0 in /etc/fstab, you will need to specify a mountpoint,
e.g. # mount -t ext2fs /da0s2 /mountpoint.
My fault, a typo. The command i used was:
Code:
mount -t ext2fs /dev/da0s2 /media/disk
So yes, it is mounted (i am listening to my music from it, so i am pretty sure).
Quote:
Beastie: And BTW, if you execute fdisk(8) without specifying a device, it will use the default one, i.e. your system disk (in this case ad0).
Try % fdisk da0
Aha. Good info, now i got it.
So there ain't a similar command to the 'fdisk -l' of linux (which shows all the devices at once)?

Thank you.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to replace an old hard disk michaelrmgreen Howtos & FAQs (Moderated) 18 May 27th, 2012 06:29
External Hard Drive Giorgos Peripheral Hardware 4 January 20th, 2010 09:06
Mount ufs2 external hard drive sirving Peripheral Hardware 1 October 2nd, 2009 22:41
Partitioning an external hard drive WD MyBook Ico Peripheral Hardware 8 June 10th, 2009 15:14
Best use for a second hard disk / disk imaging geokes System Hardware 6 December 2nd, 2008 01:08


All times are GMT +1. The time now is 04:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0