Rabu, 30 Maret 2016

Bristol Digest, Vol 639, Issue 5

Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk

To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk

You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."


Today's Topics:

1. Re: Module Queries (was Grub2 and Fedora 23) (Peter Hemmings)
2. Re: Module Queries (was Grub2 and Fedora 23) (Steve King)
3. Re: Module Queries (was Grub2 and Fedora 23) (Peter Hemmings)
4. Re: Module Queries (was Grub2 and Fedora 23) (David Smith)
5. Re: Module Queries (was Grub2 and Fedora 23) (Steve King)


----------------------------------------------------------------------

Message: 1
Date: Tue, 29 Mar 2016 19:29:46 +0100
From: Peter Hemmings <peternsomerset@virginmedia.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Module Queries (was Grub2 and Fedora 23)
Message-ID: <56FAC99A.80506@virginmedia.com>
Content-Type: text/plain; charset=windows-1252; format=flowed



On 29/03/16 18:32, Steve King wrote:
> I don't know what fc uses. Is it squashfs?

Sorry I am not sure, its beyond my knowledge!

These are the only images in my PC:

initramfs-0-rescue-aab955f59da14e449cf5c1fee4b9f8a9.img
initramfs-4.4.3-300.fc23.x86_64.img
initramfs-4.4.4-301.fc23.x86_64.img
initramfs-4.4.6-300.fc23.x86_64.img
initrd-plymouth.img

[peter@study-localdomain ~]$ locate *.img
/backup/backupAug2015/Downloads/DG834Gv3_V4.01.42/DG834Gv3_V4.01.42.img
/backup/backupAug2015/Garmin/gmapsup1.img
/boot/initramfs-0-rescue-aab955f59da14e449cf5c1fee4b9f8a9.img
/boot/initramfs-4.4.3-300.fc23.x86_64.img
/boot/initramfs-4.4.4-301.fc23.x86_64.img
/boot/initramfs-4.4.6-300.fc23.x86_64.img
/boot/initrd-plymouth.img
/boot/grub2/i386-pc/boot.img
/boot/grub2/i386-pc/core.img
/home/peter/Downloads/2016-02-09-raspbian-jessie.img
/home/peter/Downloads/from-sd-card.img
/home/peter/Downloads/motioneyeos-raspberrypi2-20151206.img
/home/peter/Downloads/motionpie-raspberrypi2-20150719.img
/home/peter/Downloads/DG834Gv3_V4.01.42/DG834Gv3_V4.01.42.img
/home/peter/garmin/gmapsup1.img
/usr/lib/firmware/RTL8192E/boot.img
/usr/lib/firmware/RTL8192E/data.img
/usr/lib/firmware/RTL8192E/main.img
/usr/lib/grub/i386-pc/boot.img
/usr/lib/grub/i386-pc/boot_hybrid.img
/usr/lib/grub/i386-pc/cdboot.img
/usr/lib/grub/i386-pc/diskboot.img
/usr/lib/grub/i386-pc/kernel.img
/usr/lib/grub/i386-pc/lnxboot.img
/usr/lib/grub/i386-pc/lzma_decompress.img
/usr/lib/grub/i386-pc/pxeboot.img
/usr/share/fedora-productimg/product.img
/usr/share/gnome-boxes/unattended/disk.img
[peter@study-localdomain ~]$

>
> What does file say it is?

!?

>
> --
> Steve
>
> Sent from my phone


Not much help.

--
Peter H



------------------------------

Message: 2
Date: Wed, 30 Mar 2016 10:04:32 +0100
From: "Steve King" <debian@invux.com>
To: "Bristol and Bath Linux User Group" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Module Queries (was Grub2 and Fedora 23)
Message-ID:
<cf90d7ea32e92f5f274edae2463a434e.squirrel@dazzle.invux.com>
Content-Type: text/plain;charset=iso-8859-1


>
>
> On 29/03/16 18:32, Steve King wrote:
>> I don't know what fc uses. Is it squashfs?
>
> Sorry I am not sure, its beyond my knowledge!
>
> These are the only images in my PC:
>
> initramfs-0-rescue-aab955f59da14e449cf5c1fee4b9f8a9.img
> initramfs-4.4.3-300.fc23.x86_64.img
> initramfs-4.4.4-301.fc23.x86_64.img
> initramfs-4.4.6-300.fc23.x86_64.img
> initrd-plymouth.img

Well,


FC 23 seems to use the same format as debian: (gzipped cpio archive)

# mkdir /tmp/foo
# cd /tmp/foo
# gzip -d < /boot/initramfs-4.4.6-300.fc23.x86_64.img | cpio --extract
60527 blocks
# ls
bin dev etc init lib lib64 proc root run sbin shutdown sys
sysroot tmp usr var

>
> [peter@study-localdomain ~]$ locate *.img
> /backup/backupAug2015/Downloads/DG834Gv3_V4.01.42/DG834Gv3_V4.01.42.img
> /backup/backupAug2015/Garmin/gmapsup1.img
> /boot/initramfs-0-rescue-aab955f59da14e449cf5c1fee4b9f8a9.img
> /boot/initramfs-4.4.3-300.fc23.x86_64.img
> /boot/initramfs-4.4.4-301.fc23.x86_64.img
> /boot/initramfs-4.4.6-300.fc23.x86_64.img
> /boot/initrd-plymouth.img
> /boot/grub2/i386-pc/boot.img
> /boot/grub2/i386-pc/core.img
> /home/peter/Downloads/2016-02-09-raspbian-jessie.img
> /home/peter/Downloads/from-sd-card.img
> /home/peter/Downloads/motioneyeos-raspberrypi2-20151206.img
> /home/peter/Downloads/motionpie-raspberrypi2-20150719.img
> /home/peter/Downloads/DG834Gv3_V4.01.42/DG834Gv3_V4.01.42.img
> /home/peter/garmin/gmapsup1.img
> /usr/lib/firmware/RTL8192E/boot.img
> /usr/lib/firmware/RTL8192E/data.img
> /usr/lib/firmware/RTL8192E/main.img
> /usr/lib/grub/i386-pc/boot.img
> /usr/lib/grub/i386-pc/boot_hybrid.img
> /usr/lib/grub/i386-pc/cdboot.img
> /usr/lib/grub/i386-pc/diskboot.img
> /usr/lib/grub/i386-pc/kernel.img
> /usr/lib/grub/i386-pc/lnxboot.img
> /usr/lib/grub/i386-pc/lzma_decompress.img
> /usr/lib/grub/i386-pc/pxeboot.img
> /usr/share/fedora-productimg/product.img
> /usr/share/gnome-boxes/unattended/disk.img
> [peter@study-localdomain ~]$
>
>>
>> What does file say it is?
>
> !?
>

file:
$ which file
/usr/bin/file

$ man file
FILE(1) BSD General Commands Manual
FILE(1)

NAME
file ? determine file type

SYNOPSIS
file [-bchiklLNnprsvz0] [--apple] [--mime-encoding] [--mime-type]
[-e testname] [-F separator] [-f namefile] [-m magicfiles]
[-P name=value] file ...
file -C [-m magicfiles]
file [--help]

DESCRIPTION
This manual page documents version 5.11 of the file command.

file tests each argument in an attempt to classify it. There are three
sets of tests, performed in this order: filesystem tests, magic tests,
and language tests. The first test that succeeds causes the file
type to
be printed.
...

$ file /boot/initrd.img-3.16.0-4-amd64
/boot/initrd.img-3.16.0-4-amd64: gzip compressed data, last modified: Fri
Mar 4 10:06:57 2016, from Unix

~$ gzip -d < /boot/initrd.img-3.16.0-4-amd64 | file -
/dev/stdin: ASCII cpio archive (SVR4 with no CRC)

Can be useful to identify a file of unknown type....

>>
>> --
>> Steve
>>
>> Sent from my phone
>
>
> Not much help.
>
> --
> Peter H
>

--
Steve




------------------------------

Message: 3
Date: Wed, 30 Mar 2016 10:46:34 +0100
From: Peter Hemmings <peternsomerset@virginmedia.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Module Queries (was Grub2 and Fedora 23)
Message-ID: <56FBA07A.3080103@virginmedia.com>
Content-Type: text/plain; charset=windows-1252; format=flowed



On 30/03/16 10:04, Steve King wrote:
>
>>



>
>
> FC 23 seems to use the same format as debian: (gzipped cpio archive)
>
> # mkdir /tmp/foo
> # cd /tmp/foo
> # gzip -d < /boot/initramfs-4.4.6-300.fc23.x86_64.img | cpio --extract
> 60527 blocks
> # ls
> bin dev etc init lib lib64 proc root run sbin shutdown sys
> sysroot tmp usr var
>

>
> $ man file
> FILE(1) BSD General Commands Manual
> FILE(1)
>
> NAME
> file ? determine file type
>
> SYNOPSIS
> file [-bchiklLNnprsvz0] [--apple] [--mime-encoding] [--mime-type]
> [-e testname] [-F separator] [-f namefile] [-m magicfiles]
> [-P name=value] file ...
> file -C [-m magicfiles]
> file [--help]
>
> DESCRIPTION
> This manual page documents version 5.11 of the file command.
>
> file tests each argument in an attempt to classify it. There are three
> sets of tests, performed in this order: filesystem tests, magic tests,
> and language tests. The first test that succeeds causes the file
> type to
> be printed.
> ...
>
> $ file /boot/initrd.img-3.16.0-4-amd64
> /boot/initrd.img-3.16.0-4-amd64: gzip compressed data, last modified: Fri
> Mar 4 10:06:57 2016, from Unix
>
> ~$ gzip -d < /boot/initrd.img-3.16.0-4-amd64 | file -
> /dev/stdin: ASCII cpio archive (SVR4 with no CRC)

Mine is the same

but:

[root@study-localdomain ~]# mkdir /temp/foo
mkdir: cannot create directory ?/temp/foo?: No such file or directory
[root@study-localdomain ~]# mkdir /tmp/foo
[root@study-localdomain ~]# cd /tmp/foo
[root@study-localdomain foo]# gzip -d <
/boot/initramfs-4.4.6-300.fc23.x86_64.img | cpio --extract 60527 blocks

gzip: stdin: not in gzip format
cpio: premature end of archive


>
> Can be useful to identify a file of unknown type....
>
Yep

Regards

--
Peter H



------------------------------

Message: 4
Date: Wed, 30 Mar 2016 10:09:53 +0000
From: David Smith <David.Smith@imgtec.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Module Queries (was Grub2 and Fedora 23)
Message-ID:
<15A9D35B5490FC49AC0524AE3A085F082CA13B0E@BRMAIL01.br.imgtec.org>
Content-Type: text/plain; charset="us-ascii"

> -----Original Message-----
> From: Bristol [mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Peter Hemmings
> Mine is the same
>
> but:
>
> [root@study-localdomain ~]# mkdir /temp/foo
> mkdir: cannot create directory '/temp/foo': No such file or directory
> [root@study-localdomain ~]# mkdir /tmp/foo [root@study-localdomain ~]#
> cd /tmp/foo [root@study-localdomain foo]# gzip -d < /boot/initramfs-4.4.6-
> 300.fc23.x86_64.img | cpio --extract 60527 blocks
>
> gzip: stdin: not in gzip format
> cpio: premature end of archive

And if you run "file" on the image file directly without running it through gzip first?

i.e.

file /boot/initramfs-4.4.6-300.fc23.x86_64.img

?

Note also that you shouldn't have the "60527 blocks" on the end of the command you've quoted - that's the output of the command when Steve ran it. It should just be "cpio --extract". However, that's not the cause of your error.



------------------------------

Message: 5
Date: Wed, 30 Mar 2016 11:09:57 +0100
From: "Steve King" <debian@invux.com>
To: "Bristol and Bath Linux User Group" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Module Queries (was Grub2 and Fedora 23)
Message-ID:
<580e5add8888e9cfc74bfa8678daf9ae.squirrel@dazzle.invux.com>
Content-Type: text/plain;charset=iso-8859-1

>
> Mine is the same
>
> but:
>
> [root@study-localdomain ~]# mkdir /temp/foo
> mkdir: cannot create directory ?/temp/foo?: No such file or directory
> [root@study-localdomain ~]# mkdir /tmp/foo
> [root@study-localdomain ~]# cd /tmp/foo
> [root@study-localdomain foo]# gzip -d <
> /boot/initramfs-4.4.6-300.fc23.x86_64.img | cpio --extract 60527 blocks
>
> gzip: stdin: not in gzip format
> cpio: premature end of archive
>

What does:
file /boot/initramfs-4.4.6-300.fc23.x86_64.img
say?

--
Steve




------------------------------

Subject: Digest Footer

_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol

------------------------------

End of Bristol Digest, Vol 639, Issue 5
***************************************

Tidak ada komentar:

Posting Komentar