|
FreeBSD Installation and Upgrading Installing and upgrading FreeBSD. |
|
Thread Tools | Display Modes |
|
|||
Installation master "disk" using USB memory stick, dd?
Carpetsmoker - thanks for a truly useful site!
I've just completed a new server install of FreebSD 7.0-RELEASE and want to make a master backup for possible installation on a series of other boxes. What I'd like to do ideally is to use dd to copy my base install to a USB memory stick, then just dd it up to the new machine's hard drive. Like.. Code:
dd if=/dev/da0 of=/dev/da1 bs=1024 Thanks in advance.. |
|
||||
Yes, this would work mate.
To make it faster use bs=8MB
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
|||
Thanks! This is going to make life so much simpler
|
|
||||
you can dd it to output and compress it on the fly....
, however i prefer using dump and restore, they should be more way faster than dd, since they won't save unused space on hard drive.... also backup file will be smaller (and also can be compressed on the fly) + backup can be made for running filesystem, the only thing is it works only on UFS to backup and compress Code:
$ dump -0Lauf - /dev/ad4s1d | bzip2 -9 > /path/to/ad4s1d.bak.bz2 note for this you will need some /tmp space, if tmp is to small it will fail, so you might need to link /tmp to bigger filesystem Code:
$ newfs -U /dev/ad4s1d $ mount /dev/ad4s1d /mnt $ cd /mnt $ bzcat /path/to/ad4s1d.bak.bz2 | restore -xf - read man dump man restore also you can use this method to resize partitions or clone FreeBSD among other PC's (you will need to copy MBR to all of them with dd) Last edited by graudeejs; 14th October 2008 at 06:40 AM. |
|
|||
Thanks! I set off my "dd" to the memory stick last night and it ran for hours - wish I'd read your reply before I started
|
|
|||
Not entirely true killasmurf86, but somewhat... directly using dd for such things isn't what I'd recommend, dump+restore and preparing the new disk is somewhat better.
A direct "dd" to a new disk will work in some situations... but he'll need to increase the size of the MBR partition and the disklabel.. then carefully use growfs. Often there are many solutions to the same problem on Unix.. |
|
||||
Quote:
anyway, in most cases, simple user will mess up with dd |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Opera Port - conflicting pkgs in "make install" | IronForge | OpenBSD Packages and Ports | 5 | 29th October 2009 05:10 AM |
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" | jb_daefo | Guides | 0 | 5th October 2009 09:31 PM |
"Thanks" and "Edit Tags". | diw | Feedback and Suggestions | 2 | 29th March 2009 12:06 AM |
Scripted sysinstall fails with "Command 'system' failed" | PeterSteele | FreeBSD Installation and Upgrading | 0 | 13th November 2008 11:31 PM |
Newbie-friendly "printing in OpenBSD" guide wanted | Shagbag | OpenBSD Packages and Ports | 5 | 7th July 2008 09:26 PM |