User avatar
allfox
Posts: 452
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China

Can I move SD card's content to a USB hard drive via 'dd'?

Tue Jan 13, 2015 9:17 am

Greetings.

I've just ordered an USB hard drive to replace the SD card as Pi's storage. And now I'm thinking about how to set it up.

I have another smaller SD card with a modified cmdline.txt to direct the boot via sda device. I used it to boot via an USB flash drive. I'm planning using it to boot up Pi via the USB hard drive.

Can I just 'dd' everything from the current running SD card to the hard drive, and after booting up the Pi, I use raspi-config to expand the file system?

I don't want to set everything up from scratch.

gkreidl
Posts: 6326
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Can I move SD card's content to a USB hard drive via 'dd

Tue Jan 13, 2015 9:27 am

http://www.raspberrypi.org/forums/viewt ... 29&t=44177

You don't have to start with a fresh Raspbian install (as decribed in this tutorial), but can use your existing installation instead.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
allfox
Posts: 452
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China

Re: Can I move SD card's content to a USB hard drive via 'dd

Tue Jan 13, 2015 9:38 am

gkreidl wrote:http://www.raspberrypi.org/forums/viewt ... 29&t=44177

You don't have to start with a fresh Raspbian install (as decribed in this tutorial), but can use your existing installation instead.
Thanks, this topic is great.

It told me that I could use rsync to copy the content instead of dd, as it won't copy blank space, so would be faster.

I'll try it when my hard drive arrives.

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Can I move SD card's content to a USB hard drive via 'dd

Tue Jan 13, 2015 11:11 am

How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

emma24xia
Posts: 28
Joined: Thu Dec 04, 2014 9:51 am

Re: Can I move SD card's content to a USB hard drive via 'dd

Wed Jan 14, 2015 9:02 am

The file transfer from SD card to hard drive can be done on a computer if this is what you mean.

gkreidl
Posts: 6326
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Can I move SD card's content to a USB hard drive via 'dd

Wed Jan 14, 2015 9:16 am

emma24xia wrote:The file transfer from SD card to hard drive can be done on a computer if this is what you mean.
The Raspberry Pi is a computer.

It cannot be done on a Windows machine.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “General discussion”