Page 5 of 8 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 80

Thread: How do i change permissions for initramfs.conf

  1. #41
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: How do i change permissions for initramfs.conf

    still here and now this has turned into a learning thing for me also.
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  2. #42
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: How do i change permissions for initramfs.conf

    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.

    Building cpio /boot/.....
    From what you posted earlier it seems to be getting far enough to generate the cpio (this is the archive).

    The files are copied into the directory /tmp and the cpio archive is generated and then rename in your /boot directory.

    From mkinitramfs

    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
    I'm wondering if something odd is happening around here for some reason.

    Can you post the output of

    Code:
    ls /tmp/mkinitramfs_*
    Code:
    find /tmp/mkinitramfs_* ! -type d -exec ls -lh {} \; > ~/tmp.txt
    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:
    df -h
    Code:
    mount
    Code:
    which cpio
    Code:
    which lzma
    Code:
    sudo du -csh /tmp
    Code:
    ls /var/lib/initramfs-tools
    and finally

    Code:
    ls /boot/initrd*
    Let's see if we can work out what is going on.

    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
    Can you explain exactly what you did here please.

    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?

  3. #43
    Join Date
    Mar 2013
    Beans
    57
    Distro
    Lubuntu

    Re: How do i change permissions for initramfs.conf

    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.

  4. #44
    Join Date
    Mar 2013
    Beans
    57
    Distro
    Lubuntu

    Re: How do i change permissions for initramfs.conf

    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

  5. #45
    Join Date
    Mar 2013
    Beans
    57
    Distro
    Lubuntu

    Re: How do i change permissions for initramfs.conf

    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:~$

  6. #46
    Join Date
    Mar 2013
    Beans
    57
    Distro
    Lubuntu

    Re: How do i change permissions for initramfs.conf

    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.

  7. #47
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: How do i change permissions for initramfs.conf

    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;

    lubuntu@lubuntu:~$ ls /tmp/mkinitramfs_*
    ls: cannot access /tmp/mkinitramfs_*: No such file or directory
    Those files do not exist either on my system and is the reason that tmp.txt is not written to.
    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
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  8. #48
    Join Date
    Mar 2013
    Beans
    57
    Distro
    Lubuntu

    Re: How do i change permissions for initramfs.conf

    k and im also back

  9. #49
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: How do i change permissions for initramfs.conf

    Never mind, my thought was miss directed, back to studying this situation.
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  10. #50
    Join Date
    Mar 2013
    Beans
    57
    Distro
    Lubuntu

    Re: How do i change permissions for initramfs.conf

    u find wich the problem might infact be

Page 5 of 8 FirstFirst ... 34567 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •