[ABANDON] My experiences writing an ISO to USB stick -- Help!

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
AscLinux
Level 4
Level 4
Posts: 342
Joined: Sat Oct 29, 2016 3:32 pm

Re: My experiences writing an ISO to USB stick -- Help!

Post by AscLinux »

Labels are applied to filesystems, not partitions.
User avatar
austin.texas
Level 20
Level 20
Posts: 12047
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: My experiences writing an ISO to USB stick -- Help!

Post by austin.texas »

markfilipak wrote:I ran 'fdisk -l' just to make sure that my USB stick is still '/dev/sdb' and got this:

Code: Select all

Disk /dev/sdb: 14.5 GiB, 15512174592 bytes, 30297216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x43694d2e

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1  *        0 3316223 3316224  1.6G  0 Empty
/dev/sdb2       87152   91887    4736  2.3M ef EFI (FAT-12/16/32)
Note for /dev/sdb2, Type = EFI (FAT-12/16/32). The computer is not EFI, but I'm getting tired of arguing that, so I won't.
What is your point there? I don't know what that USB drive has been used for or what you intend to do with it. It certainly does not look like anything useful.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
User avatar
austin.texas
Level 20
Level 20
Posts: 12047
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: My experiences writing an ISO to USB stick -- Help!

Post by austin.texas »

AscLinux wrote:Labels are applied to filesystems, not partitions.
True. Thank you for the correction. If a partition does not have a filesystem, you can't apply any Label.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
markfilipak
Level 5
Level 5
Posts: 936
Joined: Sun Mar 10, 2013 8:08 pm
Location: Ohio (formerly California), USA

Re: My experiences writing an ISO to USB stick -- Help!

Post by markfilipak »

austin.texas wrote:
markfilipak wrote:

Code: Select all

mark-Lenovo-V570 mark # tune2fs -L 16GB_USBstk /dev/sdb
tune2fs 1.42.13 (17-May-2015)
tune2fs: Bad magic number in super-block while trying to open /dev/sdb
Couldn't find valid filesystem superblock.
mark-Lenovo-V570 mark # 
What do you make of that? ...Thanks for the help.
Why did you try to apply a Label to the drive? (sdb)
Labels are applied to partitions - like sdb1

Code: Select all

mark-Lenovo-V570 mark # tune2fs -L 16GB_USBstk /dev/sdb1
tune2fs 1.42.13 (17-May-2015)
tune2fs: Bad magic number in super-block while trying to open /dev/sdb1
Couldn't find valid filesystem superblock.
mark-Lenovo-V570 mark # 
User avatar
austin.texas
Level 20
Level 20
Posts: 12047
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: My experiences writing an ISO to USB stick -- Help!

Post by austin.texas »

Please post the result of

Code: Select all

lsblk -f
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
markfilipak
Level 5
Level 5
Posts: 936
Joined: Sun Mar 10, 2013 8:08 pm
Location: Ohio (formerly California), USA

Re: My experiences writing an ISO to USB stick -- Help!

Post by markfilipak »

austin.texas wrote:Please post the result of

Code: Select all

lsblk -f

Code: Select all

mark-Lenovo-V570 mark # lsblk -f
NAME   FSTYPE  LABEL           UUID                                   MOUNTPOINT
sda                                                                   
├─sda1 vfat                    28C3-6073                              /boot/efi
├─sda2 ext2                    0d0ef13c-228d-4fcb-a65a-a6c7f3d50924   /boot
└─sda3 LVM2_me                 pPm7IY-YCw2-YR0j-Qisa-kR1D-PonV-IW3Wdp 
  ├─mint--vg-root
  │    ext4                    bbc20518-3767-4011-9b5b-5eaf72fc426e   /
  └─mint--vg-swap_1
       swap                    08536d11-38b9-46db-8f76-c0bd95cf05a6   [SWAP]
sdb    iso9660 Linux Mint 18 Cinnamon 64-bit
│                              2016-06-28-12-50-06-00                 
├─sdb1 iso9660 Linux Mint 18 Cinnamon 64-bit
│                              2016-06-28-12-50-06-00                 /media/mar
└─sdb2 vfat    Linux Mint 18 Cinnamon 64-bit
                               B1F5-0A13                              
sdc                                                                   
└─sdc1 ntfs    2000 GB         F474B7AA74B76DCC                       /media/mar
sr0                                                                   
mark-Lenovo-V570 mark # 
User avatar
austin.texas
Level 20
Level 20
Posts: 12047
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: My experiences writing an ISO to USB stick -- Help!

Post by austin.texas »

That shows that sdb1 has a iso9660 filesystem, and a Label of "Linux Mint 18 Cinnamon 64-bit".
As mentioned, you cannot apply a Label to a partition which does not have any filesystem - and you also can't apply a Label to certain filesystems like linux-swap or iso9660 (in this particular case).
What was your goal in trying to do that?
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
markfilipak
Level 5
Level 5
Posts: 936
Joined: Sun Mar 10, 2013 8:08 pm
Location: Ohio (formerly California), USA

Re: My experiences writing an ISO to USB stick -- Help!

Post by markfilipak »

austin.texas wrote:That shows that sdb1 has a iso9660 filesystem, and a Label of "Linux Mint 18 Cinnamon 64-bit".
As mentioned, you cannot apply a Label to a partition which does not have any filesystem - and you also can't apply a Label to certain filesystems like linux-swap or iso9660 (in this particular case).
What was your goal in trying to do that?
I didn't do it. 'dd' did it. Here's the root of the mount point.

Code: Select all

mark@mark-Lenovo-V570 /media/mark/Linux Mint 18 Cinnamon 64-bit $ ll
total 55
dr-xr-xr-x  1 mark mark  2048 Jun 28 08:49 ./
drwxr-x---+ 4 root root  4096 Nov  9 12:35 ../
dr-xr-xr-x  1 mark mark  2048 Jun 28 08:48 boot/
dr-xr-xr-x  1 mark mark  2048 Jun 28 08:49 casper/
dr-xr-xr-x  1 mark mark  2048 Jun 28 08:49 .disk/
dr-xr-xr-x  1 mark mark  2048 Jun 28 08:48 dists/
dr-xr-xr-x  1 mark mark  2048 Jun 28 08:48 EFI/
dr-xr-xr-x  1 mark mark 10240 Jun 28 08:49 isolinux/
-r--r--r--  1 mark mark 24362 Jun 28 08:49 MD5SUMS
dr-xr-xr-x  1 mark mark  2048 Jun 28 08:48 pool/
dr-xr-xr-x  1 mark mark  2048 Jun 28 08:48 preseed/
-r--r--r--  1 mark mark   220 Jun 28 08:49 README.diskdefines
mark@mark-Lenovo-V570 /media/mark/Linux Mint 18 Cinnamon 64-bit $ 
User avatar
austin.texas
Level 20
Level 20
Posts: 12047
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: My experiences writing an ISO to USB stick -- Help!

Post by austin.texas »

You ran the command: tune2fs -L 16GB_USBstk /dev/sdb1
That command attempts to create a Label on sdb1.
The question was, what was your goal in running that command?
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
markfilipak
Level 5
Level 5
Posts: 936
Joined: Sun Mar 10, 2013 8:08 pm
Location: Ohio (formerly California), USA

Re: My experiences writing an ISO to USB stick -- Help!

Post by markfilipak »

austin.texas wrote:You ran the command: tune2fs -L 16GB_USBstk /dev/sdb1
That command attempts to create a Label on sdb1.
The question was, what was your goal in running that command?
Is there a problem with labeling a disk?
User avatar
austin.texas
Level 20
Level 20
Posts: 12047
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: My experiences writing an ISO to USB stick -- Help!

Post by austin.texas »

markfilipak wrote:Is there a problem with labeling a disk?
There is no problem with experimenting to see what works and what doesn't.
In this case it doesn't work.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
markfilipak
Level 5
Level 5
Posts: 936
Joined: Sun Mar 10, 2013 8:08 pm
Location: Ohio (formerly California), USA

Re: My experiences writing an ISO to USB stick -- Help!

Post by markfilipak »

austin.texas wrote:
markfilipak wrote:Is there a problem with labeling a disk?
There is no problem with experimenting to see what works and what doesn't.
In this case it doesn't work.
How do you know? I ask because I didn't want to write a disk label. I just wanted to read it, but 'tune2fs' apparently can only write labels, not read them. ?!?!?!?!?
User avatar
austin.texas
Level 20
Level 20
Posts: 12047
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: My experiences writing an ISO to USB stick -- Help!

Post by austin.texas »

markfilipak wrote:I ask because I didn't want to write a disk label. I just wanted to read it, but 'tune2fs' apparently can only write labels, not read them. ?!?!?!?!?
I gave you two commands earlier today that would list Labels.
austin.texas wrote:To list any Labels you have on any partitions, run the command:

Code: Select all

blkid
OR:

Code: Select all

lsblk -f
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
markfilipak
Level 5
Level 5
Posts: 936
Joined: Sun Mar 10, 2013 8:08 pm
Location: Ohio (formerly California), USA

Re: My experiences writing an ISO to USB stick -- Help!

Post by markfilipak »

austin.texas wrote:
markfilipak wrote:I ask because I didn't want to write a disk label. I just wanted to read it, but 'tune2fs' apparently can only write labels, not read them. ?!?!?!?!?
I gave you two commands earlier today that would list Labels.
austin.texas wrote:To list any Labels you have on any partitions, run the command:

Code: Select all

blkid
OR:

Code: Select all

lsblk -f
Thanks, Austin. I haven't caught up with all your replies.

Code: Select all

mark-Lenovo-V570 mark # blkid
/dev/sda1: UUID="28C3-6073" TYPE="vfat" PARTUUID="8695edfc-056b-4d00-be63-8a197faee37f"
/dev/sda2: UUID="0d0ef13c-228d-4fcb-a65a-a6c7f3d50924" TYPE="ext2" PARTUUID="adf2182d-ba7c-441e-92c3-51b1267da5d0"
/dev/sda3: UUID="pPm7IY-YCw2-YR0j-Qisa-kR1D-PonV-IW3Wdp" TYPE="LVM2_member" PARTUUID="e04631a6-5d19-493a-b095-b59f2409dfaf"
/dev/sdb1: UUID="2016-06-28-12-50-06-00" LABEL="Linux Mint 18 Cinnamon 64-bit" TYPE="iso9660" PTUUID="43694d2e" PTTYPE="dos" PARTUUID="43694d2e-01"
/dev/sdb2: SEC_TYPE="msdos" UUID="B1F5-0A13" TYPE="vfat" PARTUUID="43694d2e-02"
/dev/sdc1: LABEL="2000 GB" UUID="F474B7AA74B76DCC" TYPE="ntfs" PARTUUID="66a53e10-01"
/dev/mapper/mint--vg-root: UUID="bbc20518-3767-4011-9b5b-5eaf72fc426e" TYPE="ext4"
/dev/mapper/mint--vg-swap_1: UUID="08536d11-38b9-46db-8f76-c0bd95cf05a6" TYPE="swap"

Code: Select all

mark-Lenovo-V570 mark # lsblk -f
NAME                FSTYPE      LABEL                         UUID                                   MOUNTPOINT
sda                                                                                                  
├─sda1              vfat                                      28C3-6073                              /boot/efi
├─sda2              ext2                                      0d0ef13c-228d-4fcb-a65a-a6c7f3d50924   /boot
└─sda3              LVM2_member                               pPm7IY-YCw2-YR0j-Qisa-kR1D-PonV-IW3Wdp 
  ├─mint--vg-root   ext4                                      bbc20518-3767-4011-9b5b-5eaf72fc426e   /
  └─mint--vg-swap_1 swap                                      08536d11-38b9-46db-8f76-c0bd95cf05a6   [SWAP]
sdb                 iso9660     Linux Mint 18 Cinnamon 64-bit 2016-06-28-12-50-06-00                 
├─sdb1              iso9660     Linux Mint 18 Cinnamon 64-bit 2016-06-28-12-50-06-00                 /media/mark/Linux Mint 18 Cinnamon 64-bit
└─sdb2              vfat        Linux Mint 18 Cinnamon 64-bit B1F5-0A13                              
sdc                                                                                                  
└─sdc1              ntfs        2000 GB                       F474B7AA74B76DCC                       /media/mark/2000 GB
sr0                                                                                                  
mark-Lenovo-V570 mark # 
So the vol label really is "Linux Mint 18 Cinnamon 64-bit". 'mintstick' did that. From my 30 years of experience, and from this; 'https://en.wikipedia.org/wiki/Volume_%2 ... lume_label', for non-ntfs volumes, volume labels are limited to 11 chars. Now, take a look at this:

Code: Select all

mark-Lenovo-V570 mark # fdisk -l

Disk /dev/sdb: 14.5 GiB, 15512174592 bytes, 30297216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x43694d2e

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1  *        0 3316223 3316224  1.6G  0 Empty
/dev/sdb2       87152   91887    4736  2.3M ef EFI (FAT-12/16/32)
Comments are appreciated. I'm hoping that this apparent side-track into volume labels is bearing fruit. And I thank you for your help.
User avatar
austin.texas
Level 20
Level 20
Posts: 12047
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: My experiences writing an ISO to USB stick -- Help!

Post by austin.texas »

It is interesting that you are asking about this, because in December, 2015, I asked the same question.
You can read the discussion here :arrow:
viewtopic.php?f=46&t=212169
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
markfilipak
Level 5
Level 5
Posts: 936
Joined: Sun Mar 10, 2013 8:08 pm
Location: Ohio (formerly California), USA

Re: My experiences writing an ISO to USB stick -- Help!

Post by markfilipak »

austin.texas wrote:It is interesting that you are asking about this, because in December, 2015, I asked the same question.
You can read the discussion here :arrow:
viewtopic.php?f=46&t=212169
Aha! So what 'blkid' & 'lsblk' are calling "Label" is actually the ISO9660 "Volume Identifier" @ "Primary Volume Descriptor"+40bytes. Do I have that right?
User avatar
austin.texas
Level 20
Level 20
Posts: 12047
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: My experiences writing an ISO to USB stick -- Help!

Post by austin.texas »

That sounds right - but I am no expert on that...
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
markfilipak
Level 5
Level 5
Posts: 936
Joined: Sun Mar 10, 2013 8:08 pm
Location: Ohio (formerly California), USA

Re: My experiences writing an ISO to USB stick -- Help!

Post by markfilipak »

markfilipak wrote:
austin.texas wrote:It is interesting that you are asking about this, because in December, 2015, I asked the same question.
You can read the discussion here :arrow:
viewtopic.php?f=46&t=212169
Aha! So what 'blkid' & 'lsblk' are calling "Label" is actually the ISO9660 "Volume Identifier" @ "Primary Volume Descriptor"+40bytes. Do I have that right?
PS: I'm trying to discover why I can't boot from USB stick containing Mint 18. I'm grasping straws at this point as the other Guru's don't like what I say about EFI.
markfilipak
Level 5
Level 5
Posts: 936
Joined: Sun Mar 10, 2013 8:08 pm
Location: Ohio (formerly California), USA

Re: My experiences writing an ISO to USB stick -- Help!

Post by markfilipak »

I'm trying to discover why I can't boot from USB stick containing Mint 18. I'm grasping straws at this point as the other Guru's don't like what I say about EFI.

Oops. The forum software doesn't quite work the way I expect. Kindly excuse the duplication.
markfilipak
Level 5
Level 5
Posts: 936
Joined: Sun Mar 10, 2013 8:08 pm
Location: Ohio (formerly California), USA

Re: My experiences writing an ISO to USB stick -- Help!

Post by markfilipak »

austin.texas wrote:In spite of your assurance that " The machine does not have an EFI BIOS", I tend to agree with the observation by gold_finger "The fact that you even have an option to turn "Legacy" mode OFF proves you have UEFI firmware."
Even though the BIOS says it's just "USB Legacy"... Wait. Hang on. I'm going to reboot and F2 into the BIOS and write down what it actually says. Kindly hang on. I'll be right back. (...Oooo, this is getting good!)

Okay, here's the full story. It's called "USB Legacy"
USB Legacy wrote:Enable/Disable USB BIOS SMM support for mouse, keyboard, mass storage, etc. in legacy operating systems such as DOS.
For SMM, see: 'https://en.wikipedia.org/wiki/System_Management_Mode'. Now that doesn't say EFI to me. What do you think?

PS: I have it Enabled. If I Disable it, the BIOS can't see USB sticks at all.
Last edited by markfilipak on Wed Nov 09, 2016 6:43 pm, edited 2 times in total.
Post Reply

Return to “Installation & Boot”