Lambchopper
September 2nd, 2009, 06:13 PM
I've got a working Ubuntu 9.04 server and I'm looking to image it to distribute it to other offices. I'm new to imaging on the Ubuntu plateform.
To start here's what I'm working with starting with the df output:
...@CHI-CAPPORTAL:~$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/CHI--CAPPORTAL-root
71G 701M 67G 2% /
tmpfs 497M 0 497M 0% /lib/init/rw
varrun 497M 76K 497M 1% /var/run
varlock 497M 0 497M 0% /var/lock
udev 497M 136K 497M 1% /dev
tmpfs 497M 0 497M 0% /dev/shm
lrm 497M 2.4M 495M 1% /lib/modules/2.6.28-11-server/volatile
/dev/sda5 228M 14M 203M 7% /boot
And here's the partitions:
...@CHI-CAPPORTAL:~$ sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3b7cf071
Device Boot Start End Blocks Id System
/dev/sda1 * 1 9695 77875056 8e Linux LVM
/dev/sda2 9696 9726 249007+ 5 Extended
/dev/sda5 9696 9726 248976 83 Linux
If I use the dd if=/dev/sda of=<Some Image File> will that capture all the partions? Also will the target HDD need to be the exact same size?
I won't know the destination HDD size because the remote offices are providing their own gear. So my drive image needs to work regardless of the destination HDD size. So any suggestions are welcome.
Thanks!
To start here's what I'm working with starting with the df output:
...@CHI-CAPPORTAL:~$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/CHI--CAPPORTAL-root
71G 701M 67G 2% /
tmpfs 497M 0 497M 0% /lib/init/rw
varrun 497M 76K 497M 1% /var/run
varlock 497M 0 497M 0% /var/lock
udev 497M 136K 497M 1% /dev
tmpfs 497M 0 497M 0% /dev/shm
lrm 497M 2.4M 495M 1% /lib/modules/2.6.28-11-server/volatile
/dev/sda5 228M 14M 203M 7% /boot
And here's the partitions:
...@CHI-CAPPORTAL:~$ sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3b7cf071
Device Boot Start End Blocks Id System
/dev/sda1 * 1 9695 77875056 8e Linux LVM
/dev/sda2 9696 9726 249007+ 5 Extended
/dev/sda5 9696 9726 248976 83 Linux
If I use the dd if=/dev/sda of=<Some Image File> will that capture all the partions? Also will the target HDD need to be the exact same size?
I won't know the destination HDD size because the remote offices are providing their own gear. So my drive image needs to work regardless of the destination HDD size. So any suggestions are welcome.
Thanks!