LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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
 
Thread Tools
Old 12-09-2004, 05:10 PM   #1
netstv
Member
 
Registered: May 2004
Location: Martinez, CA
Distribution: Fedora Core 2
Posts: 35
Thanked: 0
/proc/partitions showing wrong partitions


[Log in to get rid of this advertisement]
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
netstv is offline     Reply With Quote
Old 07-10-2006, 02:11 PM   #2
samnoble
LQ Newbie
 
Registered: Jul 2006
Posts: 1
Thanked: 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.
samnoble is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
/proc/partitions does not exist Impaler Linux - Software 5 12-10-2008 11:54 PM
/proc/partitions disk usage Fippy Linux - General 4 07-25-2008 10:17 AM
NTFS partitions not showing up in Mepis anymore AquaInferno MEPIS 5 09-08-2005 03:34 AM
Not showing window partitions utsav_verma Fedora - Installation 2 04-10-2004 02:34 PM
/proc/partitions sighini Linux - General 0 11-17-2003 04:32 AM


All times are GMT -5. The time now is 05:27 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration