still here and now this has turned into a learning thing for me also.
still here and now this has turned into a learning thing for me also.
Hi
update-initramfs and mkinitramfs are both scripts.
What they do is copy kernel modules, copy and run other scripts stored in other directories and hooks and a number of other things and then generate a compressed archive.
This archive is the initrd file that becomes the early root filing system.
From what you posted earlier it seems to be getting far enough to generate the cpio (this is the archive).Building cpio /boot/.....
The files are copied into the directory /tmp and the cpio archive is generated and then rename in your /boot directory.
From mkinitramfs
I'm wondering if something odd is happening around here for some reason.Code:[ "${verbose}" = y ] && echo "Building cpio ${outfile} initramfs" ( # work around lack of "set -o pipefail" for the following pipe: # cd "${DESTDIR}" && find . | cpio --quiet -R 0:0 -o -H newc | gzip >"${outfile}" || exit 1 exec 3>&1 eval ` # http://cfaj.freeshell.org/shell/cus-faq-2.html exec 4>&1 >&3 3>&- cd "${DESTDIR}" { find . 4>&-; echo "ec1=$?;" >&4 } | { cpio --quiet -R 0:0 -o -H newc 4>&-; echo "ec2=$?;" >&4 } | ${compress} >"${outfile}" echo "ec3=$?;" >&4 ` <snip> if [ -s "${__TMPCPIOGZ}" ]; then cat "${__TMPCPIOGZ}" >>"${outfile}" || exit 1 fi
Can you post the output of
Code:ls /tmp/mkinitramfs_*This second command will produce a file in your home directory called tmp.txt. Please post that as an attachment to your next post.Code:find /tmp/mkinitramfs_* ! -type d -exec ls -lh {} \; > ~/tmp.txt
Code:df -hCode:mountCode:which cpioCode:which lzmaCode:sudo du -csh /tmpand finallyCode:ls /var/lib/initramfs-tools
Let's see if we can work out what is going on.Code:ls /boot/initrd*
Can you explain exactly what you did here please.when i installed Lubuntu i had issues with mounting my harddrive and had to input a code to create the folder for it to beable to mount idk if their is any other folders i might happen to be missing wich might be the cause of all my woes
Kind regards
Last edited by matt_symes; April 6th, 2013 at 10:21 PM.
If you believe everything you read, you better not read. ~ Japanese Proverb
If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain
Thinking about becoming an Ubuntu Member?
k so heres the first part wich looks like a huge problem to me
Code:lubuntu@lubuntu:~$ ls /tmp/mkinitramfs_* ls: cannot access /tmp/mkinitramfs_*: No such file or directory lubuntu@lubuntu:~$ find /tmp/mkinitramfs_* ! -type d -exec ls -lh {} \; > ~/tmp.txt find: `/tmp/mkinitramfs_*': No such file or directory lubuntu@lubuntu:~$
Last edited by Darkishjace; April 6th, 2013 at 06:17 AM.
the answer to your question highlighted by my quote is i used the mkdir command to make media/lubuntu (i think that was the one) and it fixed my problem with being unable to load any of the other drives i had dvd/1tb harddrive and various flash drives
the drive i have my lubuntu operating system on is a 8gb kingston flashdrive
heres the second one
Code:lubuntu@lubuntu:~$ dh -h dh: No compatibility level specified in debian/compat dh: This package will soon FTBFS; time to fix it! Usage: dh [options] dh is a part of debhelper. See debhelper(7) and dh(1) for complete usage instructions. lubuntu@lubuntu:~$ mount /cow on / type overlayfs (rw) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type devtmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) /dev/sdb1 on /cdrom type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro) /dev/loop0 on /rofs type squashfs (ro,noatime) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) tmpfs on /tmp type tmpfs (rw,nosuid,nodev) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) none on /run/shm type tmpfs (rw,nosuid,nodev) none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) gvfsd-fuse on /run/user/lubuntu/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=lubuntu) /dev/sr0 on /media/lubuntu/WNDA3100v2 type iso9660 (ro,nosuid,nodev,uid=999,gid=999,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks2) /dev/sda1 on /media/lubuntu/1.0 TB Hard Disk type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096) lubuntu@lubuntu:~$ which cpio /bin/cpio lubuntu@lubuntu:~$ which lzma /usr/bin/lzma lubuntu@lubuntu:~$ sudo du -csh /tmp 16K /tmp 16K total lubuntu@lubuntu:~$ ls /var/lib/initramfs-tools 3.5.0-17-generic 3.5.0-26-generic lubuntu@lubuntu:~$ ls /boot/initrd* /boot/initrd.img-3.5.0-17-generic /boot/initrd.img-3.5.0-26-generic lubuntu@lubuntu:~$
now i have no clue exactly how to add a attachment to this forum matter but when i open with both abiword and leafpad
tmp.txt comes up empty i dont know if im using the wrong program to read it or if its supposed to be empty or if by chance nothing is writing in it
also that process that was running was hanging up until now till i accidentally clicked close tab instead of clicking copy to show the last line here
-.- i feel like an idiot
Last edited by Darkishjace; April 6th, 2013 at 06:42 AM.
Darkishjace; I am back.
This has progressed beyond my level of comprehension. I do not know what Matt is looking for exactly. But to ease your mind;
Those files do not exist either on my system and is the reason that tmp.txt is not written to.
lubuntu@lubuntu:~$ ls /tmp/mkinitramfs_*
ls: cannot access /tmp/mkinitramfs_*: No such file or directory
Await Matt's advise on if "mkinitramfs" files are removed upon completion of the scripts, or perhaps looking in the wrong directory ? IDK !
awaiting to learn
k and im also back
Never mind, my thought was miss directed, back to studying this situation.
u find wich the problem might infact be
Bookmarks