Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: dd for a live distro

  1. #1
    Join Date
    Apr 2018
    Location
    U.S Midwest just West of the Mississippi River
    Posts
    588

    Default dd for a live distro

    Will the
    Code:
    dd if=<file-name> of=/dev/sdx bs=4m
    write a live distro iso that will boot into the 'live' Linux on a UEFI unit?
    HP Compaq desktop Leap15.1 Win10, Win7
    Toshiba laptops Leap15.1 & Win10, HP AiO Win10.
    I can now print with openSuSe Leap! Can Scan now, could be better!!
    I can backup my iPod and iPad with Windows, can't with Linux.(Will get there someday!)

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,480
    Blog Entries
    3

    Default Re: dd for a live distro

    Quote Originally Posted by Bill_L View Post
    Will the
    Code:
    dd if=<file-name> of=/dev/sdx bs=4m
    write a live distro iso that will boot into the 'live' Linux on a UEFI unit?
    Yes, that should be fine.

    Just be sure that you use the raw device -- "/dev/sdx" rather than "/dev/sdx1". And, of course, you will have to check what 'x' should be. For that, I normally use:
    Code:
    ls -ltr /dev/sd?
    and the last line should be for the USB most recently plugged in (probably the one that you want to use).
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  3. #3
    Join Date
    Apr 2018
    Location
    U.S Midwest just West of the Mississippi River
    Posts
    588

    Default Re: dd for a live distro

    Thanks nrickert,
    I just didn't know if something needed to be changed for a live version. And the web searches and the help for dd didn't answer that specifically.
    HP Compaq desktop Leap15.1 Win10, Win7
    Toshiba laptops Leap15.1 & Win10, HP AiO Win10.
    I can now print with openSuSe Leap! Can Scan now, could be better!!
    I can backup my iPod and iPad with Windows, can't with Linux.(Will get there someday!)

  4. #4
    Join Date
    Apr 2018
    Location
    U.S Midwest just West of the Mississippi River
    Posts
    588

    Default Re: dd for a live distro

    I completely forgot to ask about making it have persistence.
    It is not mounted, and the partition tools won't let me add a persistence partition.
    Looks like back to Windows and try to find a way to make it legacy/UEFI bootable w/persistence.\
    Bummer
    HP Compaq desktop Leap15.1 Win10, Win7
    Toshiba laptops Leap15.1 & Win10, HP AiO Win10.
    I can now print with openSuSe Leap! Can Scan now, could be better!!
    I can backup my iPod and iPad with Windows, can't with Linux.(Will get there someday!)

  5. #5
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,480
    Blog Entries
    3

    Default Re: dd for a live distro

    Quote Originally Posted by Bill_L View Post
    Thanks nrickert,
    I just didn't know if something needed to be changed for a live version.
    It's the same for live and for DVD installers.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  6. #6
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,480
    Blog Entries
    3

    Default Re: dd for a live distro

    Quote Originally Posted by Bill_L View Post
    I completely forgot to ask about making it have persistence.
    That should be automatic with the live media.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  7. #7
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    3,974

    Default Re: dd for a live distro

    Quote Originally Posted by nrickert View Post
    That should be automatic with the live media.
    I'm not sure about that, myself. On a DVD or CD which cannot be written and rewritten to, of course, it can't be, not automatically, since persistence savings would have to be manually configured, I think.

    Although a USB can be rewritten to, maybe there is something that first needs to be done to set it up?
    -Gerry Makaro
    Fraser-Bell Info Tech
    Solving Tech Mysteries since the Olden Days!
    ~~
    If I helped you, consider clicking the Star at the bottom left of my post.

  8. #8
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,480
    Blog Entries
    3

    Default Re: dd for a live distro

    Quote Originally Posted by Fraser_Bell View Post
    Although a USB can be rewritten to, maybe there is something that first needs to be done to set it up?
    It doesn't happen by magic. But, as far as I know, whatever is needed is already built into the live media.

    Perhaps you have to add "kiwi_hybridpersistent=true" to the boot command line, though that's not my experience.

    Yes, from time to time this has been broken. However, I've seen a report on these forums within the last month that suggests it is currently working.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  9. #9
    Join Date
    Apr 2018
    Location
    U.S Midwest just West of the Mississippi River
    Posts
    588

    Default Re: dd for a live distro

    Looking into the file structure for the 'live' version on the USB created with 'dd' , there is a casper directory, but I don't see any indication that there is actually a casper-rw file(the persistence read/write file if I understand things correctly).

    Actually I would like to make it bootable either legacy or UEFI, and use the remaining larger portion of the USB as the 'casper-rw' area. This would be for my wife to get used to a Linux(without install) and also let me use it on my desktop if I want or need to until it's life cycle runs it's course.

    I know there are plenty of articles on the web about doing that, but I don't find any that mention MBR and UEFI in the set up.

    I am not sure a UEFI system will boot from a 'live' system on a fat32 partition.

    As it stands now, the USB stick written via the ''dd' command does not save changes.

    Code:
    fdisk -l for the usb stick
    Disk /dev/sdd: 14.5 GiB, 15513354240 bytes, 30299520 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: 0x7da654e6                                                                                                     
                                                                                                                                    
    DeviceBoot  Start    EndSectors SizeIdType
    /dev/sdd1  *          0 3710015 3710016  1.8G  0 Empty                                                                          
    /dev/sdd2       3699676 3704347    4672  2.3M ef EFI (FAT-12/16/32)
    
    BTW, /dev/sdd1 is not empty. It does boot to the live Linux.

    Code:
    Gparted screenshot
    http://paste.opensuse.org/5195623
    HP Compaq desktop Leap15.1 Win10, Win7
    Toshiba laptops Leap15.1 & Win10, HP AiO Win10.
    I can now print with openSuSe Leap! Can Scan now, could be better!!
    I can backup my iPod and iPad with Windows, can't with Linux.(Will get there someday!)

  10. #10
    Join Date
    Apr 2018
    Location
    U.S Midwest just West of the Mississippi River
    Posts
    588

    Default Re: dd for a live distro

    FOOTNOTE:
    If there were a live version of Leap, I would be working with it!
    HP Compaq desktop Leap15.1 Win10, Win7
    Toshiba laptops Leap15.1 & Win10, HP AiO Win10.
    I can now print with openSuSe Leap! Can Scan now, could be better!!
    I can backup my iPod and iPad with Windows, can't with Linux.(Will get there someday!)

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •