LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-25-2014, 11:04 PM   #1
patrick_the_fat
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Create flashable file of *installation on USB* and


Hello,

I would like to put a downloadable version of Ubuntu installation on USB on the net with an easy way to flash it back on. This is different than the persistent LiveUSB option, as it is a direct install with an ext4 file system on USB.

I learned how to make a bit-by-bit copy from some other comments:

sudo dd if=/dev/sdb of=/dev/sdc bs=8M && sync

(Only works if the secondary memory stick is larger in size)

I am trying to put up a downloadable trial for my development at <a href="http://c2linux.net">http://c2linux.net</a>.

This also should be cross-platform (Windows and Linux users, alike).

Does anybody have any suggestions? Maybe it would involve using the dd command again, in Linux, and some t00l in Windows.

Thanks!
 
Old 07-26-2014, 04:33 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Instead of writing to a second flash drive write to a file instead:
Code:
dd if=/dev/sdb of=myImageFile bs=8M
That image file can easily be deployed over the net and written back to a flash device using dd (Linux) or Win32 Disk Imager (Windows).
 
Old 07-28-2014, 03:36 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
They make rawritewin and dd for windows too. A long way around it to install tools for unix.

To create it file based you'd need to have a common program or a bootable media.


One could use gpxe/ipxe maybe to set up over the network also.

Normally one puts an iso image on some location. Then one uses tools to place in disk.

In almost all of these you'd have to make generic terms in the usb image.
 
Old 07-28-2014, 04:26 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
what i used to do for my xbmc-live pc was re-flash the os using dd (about 1.5 gb) then use gparted to extend the boundary of the partition so i can save movies to it.

before making an image backup of the disk i would use dd to write zeroes to it and so i could bzip2 it to save space.

Last edited by schneidz; 07-28-2014 at 04:28 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installation of rhel 5 from usb displays "can not find iso file" for installation mvsr400072 Linux - Newbie 1 12-29-2012 01:24 PM
How to create one device file per endpoint for usb ? Thejus Programming 0 06-22-2010 10:16 PM
How doe I create a swap file in SUSE 10 after the installation? promo3000 SUSE / openSUSE 4 08-14-2006 11:20 PM
Yast System Backup doesn't create auto-installation file MatricalDreamer SUSE / openSUSE 1 05-03-2006 09:36 AM
How do I create a file in /dev/usb? Lakota Mandriva 3 10-24-2004 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration