problems with mk_initrd, alsa, suse 7.3
really breaking things tonight! i'd gotten the updated mk_initrd that supposedly allows ext3 on / with 7.3, but ext3 even after doing the proper magic on the partitions and /etc/fstab, would not work. looking in the ext3 mailing list archives, i find that there is good reason not to use ext3 with the 2.4.10 kernel anyway. fine -- i upgraded to 2.4.16 and the new modutils. sought to run /sbin/mk_initrd in honor of the new kernel, and got this: bash: /sbin/mk_initrd: bad interpreter: permission denied i did not know what to make of this, but /sbin/lilo ran satisfactorily after i'd confirmed that the kernel was in /boot. rebooted. got a number of errors about usb modules not being found, which is not at the moment a killer. boot was successful, x started just fine, but now sound, which was alsa, finally working, was finally working no more. thinking that i might have gotten a corrupted download of the repaired mk_initrd, i downloaded and installed it again, to the same result. so it seems that the 2.4.16 rpm is not all that i need. this is all genuine suse stuff -- didn't go out freelancing for dat ol' debbil source code or anything. so. first -- any ideas as to the mk_initrd problem? second -- if i get the official suse 7.3 srpm for the alsa stuff and do a straight rebuild, am i likely to get a working version? will i need to install the kernel source for 2.4.16 as well, or will the build get whatever it wants from the kernel? thanks in advance for advice here -- this is all kind of surprising. -- dep There is sobbing of the strong, And a pall upon the land; But the People in their weeping Bare the iron hand; Beware the People weeping When they bare the iron hand.
On Friday 11 January 2002 02.37, dep wrote:
bash: /sbin/mk_initrd: bad interpreter: permission denied
This is really odd. The interpreter of mk_initrd is /bin/bash, but since you're using it as your shell I'm guessing you can execute it. Is the file system your /bin is on mounted noexec, perhaps?
so. first -- any ideas as to the mk_initrd problem? second -- if i get the official suse 7.3 srpm for the alsa stuff and do a straight rebuild, am i likely to get a working version? will i need to install the kernel source for 2.4.16 as well, or will the build get whatever it wants from the kernel?
Since alsa is kernel modules you will need the kernel sources. But when I installed 2.4.16, the alsa modules were already in it. Strange that yours weren't. Did you get any errors about mounting file systems at all when you booted? regards Anders
On Thursday 10 January 2002 20:53, Anders Johansson wrote: | On Friday 11 January 2002 02.37, dep wrote: | > bash: /sbin/mk_initrd: bad interpreter: permission denied | | This is really odd. The interpreter of mk_initrd is /bin/bash, but | since you're using it as your shell I'm guessing you can execute | it. Is the file system your /bin is on mounted noexec, perhaps? <red face> no. what i did was even stupider and even more obvious. it didn't have the execute bit set, and was still owned by dep/users. i was trying to execute a text file. after fixing this, it ran, though it dies on "no such module: pcmcia" which is a little puzzling, in that as i was running it, i was also downloading the kernel source via a pcmcia nic. upon reboot, everything seemed to load just fine, though i got news that it was not possible to run fsck on my root partition because it was not mounted read-only. pcmcia loaded just fine, but still no sound, though the alsa module did seem to load okay, and hwinfo reports that it's there -- as does the kde info page. but no sound. thanks, sorry for the bother over my really crass stupidity, and any idea as to what the business about / not being fsck-able means would be appreciated -- you don't suppose that that's the change in the mk_initrd, so that ext3 could be run on the / partition, do you? /etc/fstab looks fine, everything still ext2. -- dep There is sobbing of the strong, And a pall upon the land; But the People in their weeping Bare the iron hand; Beware the People weeping When they bare the iron hand.
On Friday 11 January 2002 03.48, dep wrote:
idea as to what the business about / not being fsck-able means would be appreciated -- you don't suppose that that's the change in the mk_initrd, so that ext3 could be run on the / partition, do you? /etc/fstab looks fine, everything still ext2.
No, I don't think the new mk_initrd has anything to do with it. Looking at the script /etc/rc.d/boot (I assume you have suse's default. I haven't looked at what other dists do) it tries to do a mount -o remount,ro /, and if that fails you get the error you talk about. So for some reason it can't be remounted read only. Though why that is needs detective work. One thought that occurs to me is that some process has been started that holds / so it can't be remounted. I have a faint recollection from several dists ago that / was usually ro,defaults in /etc/fstab so fsck can run, but I could be wrong about this. Maybe (and I'm just guessing here) SuSE rewrote the scripts to get a nicer fstab, and something's not working. It could be some other reason why it can't remount, but without access to your system all I can do is guess. regards Anders
On Thursday 10 January 2002 21:48, i wrote: | reboot, everything seemed to load just fine, though i got news that | it was not possible to run fsck on my root partition because it was | not mounted read-only. okay, this *is* weird -- i looked at /etc/lilo.conf, and it had boot=/dev/hda2, which is also the root partition, and which ought to have been /dev/hda. i know for a fact that it *was* /dev/hda, because it has fscked on reboot in the past. and i had not edited lilo.conf. i have now, changing it back to /dev/hda, and of course the error about the mount problem is gone, too. still no sound, though. -- dep There is sobbing of the strong, And a pall upon the land; But the People in their weeping Bare the iron hand; Beware the People weeping When they bare the iron hand.
On Friday 11 January 2002 04.35, dep wrote:
On Thursday 10 January 2002 21:48, i wrote: | reboot, everything seemed to load just fine, though i got news that | it was not possible to run fsck on my root partition because it was | not mounted read-only.
okay, this *is* weird -- i looked at /etc/lilo.conf, and it had boot=/dev/hda2, which is also the root partition, and which ought to have been /dev/hda. i know for a fact that it *was* /dev/hda, because it has fscked on reboot in the past. and i had not edited lilo.conf. i have now, changing it back to /dev/hda, and of course the error about the mount problem is gone, too.
I really doubt these two events are related. boot=/dev/hda means that lilo is installed on the boot record of the master on the first ide, while boot=/dev/hda2 means it's installed on the second partition of that disk. It really has nothing to do with the installed system that I can see. And see my other mail about why the error message is printed //Anders
On Friday 11 January 2002 04.46, Anders Johansson wrote:
It really has nothing to do with the installed system that I can see.
except that it is of course using the old boot record with the now invalid system map. OK, ignore that comment. I need to get some sleep //Anders
On Thursday 10 January 2002 22:48, Anders Johansson wrote: | except that it is of course using the old boot record with the now | invalid system map. OK, ignore that comment. | | I need to get some sleep first, thanks for your help. it's pretty well straightened out now. second, i *do* have sound, intermittently. the volume was very low, but by use of alsamixer and the utility that stores the sound, i was able to get something i could only barely hear -- nowhere near where it was with the earlier kernel, etc.; the kde sound settings remain the same. and the sound literally comes and goes. odd. third, i need some sleep, too -- i just found something on which rms and i profoundly agree.<g> -- dep There is sobbing of the strong, And a pall upon the land; But the People in their weeping Bare the iron hand; Beware the People weeping When they bare the iron hand.
participants (2)
-
Anders Johansson
-
dep