dd iso to usb stick - what filesystem is used?

This forum is dedicated to testing early releases and cauldron : Howtos, tips, tricks and user global feedback and thoughts...

Helpful tip :
For bugs tracking we use : https://bugs.mageia.org = The Mageia Bug Tracker
In this bug tracker you'll find already reported bugs and you'll be able to report those you have found....

dd iso to usb stick - what filesystem is used?

Postby bertaerts » Dec 23rd, '13, 23:24

Code: Select all
su
cd Mageia-4-beta2-LiveDVD-KDE4-x86_64-DVD
mount -o loop Mageia-4-beta2-LiveDVD-KDE4-x86_64-DVD.iso /mnt/iso
is a perfectly readable iso file.

Code: Select all
dd if=Mageia-4-beta2-LiveDVD-KDE4-x86_64-DVD.iso of=/dev/sde

makes a USB stick with a bootable and hidden partition.
What filesystem is used?
GParted says unknown file system
I can not mount the USB stick in KDE to have a look at the files.
How do I get access to the USB stick?
bertaerts
 
Posts: 181
Joined: Apr 6th, '11, 12:19

Re: dd iso to usb stick - what filesystem is used?

Postby Ken-Bergen » Dec 24th, '13, 03:11

diskdrake sees mine as a "Hidden HPFS/NTFS" partition but will not mount it without first formatting it.

Question is, why do you wish to mount it and look at the files in it?
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada

Re: dd iso to usb stick - what filesystem is used?

Postby lula » Dec 24th, '13, 11:22

You can mount the whole device, not the first partition, the system still sees it as an iso filesystem (e.g. mine is /dev/sdb)

Code: Select all
mount /dev/sdb /mnt/
mount | grep sdb
/dev/sdb on /mnt type iso9660 (ro,relatime)
lula
 
Posts: 12
Joined: Feb 10th, '12, 21:32

Re: dd iso to usb stick - what filesystem is used?

Postby doktor5000 » Dec 24th, '13, 11:34

Ken-Bergen wrote:Question is, why do you wish to mount it and look at the files in it?

Yep, as that can easily done via a loop mount as you showed already ...
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: dd iso to usb stick - what filesystem is used?

Postby jiml8 » Jan 7th, '14, 06:42

To mount a particular partition within an iso:

Find the partitions in the image:

Code: Select all
parted imagename.iso unit b print


Choose the desired partition and assign it to an available loop device:

Code: Select all
losetup -o<starting byte of partition from previous command> /dev/loopN imagename.iso


Then mount it:

Code: Select all
mount /dev/loopN mountpoint


Later, unmount it and release the loop device:

Code: Select all
umount mountpoint
losetup -d /dev/loopN
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09

Re: dd iso to usb stick - what filesystem is used?

Postby doktor5000 » Jan 7th, '14, 07:52

FWIW, first and second step can be combined via kpartx. kpartx -l to list partitions and kpartx -a to automatically create the loop devices.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: dd iso to usb stick - what filesystem is used?

Postby filip » Jan 7th, '14, 09:23

But it would still be read only?
filip
 
Posts: 478
Joined: May 4th, '11, 22:10
Location: Kranj, Slovenia

Re: dd iso to usb stick - what filesystem is used?

Postby doktor5000 » Jan 7th, '14, 20:42

Yep, if you want to modify the image contents, you need to mount it, copy the contents to a separate directory, do your modifications there and recreate the image.
For specific modifications there are apps like isomaster, but iso images in general (and in turn loopback mounts of those) are per definition readonly.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Testing : Alpha, Beta, RC and Cauldron

Who is online

Users browsing this forum: No registered users and 1 guest