LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-09-2004, 04:10 PM   #1
netstv
Member
 
Registered: May 2004
Location: Martinez, CA
Distribution: Ubuntu
Posts: 38

Rep: Reputation: 15
/proc/partitions showing wrong partitions


2.6.9 kernel.
Grub boot loader.

System boots fine, but when I cat /proc/partitions it only shows:

22 0 hdc


When you do an /sbin/sfdisk -l /dev/hdc it shows:

/dev/hdc1
/dev/hdc2
/dev/hdc3
/dev/hdc4

with all the other stuff sfdisk shows about cyl, head, sect.. etc..., I just didn't want to type it in.....

The problem. I try to mount /dev/hdc2 i get no such device or address.

Thinking that maybe the /dev/hdc2 wasn't there, but nope.. it's there.

So I think what my problem is has to do with kernel not seeing the paritition table right or something like that.

Any ideas on how to debug this would be great!!!

Thanks

netstv
 
Old 07-10-2006, 01:11 PM   #2
samnoble
LQ Newbie
 
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
Obviously this is ancient, but google pulled it up when I had this problem last week. So I'll put this here for the next sap.

Possible cause:
In my case the machines these disks were in were part of a managed cluster, an ugly script was mdadm -C 'ing a raid0 array on each boot. I don't know that this caused the problem, but I've never seen this problem anywhere else, and I've never seen another set-up that recreated the same raid array so often. :shrug:

Symptom:
Userspace seems mostly happy, believing the partitions exist. (fdisk behaves as described by OP, and will happily delete and recreate partitions.)
Kernel appears unaware of partions. /proc/partitions shows main device but no partitions, per the OP's description. blockdev, mount, raidstart report:
/dev/hdc1: No such device or address

Ugly data destroying solution:
I got these drives working again by overwriting the boot record and the first several hundred MB's with zeros:
$ dd if=/dev/zero of=/dev/hdc
(I killed this process after 3 or 4 minutes, you could certainly be more precise if it pleases you, eg:
$ dd if=/dev/zero of=/dev/hdc bs=1024 count=300 or some such.)

After that, I of course needed to repartition the disk, as it's part tables were nicely wiped clean. But at least the disk was usable again.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
/proc/partitions does not exist Impaler Linux - Software 5 12-10-2008 10:54 PM
/proc/partitions disk usage Fippy Linux - General 4 07-25-2008 09:17 AM
NTFS partitions not showing up in Mepis anymore AquaInferno MEPIS 5 09-08-2005 02:34 AM
Not showing window partitions utsav_verma Fedora - Installation 2 04-10-2004 01:34 PM
/proc/partitions sighini Linux - General 0 11-17-2003 03:32 AM


All times are GMT -5. The time now is 12:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration