LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-30-2006, 09:28 PM   #1
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 821

Rep: Reputation: 258Reputation: 258Reputation: 258
How to disable partition table detection for disks?


I'm using the "dmraid" and device-mapper in Linux version 2.6.17 to support my Promise RAID array. Everything works fine, with the exception of one minor annoying error during boot. Since the partition tables on the hard disks are actually RAID metadata, Linux complains about the partition table being invalid for devices "sda", "sdb", "sdc" and "sdd". So far as I can tell that causes no harm, but the error message is annoying. When I run "dmraid" it recognizes the metadata and correctly sets up the RAID volume in "/dev/mapper".

I've looked at the kernel parameters and SCSI hard disk driver parameters and can find no mention at all about any way to disable the kernel or driver trying to detect a partition table. In this case, I know the partition table will never look valid, and no partitions need to be created. Is this something that I need to disable by editing the driver source, or is there an option for the kernel or SCSI disk driver to disable that.

Any suggestions would be appreciated.
 
Old 08-30-2006, 10:11 PM   #2
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 821

Original Poster
Rep: Reputation: 258Reputation: 258Reputation: 258
Partition detection mechanism

Well, I found out that Linux now uses the number of minor device IDs for a block device to determine if it should check for partitions. Most block devices seem to have that hard coded.

If the number of minors is 1 then Linux doesn't check for partitions. That's because one minor ID is used to reference the entire disk device, and the rest are used for partitions. If the number of minors is greater than 1 then Linux does check for partitions.

The SCSI disk driver handles many of the SATA controllers like the one I have. The SCSI disk driver "sd.c" has the number of minor devices hard coded to 16, so it will always check for partitions on every SATA disk or SCSI disk.

Now that detection of partitions has been moved from each individual driver into a central module, it would be helpful to have a kernel option to disable partition detection on named disk devices. It's possible to disable probing, but I'm assuming that will prevent the disk drive from being detected by the driver at all.

In my case, I can patch the SCSI disk driver to disable support of partitions, but I think I'm just going to ignore the error.

Last edited by Erik_FL; 08-30-2006 at 10:14 PM.
 
  


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
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 11:04 AM
Disable EFI partition table. aje Slackware 3 01-31-2005 03:01 PM
how to disable sata detection ? Karlsonas Linux - Hardware 2 10-05-2004 03:25 PM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM
Disable floppy detection on boot? magicvash Mandriva 0 11-18-2003 12:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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