Wrong major or minor number

Hi folks. i tried to partition hda from my brain remembering some thing around 4 partitions. wrote part. table from results that gpart told me. tried to mount. error occurs "wrong major or minor number" what does that tell me? cannot even mount hda1 or hda2 (1 used to be dos, 2 was linux main partition) Must be the sign the partition table is bad. Maybe a geometry problem, ... how can i get access to hda1 (former dos) and hda2 (type 82) partitions to evacuate my data? Olli

* Oliver Ob (ob_ok@gmx.net) [020328 09:38]:
error occurs "wrong major or minor number"
what does that tell me?
Probably that the major/minor numbers are wrong for some reason. /dev/hda should be 3,0, hda1 3,1, hda2 3,2, etc. -- -ckm

Christopher Mahmood schrieb:
* Oliver Ob (ob_ok@gmx.net) [020328 09:38]:
error occurs "wrong major or minor number"
what does that tell me?
Probably that the major/minor numbers are wrong for some reason. /dev/hda should be 3,0, hda1 3,1, hda2 3,2, etc.
--
-ckm
thanks christopher. But how can I repair this and get access back to the partitions? -- *º¤., ¸¸,.¤º*¨¨¨*¤ =Oliver@home= *º¤., ¸¸,.¤º*¨¨*¤ I http://www.bmw-roadster.de/Friends/Olli/olli.html I I http://www.bmw-roadster.de/Friends/friends.html I I http://groups.yahoo.com/group/VGAP-93 I I http://home.t-online.de/home/spacecraft.portal I
Telek0ma iBBMS - soon back online +49.4503.TRSi1/TRSi2 <<<

* Oliver Ob (ob_ok@gmx.net) [020329 15:04]:
thanks christopher. But how can I repair this and get access back to the partitions?
with mknod...now that I think about it I doubt this is problem. You can check with 'ls -l /dev/hda*' though. What does fdisk -l /dev/hda say about the disk? -- -ckm

The wrong major and minor numbers have to do with drivers. It appears that you might not even have the IDE support in your kernel. eg. the Major number generally selects the driver and the minor number is passed into that driver as an argument. (actually both are). You can rename /dev/hda1 to /dev/fubar, and it still should work. On 28 Mar 2002 at 18:38, Oliver Ob wrote:
Hi folks.
i tried to partition hda from my brain remembering some thing around 4 partitions.
wrote part. table from results that gpart told me.
tried to mount.
error occurs "wrong major or minor number"
what does that tell me?
cannot even mount hda1 or hda2 (1 used to be dos, 2 was linux main partition)
Must be the sign the partition table is bad. Maybe a geometry problem, ...
how can i get access to hda1 (former dos) and hda2 (type 82) partitions to evacuate my data?
Olli
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
-- Jerry Feldman Portfolio Partner Engineering 508-467-4315 http://www.testdrive.compaq.com/linux/ Compaq Computer Corp. 200 Forest Street MRO1-3/F1 Marlboro, Ma. 01752

Jerry Feldman schrieb:
The wrong major and minor numbers have to do with drivers. It appears that you might not even have the IDE support in your kernel. eg. the Major number generally selects the driver and the minor number is passed into that driver as an argument. (actually both are). You can rename /dev/hda1 to /dev/fubar, and it still should work.
On 28 Mar 2002 at 18:38, Oliver Ob wrote:
Hi folks.
i tried to partition hda from my brain remembering some thing around 4 partitions.
wrote part. table from results that gpart told me.
tried to mount.
error occurs "wrong major or minor number"
what does that tell me?
cannot even mount hda1 or hda2 (1 used to be dos, 2 was linux main partition)
Must be the sign the partition table is bad. Maybe a geometry problem, ...
how can i get access to hda1 (former dos) and hda2 (type 82) partitions to evacuate my data?
Olli
do not know what you mean jerry, i use a standard suse kernel, so i have ide inside. how can i get access to that drive now? -- *º¤., ¸¸,.¤º*¨¨¨*¤ =Oliver@home= *º¤., ¸¸,.¤º*¨¨*¤ I http://www.bmw-roadster.de/Friends/Olli/olli.html I I http://www.bmw-roadster.de/Friends/friends.html I I http://groups.yahoo.com/group/VGAP-93 I I http://home.t-online.de/home/spacecraft.portal I
Telek0ma iBBMS - soon back online +49.4503.TRSi1/TRSi2 <<<

The only things I can think of at the moment: 1. Somehow the device number got changed: On my system /dev/hda is major 3. The minor numbers correspond to the partition. 2. You are running a kernel which does not have IDE built into the kernel. 3. Somehow your partition table was altered. First, how are you booting? Is SuSE on another drive or partition? Usually, when I suspect partition corruption, the first thing I do is to run Partition Magic (which is a commercial product that runs under Windows and standalone). You can use YaST2 partition tool to view the partitions. You should see /dev/hda with a size and type, /dev/hda1 type FAT or MS-DOS, and /dev/hda2 Linux Native. Or you can run fdisk, which is a command line utility. If the partitioner is able to see those partitions and they are labeled correctly then you should be able to mount them: as root: mount -t ms-dos /dev/hda1 /mnt or mount /dev/hda2 /mnt In the past, I have been able to boot the SuSE installation CD, then once you get the first menu, use a virtual terminal (eg. ctl-alt-f3) and try to mount the partitions on your ram disk. Also, make sure that your IDE drive itself is online, check the cabling. /dev/hda - Primary IDE Master /dev/hdb - Primary IDE Slave /dev/hdc - Secondary IDE Master /dev/hdd - Secondary Slave On my system I have had my primary master go to sleep (as the result of a failing power supply). On 30 Mar 2002 at 0:03, Oliver Ob wrote:
do not know what you mean jerry, i use a standard suse kernel, so i have ide inside.
how can i get access to that drive now?
-- Jerry Feldman Portfolio Partner Engineering 508-467-4315 http://www.testdrive.compaq.com/linux/ Compaq Computer Corp. 200 Forest Street MRO1-3/F1 Marlboro, Ma. 01752

Jerry Feldman schrieb:
The only things I can think of at the moment: 1. Somehow the device number got changed: 3. Somehow your partition table was altered.
yes. the entire part. table is wiped and gone! i have one or two physical bugs on that hd. but i need my data on the partitions (which are yet there) back.
First, how are you booting? Is SuSE on another drive or partition? it was, on hda2 i now boot from cd since the whole part table is gone.
Usually, when I suspect partition corruption, the first thing I do is to I ran gpart and afterwards fdisk to edit the partitions to what gpart gave me. but i cannot mount them. thats why i opened this thread. it says "see topic"
If the partitioner is able to see those partitions and they are labeled correctly then you should be able to mount them: as root: mount -t ms-dos /dev/hda1 /mnt or mount /dev/hda2 /mnt
On my system I have had my primary master go to sleep (as the result of a failing power supply). that was the reason why i came across the two bugs on the hd which caused all this trouble.
keep my learning! -- *º¤., ¸¸,.¤º*¨¨¨*¤ =Oliver@home= *º¤., ¸¸,.¤º*¨¨*¤ I http://www.bmw-roadster.de/Friends/Olli/olli.html I I http://www.bmw-roadster.de/Friends/friends.html I I http://groups.yahoo.com/group/VGAP-93 I I http://home.t-online.de/home/spacecraft.portal I
Telek0ma iBBMS - soon back online +49.4503.TRSi1/TRSi2 <<<
participants (3)
-
Christopher Mahmood
-
Jerry Feldman
-
Oliver Ob