LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2015, 05:13 AM   #1
mendologist
LQ Newbie
 
Registered: Nov 2013
Location: Dorset
Distribution: OS/4 & Puppy
Posts: 3

Rep: Reputation: Disabled
How do I identify the distro on a cd, DVD or USB drive without booting it?


I have a number of USB Memory Sticks and some CD/DVDs with either Live or Installed Distros on. If I plug them in which File/Folder do I look at to identify the Distro and Version etc without having to boot them.
 
Old 11-25-2015, 05:20 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
/etc - most of the time it should be pretty obvious which file(s) to cat. But varies by distro.
 
Old 11-25-2015, 06:27 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Searching /etc would be true for an installed distribution but not necessarily for a live version. There could be a readme file that contains the distribution/version. For some it isn't obvious by just mounting the drive/CD and looking at the contents.
 
Old 11-25-2015, 01:54 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
cat /etc/*issue /etc/*release

but with many .isos it does not help, because there's no /etc directory.

you really have to look at the / files & directories; usually there's some sort of README.
 
1 members found this post helpful.
Old 11-25-2015, 03:01 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Often the filesystem label in the ISO will tell you. You can use the file command to see it.
Code:
$ file some_random.iso 
some_random.iso: ISO 9660 CD-ROM filesystem data 'CentOS_6.6_Final' (bootable)
(I deliberately gave the file a non-descriptive name just to demonstrate.)

For a physical disk in a drive, use "file -s /dev/cdrom" (or whatever device name is appropriate).

Last edited by rknichols; 11-25-2015 at 03:04 PM.
 
1 members found this post helpful.
Old 11-25-2015, 07:21 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Most live distributions use a squashfs image for their filesystem, so if the advice given above doesn't work just install squashfs-tools and mount the image, the look for /etc/os-release (virtually any distribution nowadays has tat file).
 
1 members found this post helpful.
Old 11-26-2015, 04:51 AM   #7
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
Same problem. That's what we get for keeping lots of installation DVDs without properly labeling them.

What I did was to mount the ISO files temporarily, then handpicked files which appear to be informational text files.

Sample from the Centos7 minimal iso:
Code:
EULA
isolinux/isolinux.cfg
.treeinfo
 
  


Reply



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
How to identify port number of USB drive? vipulmahajan Linux - Newbie 5 03-20-2012 01:29 AM
How to identify port number of USB drive? vipulmahajan Linux - General 1 03-19-2012 10:12 AM
How to identify device descriptor for usb ntfs ext hard drive? bbneo Linux - Desktop 8 12-15-2009 10:10 AM
identify usb drive timl Red Hat 1 08-07-2009 03:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:15 PM.

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