LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2004, 04:13 AM   #1
spiritwing
LQ Newbie
 
Registered: Dec 2003
Distribution: Debian
Posts: 26

Rep: Reputation: 15
Unhappy Lilo Problem, Google no help!!!


Hello All,

I just compiled a couple of kernels (2.4.23 & 2.6.0) on my Debian Knoppix (2.3) and lilo failed. This apparently doesn't have anything to do with those kernels as lilo also fails with my backup copy (before the compile). Here is the error that lilo gives:

root@bamfopix:/etc# lilo
Warning: '/proc/partitions' does not match '/dev' directory structure.
Name change: '/dev/hdk' -> '/dev/hdk'
Fatal: open /dev/hdk: No such file or directory
root@bamfopix:/etc#

This is so weird. I searched google for answers and did not find much info. The first and last line of the output was seen often but it was about the devfs kernel option/module (of which I am not using) and what is this about "Name change: '/dev/hdk' -> '/dev/hdk'"? I don't see a change in the name do you? the typical thing that people were seeing on google was similar to:

Name Change: /dev/ide/host0/bus0/target0/lun0/disc --> /dev/hda



Any insight?


Cheers,
Silas Bennett

=0)
 
Old 01-05-2004, 04:31 AM   #2
spiritwing
LQ Newbie
 
Registered: Dec 2003
Distribution: Debian
Posts: 26

Original Poster
Rep: Reputation: 15
Hi again All,

A bit more poking around and I think I now know what the problem is, although I do not yet know the solution.

My Mobo has 2 ide controlers and a built-in promise raid controller with 2 ide controlers. I also have a promise TX2 Ultra 133 pci ide controler card in my system to get my 180GB HD to see more than 137GB of storage. All together my system has 6 ide controllers (that is 12 possible drives) but /dev/hd? only shows the following devices:

/dev/hda /dev/hdb /dev/hdc /dev/hdd /dev/hde /dev/hdf /dev/hdg /dev/hdh

I have drive with a couple of M$ OS's on hda, hdb is not used, hdc & hdd have a cdrw & and a dvd respectivly, hde hdf & hdh are not used, and I have the 180GB with linux OS's on hdg.

I have 2 more (60GB) drives on the promise raid controller that show up in /proc/partitions as hdi and hdk, but those devices are not found under /dev. I know that there is some way to create these devices, but I haven't a clue how?

Help? insights? RTFM's followed by a link to the M?

Cheers,
Silas Bennett


=0)
 
Old 01-05-2004, 07:59 PM   #3
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
I think you're looking for the mknod command to create the missing devices.

See man mknod.

Lyle
 
Old 01-06-2004, 12:22 AM   #4
indeterminate
Member
 
Registered: Oct 2003
Location: Virginia, US
Distribution: Debian, Ubuntu, Knoppix.
Posts: 76

Rep: Reputation: 17
And to supplement the mknod man page, I would guess that you want to create a block file, (with major, minor numbers similar to the other drives?). The major, minor numbers for the other drives can be seen with an ls -l /dev/hd*. I think they should be the numbers between the group owner and the date.
 
Old 01-06-2004, 12:38 AM   #5
spiritwing
LQ Newbie
 
Registered: Dec 2003
Distribution: Debian
Posts: 26

Original Poster
Rep: Reputation: 15
Hello All,

Thanks for the replys,

For anyone who has this same problem and reads this in the archives:

Similar to mknod, I found a script (it may be Debian specific, not sure though, check Google) called MAKEDEV (yes all uppercase) that doen't make you read through the kernel source to find out what major minor you are supposed to use with mknod.

# note the second line is important I didn't do this first time round
#and it made a bunch of block devices in my home directory.

su
cd /dev
MAKEDEV -v hdi
MAKEDEV -v hdj
MAKEDEV -v hdk
MAKEDEV -v hdl


That did the trick, lilo ran without a hitch. Unfortunatly my kernels wouldn't boot, but that is a Knoppix specific problem that I have delt with before and just need to remember how to solve it. I think it has something to do with cramfs, as the Knoppix kernel compiles everything possible as modules (including filesystem support). The bugger is when you have it installed to the HD and compile a new kernel for your HD installed distro, something is screwy (this is the part I forgot), and the system can't mount the root partition. Of course I just went off topic, but what the hey, I thought that by typing this out I might remember how to fix it. Oh well it will come to me soon.


Cheers,
Silas Bennett


=0)
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between www.google.com/linux and www.google.com dr_zayus69 General 4 01-12-2005 02:45 PM
Lilo vs Grub - PROBLEM with lilo nelsonnery Linux - Software 2 09-09-2004 11:09 AM
newbie, problem installing google bar for Mozilla vladi Linux - Software 8 08-23-2003 08:46 PM
LiLo Installation problem ?and (GNOME and KDE problem) hitesh_linux Linux - Software 1 01-01-2002 04:56 AM
Problem with Lilo not updating (yes I ran lilo after changing the conf) webguy Linux - General 2 06-24-2001 07:12 PM

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

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