SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Everything seems to be good. I did full installation of Slackware 12.2 including kernel sources and modules. New system is on /dev/sda1 device and uses ReiserFS. I prepared appropriate intrd and LILO configuration.
After reboot I select linux.generic kernel and boot procedures stop at the message:
Code:
Freeing unused kernel memory: 328k freed
No kernel modules found for Linux 2.6.27.7-smp.
Trying to resume from /dev/sda8
PM: Starting manual resume from disk
mount: mounting /dev/root on /mnt failed: No such device
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
You can try to fix it. Type 'exit' when thing are done.
/bin/sh: can't access tty; job control turned off
/ $
I suppose I overlooked some trivial step but I can't figure what's this. In Slackware 12.1 I prepared generic kernel with initrd without problems. In Slackware 12.2 I'm unable to do it.
Any help will be appreciated.
***
Just in case I attach a few additional information...
The 12.1 README.mkinitrd file was much better than the current one regarding the initrd examples.
The example given on the 12.2 one never worked for me.
I fiddled a bit with the same issue, and what I think fixed it was editing the file "/boot/initrd-tree/rootdev", changing the text to (in my case) "/dev/hda1", then run the command "mkinitrd" (without anything else) and finally re-run lilo.
There is also an upgraded package of mkinitrd available since some days back. You might want to upgrade and try all over again.
I started from the beginning and I shortened mkinitrd command:
Code:
mkinitrd -c -k 2.6.27.7-smp -m reiserfs
Boot procedure looks now better but there is the problem with /dev/root:
Code:
Freeing unused kernel memory: 328k freed
initrd.gz: Loading kernel modules from initrd image:
Using /lib/modules/2.6.27.7-smp/kernel/fs/reiserfs/reiserfs.ko
mount: mounting /dev/root on /mnt failed: No such file or directory
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
You can try to fix it. Type 'exit' when thing are done.
/bin/sh: can't access tty; job control turned off
/ $
***
I suppose jannekrille has right. In rootdev file there is inscription:
Code:
/dev/root
so I need change it to:
Code:
/dev/sda1
***
I write now from Slackware 12.1. I can't chroot to /mnt/sda1 directory.
# chroot /mnt/sda1
Code:
chroot: cannot run command `/bin/bash': Permission denied
Maybe it isn't a reason to start new thread so I ask why chroot displays such message and doesn't change the shell?
Other commands produce similar messages:
# chroot /mnt/sda1 /bin/pwd
Code:
chroot: cannot run command `/bin/pwd': Permission denied
***
And now I go to Slackware 12.2 to check jannekrille's hint...
When I install and configure new system I don't establish Internet connections from it. At the end of the configuration I backup the system and then connect to Internet for the first time to check if there are some new patches. I want to be completely sure that my backup isn't compromised. It's my paranoid method of installing and configuring the system.
It's nice that mkinitrd was patched so fast but it's nice also to know that hack with rootdev invented by jannekrille.
Thank you, jannekrille. Handshake if you're boy or kiss if you're girl. Your choice...
I think I go for the handshake
That /dev/root- stuff was just a lucky shot I got when I had the same problem as you. You know, every dog has it's day...
About your /bin/bash-issue, did you set up a login shell for your user? It's easy to forget, but easy to fix in "KUser".
This is easy to fix, just as brianl has already said, run the command above but add -r /dev/xxx substituting your root device e.g. mkinitrd -c -k 2.6.27.7-smp -m reiserfs -r /dev/hda1
Yeah, this must make my editing obsolete. This seems faster than the way I did it. I guess w1k0 will have to shake some more hands today.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.