LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-21-2023, 11:29 PM   #1
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528

Rep: Reputation: 167Reputation: 167
mkinitramfs creates 770MB file that only extracts to 64KB


Anyone else have a problem with the LFS section on creating an initrd? Me and a friend tried the mkinitramfs from
About initramfs

When we ran it, we wound up with a 770Mb file. When we extracted it with cpio, it only extracted about 64K bytes. We
tried a few times and the results were consistent.

It only contained a few files, related to microcode (I don't have access to his computer right now so I can't be
more specific).

I added 'set -ev' to the script and watch it run to completion.

I looked through the script but couldn't see where the problem is.

I looked at the /tmp work directory and that only contained about 64K of data.

Fortunately we were still able to boot the system because we had built nvme and ext4 support into the kernel.
 
  


Reply

Tags
boot, mkinitramfs, mkinitrd



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
Linux servers has the block size limited to 64KB j0289776 Linux - Server 5 12-26-2013 09:56 PM
making dynamic memory as 64kB aligned in C lang skaushal_lk Programming 3 08-17-2010 07:23 AM
LXer: Piracy creates jobs, FOSS creates opportunities LXer Syndicated Linux News 0 11-02-2006 11:33 AM
LXer: Exploit 64KB Page Support with DB2 Enterprise 9 LXer Syndicated Linux News 0 06-22-2006 04:54 PM
linux program that extracts .rar file santasballz Linux - Software 2 03-12-2004 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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