Building a Kubuntu live USB installer using dd
UPDATE (9-8-2015)
Written as a stand-alone how-to, with references and notes, see:
Building a Kubuntu live USB flash drive installer using dd
https://www.kubuntuforums.net/showthread.php?43221-GRUB-2-A-Guide-for-Users&p=378712#post378712
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
The original post and discussion follows here -->
Building a Kubuntu live USB installer using dd.
(UFD = USB Flash Drive)
https://www.kubuntuforums.net/showth...l=1#post370675
Guess I should put this in here:
CAUTION. See Posts #7 & #8 of the above link about using the dd command.
Specifically:
sudo dd if=/path/to/iso of=/dev/sdX bs=16M
You must specify the sdX VERY carefully or you could damage/destroy the data on one of your drives. sdX should be the correct device notation for the flash drive you are using to build your Live Kubuntu USB flash drive.
OK, then, continuing here ...
Out of curiosity, I checked this. It seems correct, kind of amazingly.
I looked at three cases.
Prior to issuing the above dd command,
(1) There is NOTHING on the flash drive.
or,
(2) There is a valid MBR partition on the flash drive (in GParted: msdos).
or,
(3) There is a valid GPT partition scheme on the flash drive.
In all three cases, the following statement builds a bootable, live USB Kubuntu/installer (which, of course, I tested each time) (Note: my flash drive is seen as /dev/sdb in my system):
However, GParted and fdisk and gdisk reported different, unclear, and/or confusing things about the partition table on the flash drive.
For example, after running the dd command to copy the iso file, checking the flash drive in GParted, I get this message:
In another test, I created (and checked) a valid GPT on the flash drive, and then installed by dd the file kubuntu-14.04.2-desktop-amd64.iso to the flash drive (and tested that the Live Kubuntu flash drive worked), and got this from gdisk and from GParted:
And in GParted, I got this:
Partition: unallocated with warning !
Filesystem: unallocated
Size: 1.02 GiB
Used: --
Unused: --
Flag: (blank)
On another similar test, I got this message from GParted:
GParted note:
I tried the GParted from my installed Kubuntu 14.04:
GParted 0.18.0;
and I tried a Live GParted CD (for 64-bit, UEFI):
gparted-live-0.21.0-1-amd64 .iso
Summary
In my experience, the dd statement
sudo dd if=kubuntu-14.04.2-desktop-amd64.iso of=/dev/sdb bs=16M
does build the live UFD Kubuntu installer regardless of what (partition arrangement) is on the flash drive previously (nothing, or an MBR, or a GPT).
But GParted seems confused by what the image is on the flash drive.
Any ideas how to get more info (on what exactly is on the flash drive) from some disk utility, perhaps a command line utility?
UPDATE (9-8-2015)
Written as a stand-alone how-to, with references and notes, see:
Building a Kubuntu live USB flash drive installer using dd
https://www.kubuntuforums.net/showthread.php?43221-GRUB-2-A-Guide-for-Users&p=378712#post378712
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
The original post and discussion follows here -->
Building a Kubuntu live USB installer using dd.
(UFD = USB Flash Drive)
https://www.kubuntuforums.net/showth...l=1#post370675
Guess I should put this in here:
CAUTION. See Posts #7 & #8 of the above link about using the dd command.
Specifically:
sudo dd if=/path/to/iso of=/dev/sdX bs=16M
You must specify the sdX VERY carefully or you could damage/destroy the data on one of your drives. sdX should be the correct device notation for the flash drive you are using to build your Live Kubuntu USB flash drive.
OK, then, continuing here ...
SteveRiley
Actually, you don't even need to create the partitions, those are contained within the image. I verified this just now. Simply dd the ISO directly to the device node ...
Actually, you don't even need to create the partitions, those are contained within the image. I verified this just now. Simply dd the ISO directly to the device node ...
I looked at three cases.
Prior to issuing the above dd command,
(1) There is NOTHING on the flash drive.
or,
(2) There is a valid MBR partition on the flash drive (in GParted: msdos).
or,
(3) There is a valid GPT partition scheme on the flash drive.
In all three cases, the following statement builds a bootable, live USB Kubuntu/installer (which, of course, I tested each time) (Note: my flash drive is seen as /dev/sdb in my system):
Code:
sudo dd if=kubuntu-14.04.2-desktop-amd64.iso of=/dev/sdb bs=16M 65+1 records in 65+1 records out 1093238784 bytes (1.1 GB) copied, 149.653 s, 7.3 MB/s
For example, after running the dd command to copy the iso file, checking the flash drive in GParted, I get this message:
/dev/sdb contains GPT signatures, indicating that it has a GPT table. However, it does not have a valid fake msdos partition table, as it should. Perhaps it was corrupted -- possibly by a program that doesn't understand GPT partition tables. Or perhaps you deleted the GPT table, and are now using an msdos partition table. Is this a GPT partition table?
Code:
sudo gdisk -l /dev/sdb GPT fdisk (gdisk) version 0.8.8 Partition table scan: MBR: MBR only BSD: not present APM: not present GPT: not present *************************************************************** Found invalid GPT and valid MBR; converting MBR to GPT format in memory. *************************************************************** Disk /dev/sdb: 2135232 sectors, 1.0 GiB Logical sector size: 512 bytes Disk identifier (GUID): FC5CA7E4-BC4E-4700-9445-48A22D65FFA8 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 2135198 Partitions will be aligned on 4-sector boundaries Total free space is 2130493 sectors (1.0 GiB) Number Start (sector) End (sector) Size Code Name 2 2040756 2045427 2.3 MiB EF00 EFI System
And in GParted, I got this:
Partition: unallocated with warning !
Filesystem: unallocated
Size: 1.02 GiB
Used: --
Unused: --
Flag: (blank)
On another similar test, I got this message from GParted:
... GPT partition table appears to be corrupt, using the backup GPT.
I tried the GParted from my installed Kubuntu 14.04:
GParted 0.18.0;
and I tried a Live GParted CD (for 64-bit, UEFI):
gparted-live-0.21.0-1-amd64 .iso
Summary
In my experience, the dd statement
sudo dd if=kubuntu-14.04.2-desktop-amd64.iso of=/dev/sdb bs=16M
does build the live UFD Kubuntu installer regardless of what (partition arrangement) is on the flash drive previously (nothing, or an MBR, or a GPT).
But GParted seems confused by what the image is on the flash drive.
Any ideas how to get more info (on what exactly is on the flash drive) from some disk utility, perhaps a command line utility?
Comment