LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2018, 12:15 AM   #16
pablo27
Member
 
Registered: Oct 2009
Posts: 55

Original Poster
Rep: Reputation: 0

I realize this post is solved, but I have one more question regarding the dd command.
When I used the command I didn't put anything after the output file, however BW-userx added && sync, and I have seen other uses where bs=4M after the output file. What do they do and why a difference? Thanks again everyone for all the time and info you have put into this thread.

Paul
 
Old 03-18-2018, 01:31 AM   #17
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by pablo27 View Post
When I used the command I didn't put anything after the output file, however BW-userx added && sync, and I have seen other uses where bs=4M after the output file. What do they do and why a difference?
i must say, this is a very poor description of a command.
why not just show the command?

incidentally, i know exactly what you mean and will break it down for you.
Code:
dd if=some.iso of=/dev/sdX bs=4m && sync
let's agree that this line of commands has 6 elements.
elements 1-3 are clear by now, i think.
element 4 belongs to the dd command.
you can check what it does by entering 'man dd' in a terminal, then enter '/bs':

Quote:
bs=BYTES read and write up to BYTES bytes at a time (default: 512)
it means blocksize.
4M means 4 Megabytes (surely someone will correct me on this, but close enough).

Element 5 does not belong to the dd command anymore. it's a logical operator that can be used to string commands together: if A was succesful, do B.

'sync' is a separate command. again, read 'man sync'.
if you write to a usb stick, it is very important to do that before you rip it out.

Last edited by ondoho; 03-18-2018 at 01:33 AM.
 
1 members found this post helpful.
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make bootable usb Raied_F1 Linux - Newbie 4 10-16-2016 07:19 AM
how to make bootable usb malli Linux - Software 2 11-27-2011 04:30 PM
Cant make a bootable Ubuntu USB Latios Ubuntu 2 06-10-2011 02:19 PM
[SOLVED] How to make XP bootable from usb, linuxishard Linux - Newbie 30 08-22-2010 01:36 PM
How do you make a usb drive bootable? comcastuser Linux - General 4 06-25-2007 02:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 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