LinuxQuestions.org
Help answer threads with 0 replies.
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 08-09-2012, 05:17 PM   #1
Brian_Hayward
LQ Newbie
 
Registered: May 2009
Posts: 15

Rep: Reputation: 0
How do i copy an OS image over to another device


I had to reinstall windows on my roommates computer because of a virus. After the clean install i created an image of the system with clonezilla onto an external hard drive i had laying around. I wanted to put the image on a SD card but i didn't have one big enought laying around so i purchased one. Now i want to move the image over from the hard drive to the SD card but i can't figure out how to do it. I use linux. I tried copying the image and pasting it on to the SD card but that didn't work. i had write permisions on the SD card. I tried doing a dd if=/path/to/image of=/path/to/mounted/SD/card bs=512 and that didnt work. I tried asking this same question on the clonezilla forum but i havent received a response yet so i thought i would try another source of information. Any help or ideas would be greatly appreciated. Thanks.
 
Old 08-09-2012, 05:28 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
Do you want to make a simple backup of the imagefile or do you want to copy the contents of that file to the SD card?
In the latter case you have to use clonezilla to do that.
In the first case a simple copy and paste should do the job. Keep in mind that most SD cards come pre-formatted with a FAT32 file-system (used by many cameras), but FAT32 has a limit on the file-size (max. 4GB per file), so if your imagefile is larger than 4GB you have to format the SD card with a better file-system first. I would recommend NTFS if the card should be readable by Windows and Linux systems or ext2/3/4 for Linux systems only.

Last edited by TobiSGD; 08-11-2012 at 01:20 AM. Reason: fixed typo
 
Old 08-10-2012, 04:44 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Or use clonezilla to make it into files. (if not already)

Could use g4u which is dd plug gzip so you might compress it a bit.

I would have never made a backup as a clone. Dunno. I guess that is just me. I would have made it into files instead. Even on a clone by dd I make it into a single file usually.

The only time I clone is for drive to exact same size drive.

Last edited by jefro; 08-10-2012 at 04:46 PM.
 
Old 08-10-2012, 07:09 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Brian_Hayward View Post
I wanted to put the image on a SD card (..) I use linux. (..) I tried doing a dd if=/path/to/image of=/path/to/mounted/SD/card bs=512 and that didnt work.
Note abusing tools like 'dd' can cause irreversible damage so best ensure you know what to do before you do. "of=/path/to/mounted/SD/card" is wrong if this represents a mounted partition. It should be a block device in /dev, the device should not have any partitions mounted, the device should represent the whole disk like "/dev/sde" and the command should be executed by the root user. (BTW, if you run '/usr/bin/pkill -USR1 -f 'dd if=';' in another terminal during the process you get progress details in the terminal 'dd' runs in.) Also note that unlike Linux, which loads drivers on the fly and not according to some rigid scheme determined at installation time, you may experience trouble loading your freshly copied Windows installation due to problems with the HAL. (BTW[1]: questions about that should be asked in the Non-*NIX General forum, not here.)
 
  


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
cp of dd image failed, better to mount image and then copy? bmcws Linux - Newbie 5 06-23-2009 06:41 PM
How can I copy image from website? linmix Fedora 8 06-15-2005 12:01 AM
HardDrive to HD image copy gerrymatbeacon Linux - Newbie 1 08-13-2004 03:18 PM
How to Copy Kernel Image to a CD? Lucinda Slackware 9 05-26-2004 03:07 AM
Image Copy vickna Linux - Newbie 4 04-22-2003 03:32 PM

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

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