LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2012, 09:53 PM   #1
escolom
Member
 
Registered: Apr 2012
Location: San Francisco, cA
Distribution: Ubunto 12.04/Debian 7
Posts: 57

Rep: Reputation: Disabled
ubunto: cant MOUNT baracuda 7200.9 160gb can't mount thru cypress enclosure.


Hi,
Im back again with more fun for everyone. I have this old working hard drive with windows on it.(fat). apparently the device name is hidraw1 (I tested this by powering it on and off) is

Bus 001 Device 009: ID 04b4:6830 Cypress Semiconductor Corp. CY7C68300A EZ-USB AT2 USB 2.0 to ATA/ATAPI

when I try to mount hidraw1 It just hangs.. when I turn off the HD ..the hang gets removed and ubunto says doesn't exist.

sudo mount /dev/hidraw1 usbcolomhd -t msdos
mount: /dev/hidraw1 is n
not a block device

usbcolomhd is my dir for mounting.
I also tried the -t auto and omitting
thanks for reading this

the harddrive is an IDE in a USB enclosure and connected to a dell m5030 laptop via usb cable (2.0). I am sure hidraw1 is the device name. I am thinking there is something wrong with the mount command.. I also tried -tvfat -tmsdos



help

thanks

Last edited by escolom; 04-28-2012 at 10:01 PM.
 
Old 04-29-2012, 01:16 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,635

Rep: Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090
Plug the enclosure in, then "sudo parted -l". What do you get ?.
 
Old 04-29-2012, 02:39 AM   #3
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
Quote:
Originally Posted by syg00 View Post
Plug the enclosure in, then "sudo parted -l". What do you get ?.
As I recall, parted was removed from the standard Ubuntu install a while back. So you may have to install it first before doing that.
 
Old 04-29-2012, 02:49 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,635

Rep: Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090
Erk - thanks @qlue. Try this if it isn't there
Code:
sudo fdisk -l

Last edited by syg00; 04-29-2012 at 02:50 AM. Reason: amended name
 
Old 04-29-2012, 02:57 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
hidraw does not sound like an hd device. Run "sudo tail -f /var/log/messages" and then plug in the drive. The kernel messages will indicate the drive node and the partition nodes. The drive node will look like /dev/sdb. The first partition will look like /dev/sdb1. It might be sdc for the third drive, or sdd for the forth.

You could also run "sudo /sbin/fdisk -l" to list all of the drives and partitions. Or use the blkid program if you have it. This program will also list the UUID numbers and labels.

If your partition has the label "hidraw1", there may be a symlink /dev/disk/by-label/hidraw1 which points to the real device node.
 
Old 04-29-2012, 03:16 AM   #6
escolom
Member
 
Registered: Apr 2012
Location: San Francisco, cA
Distribution: Ubunto 12.04/Debian 7
Posts: 57

Original Poster
Rep: Reputation: Disabled
[/B]yg,glue..i have parted in ubunto 12...great util..does't list it tho// prob cuz its not mounted

sudo parted -l
Model: ATA ST9320325AS (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 267GB 267GB primary ext4 boot
2 267GB 320GB 53.3GB extended
6 267GB 317GB 50.3GB logical ext4
5 317GB 320GB 2948MB logical linux-swap(v1)

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b113b

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 521124083 260561018 83 Linux
/dev/sda2 521125886 625141759 52007937 5 Extended
/dev/sda5 619384832 625141759 2878464 82 Linux swap / Solaris
/dev/sda6 521125888 619384831 49129472 83 Linux

Partition table entries are not in disk order


jchiwal,

fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b113b

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 521124083 260561018 83 Linux
/dev/sda2 521125886 625141759 52007937 5 Extended
/dev/sda5 619384832 625141759 2878464 82 Linux swap / Solaris
/dev/sda6 521125888 619384831 49129472 83 Linux

Partition table entries are not in disk order




this place rocks!! always get clues!
 
Old 04-29-2012, 03:27 AM   #7
escolom
Member
 
Registered: Apr 2012
Location: San Francisco, cA
Distribution: Ubunto 12.04/Debian 7
Posts: 57

Original Poster
Rep: Reputation: Disabled
jschiwal,

sudo tail -f /var/log/messages
tail: cannot open `/var/log/messages' for reading: No such file or directory

but i see where you are going...so i did..

dmesg |tail

[ 4050.116223] usb 1-3: new high-speed USB device number 7 using ehci_hcd
[ 4050.250397] usb 1-3: config 1 has an invalid interface number: 2 but max is 1
[ 4050.250408] usb 1-3: config 1 has no interface number 1
[ 4050.252644] scsi9 : usb-storage 1-3:1.0
[ 4050.254824] generic-usb 0003:04B4:6830.0006: hiddev0,hidraw0: USB HID v1.10 Device [Cypress AT2LP RC58] on usb-0000:00:12.2-3/input2


thanks

Last edited by escolom; 04-29-2012 at 03:40 AM.
 
Old 04-29-2012, 03:33 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,635

Rep: Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090
O.K., that says only one disk - if it was plugged in, it isn't being recognised. Try un-plugging/plugging in, and show us this
Code:
dmesg | tail -n 15
 
Old 04-29-2012, 03:47 AM   #9
escolom
Member
 
Registered: Apr 2012
Location: San Francisco, cA
Distribution: Ubunto 12.04/Debian 7
Posts: 57

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
O.K., that says only one disk - if it was plugged in, it isn't being recognised. Try un-plugging/plugging in, and show us this
Code:
dmesg | tail -n 15
unplugged

[ 4360.395917] cfg80211: Restoring regulatory settings
[ 4360.395926] cfg80211: Calling CRDA to update world regulatory domain
[ 4360.404691] cfg80211: Ignoring regulatory request Set by core since the driver uses its own custom regulatory domain
[ 4360.404701] cfg80211: World regulatory domain updated:
[ 4360.404706] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 4360.404714] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 4360.404721] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 4360.404728] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 4360.404734] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 4360.404740] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 4361.412316] wlan0: authenticate with e0:91:f5:7e:27:02 (try 1)
[ 4361.414333] wlan0: authenticated
[ 4361.444159] wlan0: associate with e0:91:f5:7e:27:02 (try 1)
[ 4361.448153] wlan0: RX ReassocResp from e0:91:f5:7e:27:02 (capab=0x411 status=0 aid=2)
[ 4361.448164] wlan0: associated

plugged in

dmesg | tail -n 15
[ 4360.404714] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 4360.404721] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 4360.404728] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 4360.404734] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 4360.404740] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 4361.412316] wlan0: authenticate with e0:91:f5:7e:27:02 (try 1)
[ 4361.414333] wlan0: authenticated
[ 4361.444159] wlan0: associate with e0:91:f5:7e:27:02 (try 1)
[ 4361.448153] wlan0: RX ReassocResp from e0:91:f5:7e:27:02 (capab=0x411 status=0 aid=2)
[ 4361.448164] wlan0: associated
[ 4446.144227] usb 1-3: new high-speed USB device number 10 using ehci_hcd
[ 4446.277475] usb 1-3: config 1 has an invalid interface number: 2 but max is 1
[ 4446.277486] usb 1-3: config 1 has no interface number 1
[ 4446.280617] scsi12 : usb-storage 1-3:1.0
[ 4446.283281] generic-usb 0003:04B4:6830.0009: hiddev0,hidraw0: USB HID v1.10 Device [Cypress AT2LP RC58] on usb-0000:00:12.2-3/input2
 
Old 04-29-2012, 04:38 AM   #10
escolom
Member
 
Registered: Apr 2012
Location: San Francisco, cA
Distribution: Ubunto 12.04/Debian 7
Posts: 57

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jschiwal View Post
hidraw does not sound like an hd device. Run "sudo tail -f /var/log/messages" and then plug in the drive. The kernel messages will indicate the drive node and the partition nodes. The drive node will look like /dev/sdb. The first partition will look like /dev/sdb1. It might be sdc for the third drive, or sdd for the forth.

You could also run "sudo /sbin/fdisk -l" to list all of the drives and partitions. Or use the blkid program if you have it. This program will also list the UUID numbers and labels.

If your partition has the label "hidraw1", there may be a symlink /dev/disk/by-label/hidraw1 which points to the real device node.
getsum-sr@getsumsr-Inspiron-M5030:~$ sudo blkid
[sudo] password for getsum-sr:
/dev/sda1: UUID="24b7627b-7147-453d-b9df-72917a588e57" TYPE="ext4"
/dev/sda5: UUID="f4fcc7b6-cdb7-455b-8d73-3677a3f6af13" TYPE="swap"
/dev/sda6: UUID="bf99ec11-3a6e-4448-b2b4-1da1d174a688" TYPE="ext4"

thanks

when I mount to hidraw1 the pc "thinks" givees me a blinking square curser ..until I shut off the enclosure
in the middle of "thinking cursor" and I get device not found.


annother thing is when power is off device.. hidraw1 does not exist in /dev but when I power it on
it shows up

i dont know about links .i only know this file seems to be related to my device.

thanks

Last edited by escolom; 04-29-2012 at 04:40 AM.
 
Old 04-29-2012, 09:19 AM   #11
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
Quote:
Originally Posted by escolom View Post
jschiwal,

sudo tail -f /var/log/messages
tail: cannot open `/var/log/messages' for reading: No such file or directory

but i see where you are going...so i did..

dmesg |tail

[ 4050.116223] usb 1-3: new high-speed USB device number 7 using ehci_hcd
[ 4050.250397] usb 1-3: config 1 has an invalid interface number: 2 but max is 1
[ 4050.250408] usb 1-3: config 1 has no interface number 1
[ 4050.252644] scsi9 : usb-storage 1-3:1.0
[ 4050.254824] generic-usb 0003:04B4:6830.0006: hiddev0,hidraw0: USB HID v1.10 Device [Cypress AT2LP RC58] on usb-0000:00:12.2-3/input2


thanks
Based on this, the "hidraw0" component is being identified as a human interface device. (HID)
Does your hard drive enclosure have one of those instant backup buttons?
You might want to try using a different enclosure or a generic usb/pata interface cable if you can get your hands on one and see if that helps.
(unless you've successfully used this enclosure with a different hard drive)
 
Old 04-29-2012, 01:58 PM   #12
escolom
Member
 
Registered: Apr 2012
Location: San Francisco, cA
Distribution: Ubunto 12.04/Debian 7
Posts: 57

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by qlue View Post
Based on this, the "hidraw0" component is being identified as a human interface device. (HID)
Does your hard drive enclosure have one of those instant backup buttons?
You might want to try using a different enclosure or a generic usb/pata interface cable if you can get your hands on one and see if that helps.
(unless you've successfully used this enclosure with a different hard drive)
hi, no it doesnt have a backup button, yes thanks i will need to try another enclosure... yes this hd is a good one i used it in fedora bootup cd and it worked fine with the enclosure
human interface device? inteteresting...anyway to force it as a sd?

thanks for taking the time to help me
 
Old 04-30-2012, 03:02 PM   #13
escolom
Member
 
Registered: Apr 2012
Location: San Francisco, cA
Distribution: Ubunto 12.04/Debian 7
Posts: 57

Original Poster
Rep: Reputation: Disabled
Talking

Everyone,
should I just purchase a new enclosure?? I have tried looking around but everything seems to be windows for enclosures...unless
some of the manufactures don't want you to know it actually will work on linux. I figure I could
get one with additional usb ports to make it worth the money. I found this one I REALLY REALLY LIKE but Linux is not listed as an OS supported

Thanking everyone who tried to help me. Obviously, I think I am going to give up on making that enclosure work in ubunto 12.04...since Linux thinks its a mouse or keyboard I don't know what to do from here but I suspect purchasing a unix/linux friendly enclosure will do the trick. will be out some bones tho (cash).

Regards everyone.
 
Old 04-30-2012, 04:00 PM   #14
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,485

Rep: Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090
Quote:
Originally Posted by escolom View Post
Everyone,
should I just purchase a new enclosure?? I have tried looking around but everything seems to be windows for enclosures...unless
some of the manufactures don't want you to know it actually will work on linux.
I have used several different external enclosures, and have never found one that didn't work in Linux, despite whatever it says on the box. That's not to say there aren't some out there that won't work in Linux, I'm sure there are, but my experience is that most of them work just fine.
 
Old 04-30-2012, 04:20 PM   #15
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
I have one of these USB SATA/PATA adaptors that I use for data recovery and such when working on loose hard drives. It's no good for a permanent connection but ideal for testing and emergency data recovery!

Hardly any hardware is sold as Linux compatible but everything I've tried to date has worked. Most things, especially drives and usb/sata adaptors, work 'out the box'.
Some items do need you to load the usbserial module manually though! (like my 3G modem, but a single line in my /etc/modules/ file fixes that)
Some Chinese bluetooth adaptors are also known to use a faulty chipset that won't work with Linux. (they use custom drivers to 'correct' the problem on Windows)
But most things work flawlessly in my experience!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to mount an usb external westerndigital 160gb passport drive julian004 Linux - Newbie 3 04-18-2009 05:51 AM
I have a Rosewill external HDD enclosure that won't mount AFayer Linux - Hardware 1 03-12-2009 07:30 AM
Mount old laptop disk with coolmax USB enclosure. jagmarz Linux - Hardware 3 07-15-2008 05:24 PM
Can't mount coolmax HD-360 enclosure ivotron Linux - Hardware 2 07-02-2007 08:45 PM
Can't mount disk in firewire enclosure serefarikan Linux - Hardware 0 02-01-2005 10:58 AM


All times are GMT -5. The time now is 08:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration