HI,
I have a small FreeBSD 7.3 installation on a 160GB HDD. When the disk was created, it had 5 slices - / created with 1GB, swap created with 4GB, /var created with 4GB, /tmp created with 4GB, and /usr created with the remainder of the 160GB disk space.
I need to create the same setup on a 40GB SSD drive - /, swap, /var, and /tmp will be the same sizes, except that the /usr (remainder) will obviously be MUCH smaller.
I then need to copy all of the information from the 160GB HDD slices to the respective slices on the 40GB SSD. I KNOW that the /usr slice will be SMALLER than the remainder space on the 40GB SSD /usr slice.
I have found several methods of INCREASING the size of a partition, but not shrinking. And if I understand what I am reading, I need to shrink the slice, not the partition. The drive was created with "use all available space" on the ad4 drive and the slices are ad4s1a through ad4s1f (except ad4s1c).
And I cannot find the correct command to do the copying so that the new 40GB SSD will be a bootable device. I think I need to create the 40GB SSD in fdisk with the five appropriate slices and then shrink /usr and copy?
I am very new at FreeBSD, so if this is a really dumb question with an obvious answer, well, we all started from scratch at some time...
Thanks,
Dale Kline
I have a small FreeBSD 7.3 installation on a 160GB HDD. When the disk was created, it had 5 slices - / created with 1GB, swap created with 4GB, /var created with 4GB, /tmp created with 4GB, and /usr created with the remainder of the 160GB disk space.
I need to create the same setup on a 40GB SSD drive - /, swap, /var, and /tmp will be the same sizes, except that the /usr (remainder) will obviously be MUCH smaller.
I then need to copy all of the information from the 160GB HDD slices to the respective slices on the 40GB SSD. I KNOW that the /usr slice will be SMALLER than the remainder space on the 40GB SSD /usr slice.
I have found several methods of INCREASING the size of a partition, but not shrinking. And if I understand what I am reading, I need to shrink the slice, not the partition. The drive was created with "use all available space" on the ad4 drive and the slices are ad4s1a through ad4s1f (except ad4s1c).
And I cannot find the correct command to do the copying so that the new 40GB SSD will be a bootable device. I think I need to create the 40GB SSD in fdisk with the five appropriate slices and then shrink /usr and copy?
I am very new at FreeBSD, so if this is a really dumb question with an obvious answer, well, we all started from scratch at some time...
Thanks,
Dale Kline