View previous topic :: View next topic |
Author |
Message |
eliszka n00b

Joined: 13 Nov 2007 Posts: 13 Location: Colorado, USA
|
Posted: Mon May 14, 2012 10:22 pm Post subject: early userspace mounting (initramfs) fsck not found [SOLVED] |
|
|
Hi - I have a couple of systems with a separate /usr and lately noticed a new Early Userspace Mounting wiki http://wiki.gentoo.org/wiki/Early_Userspace_Mounting
that describes what I wanted. I was able to follow this wiki on my desktop with no problems at all, but the same procedure will not work on my laptop.
My /usr on both systems in ext3, so I added the following to /usr/src/initramfs/initramfs_list:
file /sbin/fsck.ext3 /sbin/fsck.ext3 755 0 0
just above the ext4 line, so I have this:
file /sbin/fsck /sbin/fsck 755 0 0
file /sbin/fsck.ext3 /sbin/fsck.ext3 755 0 0
file /sbin/fsck.ext4 /sbin/fsck.ext4 755 0 0
Both the desktop and laptop are running 3.2.12.
When I boot the laptop trying to use the initrd.cpio.gz that I created, I get "/sbin/fsck: not found" and am dropped to a shell.
Within that shell, everything under /sbin (and possibly elsewhere) is a link, except for /sbin/fsck, /sbin/fsck.ext3 and /sbin/fsck.ext4.
I can see those files with ls, but when I try to run them from with the rescue shell I also get "not found".
I've repeated the process a few times in case I missed something but to no avail.
The main differences I guess between the 2 systems is that the desktop is 32 bit, the laptop 64 bit and I'm sure there are differences
in the kernel options but I'm not sure what to look for.
I'd appreciate any insight if anyone else has followed this wiki and run into similar problems and I'll keep looking on my own.
Thanks.
Last edited by eliszka on Tue May 15, 2012 4:08 pm; edited 1 time in total |
|
Back to top |
|
 |
eliszka n00b

Joined: 13 Nov 2007 Posts: 13 Location: Colorado, USA
|
Posted: Tue May 15, 2012 2:59 am Post subject: |
|
|
I was able to figure this one out on my own
/lib is a link to /lib64 on my 64-bit laptop, so looks like although links are followed within /lib or /lib64 when the initramfs is created, the link from /lib to /lib64 is not followed.
added the following lines to /usr/src/linitramfs/initramfs_list:
dir /lib64 755 0 0
file /lib64/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2 755 0 0
and changed /lib/ to /lib64/ in the rest of the libraries file list.
then re-created the initramfs, and now all is well. |
|
Back to top |
|
 |
alexey.kuznecov n00b

Joined: 26 Jun 2012 Posts: 1
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|