LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-24-2016, 07:34 AM   #1
mkp
Member
 
Registered: Jul 2008
Posts: 57

Rep: Reputation: 15
Drive not appear in /dev


Hi,

I have a problem with one new hdd attached to Gentoo box. It's connected to Adaptec 1220sa with another drive. Both are new and 2tb size but only one is visible. Both are shown in kernel logs, one is /dev/sdd, other is /dev/sde but when try fdisk /dev/sde i've got error "Unable to open /dev/sde". If i check /proc/partitions it's there.

Code:
test linux-3.6 # cat /proc/partitions
major minor  #blocks  name

   8        0  234431064 sda
   8        1     112640 sda1
   8        2   40163328 sda2
   8        3  194153472 sda3
   8       16 1953514584 sdb
   8       32 1953514584 sdc
   8       48 1953514584 sdd
   8       64 1953514584 sde
  11        0    1048575 sr0
   9        0 1953514496 md0
How to find what i miss?

Thanks.
 
Old 11-24-2016, 08:19 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Is this drive formatted as GPT? If so, fdisk won't work on it. You will need either gdisk or parted/gparted.
 
Old 11-24-2016, 08:27 AM   #3
mkp
Member
 
Registered: Jul 2008
Posts: 57

Original Poster
Rep: Reputation: 15
Hi,

No, it's a new drive from store.
 
Old 11-24-2016, 08:56 AM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Check the system log for sde to see if it is the drive or some artifact of the RAID controller you are using. In general you will get better performance and reliability from software RAID than from fake RAID.
 
Old 11-24-2016, 09:04 AM   #5
mkp
Member
 
Registered: Jul 2008
Posts: 57

Original Poster
Rep: Reputation: 15
Hi,

Yes, in the log /dev/sde appear. And yes, i'll make soft raid if i find drive in /dev.

Thanks.
 
Old 11-24-2016, 09:39 AM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Is this drive formatted as GPT? If so, fdisk won't work on it. You will need either gdisk or parted/gparted.
Gentoo fdisk works with GPT, has been working for a few years now.
 
Old 11-24-2016, 11:13 AM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by mkp View Post
Hi,

Yes, in the log /dev/sde appear. And yes, i'll make soft raid if i find drive in /dev.

Thanks.
I think that controller may be a POS. Have you tried disconnecting the working drive and see if the other drive is picked up by controller? I had once one of those two-port controllers and it could not handle 2 drives at the same time, although was supposed to be "RAID".
 
Old 11-24-2016, 07:11 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
If it's a new drive from the store, there's a good chance it's formatted NTFS. Do you have NTFS-3G installed?

I doubt that explains why fdisk doesn't see it, so this is purely a shot in the dark.

Last edited by frankbell; 11-24-2016 at 07:14 PM.
 
Old 11-25-2016, 05:16 PM   #9
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 264

Rep: Reputation: 58
Does SMART tool see the disk? (You need to have smartmontools installed and have root permissions.)
Code:
smartctl -a -q noserial /dev/sde
 
Old 11-26-2016, 01:06 AM   #10
mkp
Member
 
Registered: Jul 2008
Posts: 57

Original Poster
Rep: Reputation: 15
Hi,

Emerson, i tried change or disconnect drives but without success.
Seasons, your code return:

Code:
Smartctl open device: /dev/sde failed: No such device
The drive is visible only in logs and if i run lshw:

Code:
*-disk UNCLAIMED
       description: ATA Disk
       product: WDC WD20EFRX-68E
       vendor: Western Digital
       physical id: 0.0.0
       bus info: scsi@5:0.0.0
       version: 82.0
       serial: WD-WCC4M2JL0FCJ
       configuration: ansiversion=5
Before that Adaptec, i tried asm1061 controler .. the result was the same. The problem is that i have only 4 sata ports on motherboard and 5 drives. Is there something in the kernel config which i miss? It's not possible to have limitation of connected drives.
 
Old 11-26-2016, 04:55 AM   #11
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 264

Rep: Reputation: 58
If possible, I would suggest using a jumper on the drive(s) to force SATA 3.0Gbps since the Adaptec 1220sa does not support SATA 6.0Gpbs.
Theoretically, the drive should detect that the controller does not support SATA 6.0Gbps and automatically fall back to 3.0Gbps, but that doesn't always work in practice.
 
Old 11-28-2016, 02:23 AM   #12
mkp
Member
 
Registered: Jul 2008
Posts: 57

Original Poster
Rep: Reputation: 15
Hi,

Seasons, but there is 2 drives and one of them is visible, other isn't. If i rotate sata cable, the result is the same.

Thanks.
 
Old 11-28-2016, 07:03 AM   #13
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 264

Rep: Reputation: 58
Quote:
Originally Posted by mkp View Post
If i rotate sata cable, the result is the same.
That's not what I suggested. Jumper pins 5 and 6 on the drives to force SATA 3.0Gbps mode
http://support.wdc.com/knowledgebase...atadesktopjump
 
Old 11-29-2016, 01:23 AM   #14
mkp
Member
 
Registered: Jul 2008
Posts: 57

Original Poster
Rep: Reputation: 15
Hi,

seasons, i have full backup on that server. Today i tested it in VM machine. I'm add 5 virtual drives and surprise ... gentoo box see only 4 drives exactly as real server. Why my gentoo see only 4 drives? It was old installation with kernel 2.4.20 which i replace with 3.6. What i miss? How i see, the problem is not in an adaptec.

Thanks.

p.p. It was so simple.

Code:
cd /dev , MAKEDEV sdX
That's all. Now i see all my drives and made soft raid1.

Last edited by mkp; 11-29-2016 at 04:26 AM.
 
Old 11-29-2016, 04:50 AM   #15
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
>[totally NOT any hardware issue; 2.4/3.6 kernel didn't matter] But same .iso [?]
Maybe there's something [badly customized] in udev. Need to dig up more 'clues'!
"When the 'impossible' appears to be happening, it probably isn't [happening]!"
Any clues in any logs? Sanity check (post): ls -l /dev/sd?
How about trying a new 'pure' gentoo vm: http://www.osboxes.org/gentoo ?
Best wishes... we'll swat this bug if it's the last thing we do
 
  


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
[SOLVED] /dev/tape /dev/sg0 /dev/st0 problems w/ scsi tape drive hubiedo Linux - General 1 10-18-2010 11:04 AM
How To Clone Single Drive To Raid 1+0 (copy /dev/sde to /dev/md0)? alfista Linux - Server 2 03-17-2008 10:26 PM
How To Clone Single Drive To Raid 1+0 (copy /dev/sde to /dev/md0)? alfista Linux - Server 2 03-13-2008 04:17 AM
using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? lugoteehalt Linux - Software 3 10-24-2007 10:27 AM
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 07:11 PM

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

All times are GMT -5. The time now is 11:47 PM.

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