WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: USB stick installed; clone it?  (Read 2396 times)

Offline rminnich

  • Newbie
  • *
  • Posts: 13
USB stick installed; clone it?
« on: October 11, 2009, 07:45:00 PM »
I'm getting ready to write the script to clone the USB stick I am booting, but am wondering if someone has already done it ... have not found anything like this in the forums however.

thanks

ron

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: USB stick installed; clone it?
« Reply #1 on: October 12, 2009, 05:38:04 AM »
You could do something like:
Code: [Select]
$ sudo dd if=/dev/sda of=/dev/sdb
where:
/dev/sda is the source usb stick
/dev/sdb is the target usb stick

Both usb sticks would need to be unmounted at the time and preferably the same size...

Offline rminnich

  • Newbie
  • *
  • Posts: 13
Re: USB stick installed; clone it?
« Reply #2 on: October 13, 2009, 05:17:26 PM »
That's not a great way to do it ... I'll look at other possibilities. I may just hack up usbinstall.

Thanks

ron