Re: Bulk preparation of LiveUSBs or installed to a USB drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rick,

Thanks for your quick response.

On Tue, Oct 30, 2018 at 1:26 AM Rick Stevens <ricks@xxxxxxxxxxxxxx> wrote:
On 10/29/18 11:31 AM, Danishka Navin wrote:
> Hi,
> I have to prepare hundreds of USB sticks which need to either papre as a
> liveUSB or make it as a installed system (using the USB as the storage
> when installing fedora).

You can install to a USB stick if you want. Generally, Linux running on
any sort of a USB drive is quite slow, so keep that in mind.


Yes, I know but this is to avoid misconfiguration of over 1000 servers across the country within a small window with less technical people in remote areas.
 
You could then clone the USB stick to other USB sticks via "dd" using
the raw, block devices. Assuming /dev/sdb is the drive you installed to
and /dev/sdc is the intended target:

        dd if=/dev/sdb of=/dev/sdc bs=4k,sync

You could also make an image of the stick on hard drive using dd:

        dd if=/dev/sdb of=/somefilename.img bs=4k,sync

this means once installed ISO in to USB (completion of anaconda and post installation) create an .img ?

then, if you have multiple USB ports (or a big hub), you could run
parallel "dd"s specifying different sticks as targets:

        screen 'dd if=/somefilename.img of=/dev/sdc bs=4k,sync'
        screen 'dd if=/somefilename.img of=/dev/sdd bs=4k,sync'
        ...
        screen 'dd if=/somefilename.img of=/dev/sdX bs=4k,sync'

which would run all of the dd commands in parallel screen sessions.
Sort of a poor man's bulk disk duplicator. I'd highly recommend that
you use USB3 if possible if you're feeding a hub to minimize the I/O
contention you'll get.

You could do something similar if all you wanted to do was put the
LiveUSB ISO image on the sticks (replace "/somefilename.img" with the
path to the ISO image you're interested in).

Be aware that generally writing to USB can be a pokey process
(especially if everything's on the same USB host port, USB3 or not), but
you get the general idea.


Thanks again!

--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux