LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What filesystem on images (https://www.linuxquestions.org/questions/linux-newbie-8/what-filesystem-on-images-375971/)

Grimmi- 10-23-2005 03:52 AM

What filesystem on images
 
Im not so sure about what filesystems different cd images have, is there a command line option that shows it, or is there some software to see it?

MasterC 10-23-2005 05:31 PM

Generally, F2 and F3 will show the different choices and options for kernels on a CD. I believe if they use Grub for their bootloader you can also hit [TAB] a few times to get a list of the available kernels.

Cool

Grimmi- 10-26-2005 09:12 AM

I think you understood me wrong, I was talking about bin and iso files, I know ISO images use iso9330 (or something like that) so I was wondering what other images use

aaa 10-26-2005 09:21 AM

What other cd images? The iso9660 is the dominant format for all cds. If you are talking about bin and nero files then many of them are either just iso files with a different name or iso files with some extra stuff attached. I think some bin images are of the former type.

Dtsazza 10-26-2005 09:28 AM

The different image formats are just various ways of representing the sequence of bits that make up a disc. As such, images don't have a file system because they're not concerned about files and directories, all they're concerned about is lots of 0s and 1s. Whatever image format you use, you'll get the exact same output once it's burnt/mounted/used in some other way.

As for what the filesystem is - (nearly) all CDs use the ISO 9660 filesystem, with or without various extensions (Rock Ridge - allows long filenames and symlinks; Joliet - allows Unicode filenames). It is technically possibly to put any filesystem you like (e.g. ext2) onto a CD, but the resulting CD wouldn't be readable by any operating systems other than Linux, and I can't think of any reason you'd want to do this asides from curiousity. It's a safe bet that any CD you get hold of that you didn't write yourself has the ISO 9660 filesystem. If you really want to know what extensions are used, it may be stored in the CD-info (I don't know offhand, and can't check at work) which you can get at with the following code (thanks to TLDP):
Code:

#! /bin/bash

RD=/dev/cdrom
for i in 32768,7  32776,32 32808,32 32958,128 33086,128 33214,128 \
        33342,128 33470,32 33581,16 33598,16  33615,16  33632,16
do
    old_IFS="$IFS"
    IFS=","
    set -- $i
    IFS="$old_IFS"
    OFFSET=$1
    LENGTH=$2
    echo "*`dd if=$RD bs=1 skip=$OFFSET count=$LENGTH  2> /dev/null`#"
done

HTH,
Andrzej


All times are GMT -5. The time now is 02:28 PM.