LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-05-2021, 06:37 AM   #1
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Rep: Reputation: Disabled
conclusion: dd can never burn a bootable windows7 installation usbstick from win7 iso image!


I have located my old win7 iso image.
Used this command to burn:

Code:
$sudo dd if='win 7 ultimate.iso' of=/dev/sde bs=4M status=progress && sync
3728736256 bytes (3.7GB ,3.5GiB) copied, 85s, 43.8MB/s
890+1 records in
890+1 records out
3735322624 bytes (3.7GB ,3.5GiB) copied, 297.504s, 12.6MB/s
bash:/user/bin/sync: Input/output error.
What does the last line means ? Error in burning ? or error in sync (verification) ?? Why error ? What did i did wrong ?

This is really ... i have spend hours in front just to get my win7 image burn and install win7 into the new ssd.. no ending issues.. discouraging.

Last edited by andrewysk; 06-05-2021 at 07:13 PM.
 
Old 06-05-2021, 06:53 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Is the USB stick 4G? Try a larger sized one.
 
Old 06-05-2021, 06:55 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,790

Rep: Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951
sync writes any data buffered in memory out to disk. dd is a low level utility to write byte for byte the source to the destination so as far as I know it isn't buffered.

The USB drive will not be bootable. You might try writing the to file first then try Rufus.

duplicate https://www.linuxquestions.org/quest...ck-4175696034/

Last edited by michaelk; 06-05-2021 at 07:02 AM.
 
Old 06-05-2021, 07:11 AM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,772

Rep: Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768
If the objective is to have a USB stick that you can boot into the INSTALL for Win7 you might try E2B or Ventoy (see signature for links). They do not require burning the ISO, just copying the ISO as a file to the stick you have prepared to boot E2B or Ventoy. (See instructions on the web sites.)

Both can boot Windows installs directly form the ISO.

Note: your USB drive must be BIGGER than you expect. I would use at least an 8G drive, but even 64G are really very inexpensive these days.
 
Old 06-05-2021, 07:37 AM   #5
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
Is the USB stick 4G? Try a larger sized one.
My usbstick is 16GB. Why you think it is 4G ? because of bs=4M ?
I have no idea what bs=4M for.. i just know it is Buffer size=4M.. something to do with data transfer package size.
 
Old 06-05-2021, 07:39 AM   #6
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
sync writes any data buffered in memory out to disk. dd is a low level utility to write byte for byte the source to the destination so as far as I know it isn't buffered.

The USB drive will not be bootable. You might try writing the to file first then try Rufus.

duplicate https://www.linuxquestions.org/quest...ck-4175696034/
I heard dd is very powerful, hence i tried to learn to use basic linux command without needing extra software.. Isn't all linux people like to use basic cli tool ? :=)
 
Old 06-05-2021, 07:43 AM   #7
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
If the objective is to have a USB stick that you can boot into the INSTALL for Win7 you might try E2B or Ventoy (see signature for links). They do not require burning the ISO, just copying the ISO as a file to the stick you have prepared to boot E2B or Ventoy. (See instructions on the web sites.)

Both can boot Windows installs directly form the ISO.

Note: your USB drive must be BIGGER than you expect. I would use at least an 8G drive, but even 64G are really very inexpensive these days.
I have 16GB, it is more than enough for windows iso.
 
Old 06-05-2021, 07:54 AM   #8
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,784

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
Quote:
Originally Posted by michaelk View Post
sync writes any data buffered in memory out to disk. dd is a low level utility to write byte for byte the source to the destination so as far as I know it isn't buffered.
Writes by dd are buffered unless you use the "oflag=direct" option. This becomes really apparent if you are writing to a slow USB stick and have a lot of memory available for buffering. The transfer runs really fast until you run out of free memory, then the transfer slows to the actual rate of the device, and finally there is a huge delay at the end when dd issues the close() call for the device and all that buffered data needs to be flushed out.
 
Old 06-05-2021, 08:11 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,790

Rep: Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951
Thanks, for the clarification.
 
Old 06-05-2021, 08:13 AM   #10
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Thanks, for the clarification.
Can you further dilute explanation of rknichols please ?
 
Old 06-05-2021, 11:58 AM   #11
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
I have spent hours on trying to use dd to burn a workable win installation usbstick..
And after much reading, DD is a junk when it come to burn iso image to usb stick. it will never work.

use woeusb instead.. fast and easy
BUT i have tried
sudo woeusb --target-filesystem NTFS --device /path/to/your.iso /dev/sdX
and
sudo woeusb --device /path/to/your.iso /dev/sdX
Both does not able to create a bootable win installation usbstick as well.
 
Old 06-05-2021, 12:15 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,790

Rep: Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951
Quote:
I have spent hours on trying to use dd to burn a workable win installation usbstick..
And after much reading, DD is a junk when it come to burn iso image to usb stick. it will never work.
It depends and requires some context.

If the ISO file you download is an isohybrid then yes dd will work. Most ISO distribution files are hybrids so using dd will work and I use it 99% of the time.

The ISO file you created is an exact copy of the Windows DVD and can not boot from a USB drive which is why you need another utility.
 
1 members found this post helpful.
Old 06-05-2021, 12:20 PM   #13
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
It depends and requires some context.

If the ISO file you download is an isohybrid then yes dd will work. Most ISO distribution files are hybrids so using dd will work and I use it 99% of the time.

The ISO file you created is an exact copy of the Windows DVD and can not boot from a USB drive which is why you need another utility.
Ok.. got it now.. dd is good for isohybrid (which i don't know how to identify) and it is good for cloning storage of same size.
 
Old 06-05-2021, 02:41 PM   #14
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,153
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
dd works just fine. It is a bitstream duplicator. You will have to start with a bootable image if you want a bootable stick. And microsoft does everything it's own little proprietary special way.

https://itsfoss.com/bootable-windows-usb-linux/

https://www.techwalla.com/articles/h...a-bootable-usb
 
Old 06-05-2021, 03:33 PM   #15
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
dd works just fine. It is a bitstream duplicator. You will have to start with a bootable image if you want a bootable stick. And microsoft does everything it's own little proprietary special way.

https://itsfoss.com/bootable-windows-usb-linux/

https://www.techwalla.com/articles/h...a-bootable-usb
No, both won't do.
1stly , i don't use win10, only gonna use win7. and i have win7 iso already that proven work (used long time ago while i only use windows os), hence this is not applicable.

url 2, this is weird.. running dd on windows computer ??
 
  


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
[SOLVED] boot iso .. no recognized partition table - usbstick andrewysk Linux - Newbie 8 06-05-2021 07:53 AM
[SOLVED] Tried to burn iso into usbstick -> bash: /dev/sdd1: Permission denied andrewysk Linux - Newbie 19 05-30-2021 04:24 PM
Get first day of last month and last day of last month in bash xowl Linux - Software 18 02-09-2017 09:49 AM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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