LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-01-2008, 03:39 PM   #1
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Rep: Reputation: 30
How to mount IDE HDD [Solved]


I have an IDE HDD and I bought an IDE to USB adapter. I connected the connector to the HDD and plugged it into my USB port, and I plugged the power in as well, but when I try to mount it, it gives me an error:
Quote:
mount: /dev/sdb: can't read superblock
dmesg | tail:
Code:
~$ dmesg | tail
[437202.031193] usb-storage: device scan complete
[437202.032235] scsi 7:0:0:0: Direct-Access                                    PQ: 0 ANSI: 2 CCS
[437202.047126] sd 7:0:0:0: [sdb] Attached SCSI disk
[437202.047222] sd 7:0:0:0: Attached scsi generic sg2 type 0
[437251.944530] FAT: unable to read boot sector
[154323.320484] RPC: Registered udp transport module.
[154323.320490] RPC: Registered tcp transport module.
[437651.011347] FAT: unable to read boot sector

Last edited by SentralOrigin; 10-01-2008 at 07:13 PM.
 
Old 10-01-2008, 03:44 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Is this a brand new drive? That message is probably from automount. When you plug the device in automount tries to automatically mount the device and cannot if the drive has not been partitioned and formatted yet. When you get the message you should reply ignore or something similar. Then log in as root and partition and format the drive.

----------------
Steve Stites

Last edited by jailbait; 10-01-2008 at 03:46 PM.
 
Old 10-01-2008, 03:45 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Those errors look like it didn't detect any usable drive connected to the adapter. Check the Master/Slave jumper on the drive. Some IDE drives need to be set as Master even if there is no Slave, and others need the jumpers removed if they are single-Master.
 
Old 10-01-2008, 03:49 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
you are trying to mount the device not a partition..

typically you would mount /dev/sdb1 but it looks as though the partition table might be corrupt on the drive.

Is there data on the drive you wish to access ? or could you repartition and reformat the drive ?



I have also run into IDE to USB adapters that didn't work very well and provided similar results to what you are experiencing. so it could be related to the adapter as well. I purchased an expensive enclosure a while back, and it failed miserably in both Windows and Linux.

amazingly enough, this el-cheapo adapter works great for Windows and Linux at times I just want to hook up a IDE or SATA drive to a USB port to grab some data. http://www.inland-products.com/singl...&partnum=08412


So there are a couple things you need to look at.
Is the drive OK ? does it work when connected ot an actual IDE cable ?
Is your Adapter functioning properly ? or is it a paperweight like the first one I purchased ...

Last edited by farslayer; 10-01-2008 at 03:52 PM.
 
Old 10-01-2008, 03:58 PM   #5
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
This is not a new drive. I just brought it from my friend's house and it worked fine on his computer before I took it home.

How do I check Master/Slave jumper on the drive?

ls -a /dev/hd* and sd*:
Code:
$ ls -a /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sda5  /dev/sdb

$ ls -a /dev/hd*
ls: cannot access /dev/hd*: No such file or directory
/dev/sdb appears when I plug in my drive, but my HDD makes no noises at all even when I put my ear close to it.

I do want to access data from the drive. It's formatted with NTFS.

The adapter I have is a Vantec SATA/IDE to USB.

Any suggestions?
 
Old 10-01-2008, 04:03 PM   #6
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Is the power supply good? Is there another one you could test with?

The drive should be humming and should feel like it is spinning if it is running properly.
 
Old 10-01-2008, 04:15 PM   #7
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
Code:
$ sudo mount -t ntfs /dev/sdb /mount1/
Failed to read bootsector (size=0)
Failed to mount '/dev/sdb': Invalid argument
The device '/dev/sdb' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?
Code:
$ sudo fdisk /dev/sdb

Unable to read /dev/sdb
Code:
$ dmesg
[439866.653800] usb 4-3: new high speed USB device using ehci_hcd and address 11
[439866.787900] usb 4-3: configuration #1 chosen from 1 choice
[155216.806112] scsi10 : SCSI emulation for USB Mass Storage devices
[155216.817994] usb-storage: device found at 11
[155216.818000] usb-storage: waiting for device to settle before scanning
[439872.294135] usb-storage: device scan complete
[439872.295158] scsi 10:0:0:0: Direct-Access                                    PQ: 0 ANSI: 2 CCS
[439872.310090] sd 10:0:0:0: [sdb] Attached SCSI disk
[439872.310184] sd 10:0:0:0: Attached scsi generic sg2 type 0
 
Old 10-01-2008, 04:19 PM   #8
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You won't be able to mount anything until you figure out why the drive isn't spinning. This isn't a software problem.
 
Old 10-01-2008, 04:28 PM   #9
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
You want to use
Quote:
Originally Posted by SentralOrigin View Post
Code:
$ sudo mount -t ntfs /dev/sdb1 /mount1
Note the device is "/dev/sdb1" (first partition).
 
Old 10-01-2008, 06:51 PM   #10
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
actually you would want to use ntfs-3g to mount it, rather than ntfs.

But there still appears to be a possible hardware issue or the usb-storage modules are not being loaded.

lsmod | grep usb
 
Old 10-01-2008, 07:13 PM   #11
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
I solved the problem...I forgot to plug in the power supply cord...
 
Old 10-01-2008, 07:28 PM   #12
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
should have used a smaller font. I can still read that ;p

Well you won't forget to check that again will ya
 
  


Reply



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
Cannot have a IDE HDD and SATA HDD together when using FC6 RivalSlayer Linux - Hardware 3 12-19-2006 03:03 AM
Installing ATA/IDE HDD on SATA HDD System Drahcir Linux - Hardware 10 05-31-2006 02:32 AM
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 09:50 PM
move linux from IDE HDD to SATA HDD markmalcolm Linux - Hardware 2 05-07-2005 02:24 AM
Dual HDD Interface Problem, Linux on SATA, NTFS Part on IDE HDD LILO Not Loading Blade44 Linux - Hardware 2 02-01-2005 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:18 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
Open Source Consulting | Domain Registration