LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-19-2009, 01:56 AM   #1
LightUnsigned
LQ Newbie
 
Registered: May 2009
Posts: 6

Rep: Reputation: 0
Partition not showing under /dev


I have been having some weird issues with one of my hard drives. It's a SATA drive, with a single partition, and is part of a RAID-5 array.

The drive itself shows up fine in /dev (its /dev/sdd). However, its ext3 partition (/dev/sdd1) does not show up under /dev at all. Running "fdisk /dev/sdd" and looking at the partition table shows:

Code:
Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf2567fad

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1      121601   976760032   83  Linux
So the partition is indeed there.

Deleting the partition, re-creating the partition and rewriting the partition table makes it show up in /dev as /dev/sdd1. However, as soon as I reboot, it is gone again.

What could be causing this? Is there a way to force linux to (perhaps rescan/repopulate) /dev?

I am using Arch Linux with kernel 2.6.30 if thats any help
 
Old 09-19-2009, 11:14 PM   #2
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
If the drive /dev/sdd is part of an array, you shouldn't need any partitions on it. The RAID will take care of it. You should not be interacting with it's partitions or data directly. You should be working with the virtual disk instead. If this is Linux software raid, you need to manage it with mdadm and the device /dev/md0.
 
Old 09-19-2009, 11:26 PM   #3
LightUnsigned
LQ Newbie
 
Registered: May 2009
Posts: 6

Original Poster
Rep: Reputation: 0
My RAID device (/dev/md0) is supposed to be made up of /sdb/sdb1 /dev/sdc1 and /dev/sdd1 (this worked fine when /dev/sdd1 was recognised by the system)

Code:
[root@bourbon ~]# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] 
md0 : active raid5 sdb1[0] sdc1[1]
      1953519872 blocks level 5, 64k chunk, algorithm 2 [3/2] [UU_]
      
unused devices: <none>
my ARRAY line in /etc/mdadm.conf shows:
Code:
ARRAY /dev/md0 level=raid5 num-devices=3 metadata=0.90 spares=1 UUID=5d4e8f42:5d294e29:f05cfb20:afc38780
In order to re-add /dev/sdd1 to the array, it needs to be recognised by the system. For some reason it isnt
 
Old 09-19-2009, 11:51 PM   #4
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
First of all, if you were using the full drive, you did not need to create partitions on them b4 creating the RAID array. You should have just used the raw empty disks.

With your current setup, you will need to create a partition on the disk, changed it's type to 'fd' (linux raid auto) then add it back into the array. Remember to run partprobe to refresh the kernel.

Last edited by ongte; 09-19-2009 at 11:52 PM.
 
Old 09-20-2009, 02:29 AM   #5
LightUnsigned
LQ Newbie
 
Registered: May 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Ok, I did that and it showed up in /dev right away. I added the disk back into the array and its rebuilding now.

Once its done, I'll restart and see if it comes back up properly

Thanks for your help
 
  


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
dd if=/dev/sda1 of=dev/sdb3 turns a 10gig partition into a 130gig partition ? zonemikel Linux - Hardware 4 09-12-2009 05:53 PM
/dev/md0 not showing after reboot tflarsen Fedora 2 05-30-2008 03:07 AM
Travan/Seagate tape drive not showing up in /dev btalton Linux - Hardware 2 01-02-2007 11:49 PM
fat32 drive not showing up in /dev downbound010 Linux - Hardware 1 12-30-2005 09:23 AM
10.2 with 2.6 kernel still showing all devices on /dev mirto Slackware 6 09-25-2005 05:15 AM

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

All times are GMT -5. The time now is 11:56 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