puflogh300X74.gif

Polarwave's OpenBSD
Tips and Tricks for Newbies

| Partitioning Tip |

| Home | Tips and Tricks | Links | News Feeds | Fun | Contact | Blog (Opens in New Page) |


Keep Partitions Intact When Installing

Let's say you've been running OpenBSD 4.3, 4.4 has just come out and you want to
upgrade, but you don't want to do a regular 'in place' upgrade for whatever reason.
Fear of old libraries lying around, whatever. But, when you install, you would like to
keep your /home partition intact rather than having to copy all your data back later.
YOU DO BACKUP, RIGHT? :-) You just go through the normal installation routine
until you get into disklabel(8). You like the way your partitions are sized and laid
out and you don't want to make any changes, so, YOU DON'T! You leave them just
like they are and do a 'w' (write) and 'q' (quit). Now disklabel(8) takes you to the
part where you enter the mount points for each partition. I've put two pictures here
to show the way it would normally be done if you wanted to wipe everything out on
all partitions, and the way it would be done if you wanted to keep, for instance, your
/home partition intact. Normally you'd accept the defaults. For example:

disklabel_ex1.jpg

But you can see in the second picture below here that [/home] has 'none' beside it.
When your choice comes for that partition, you type 'none' (minus quotes), then hit
<enter>.

disklabel_ex2.jpg

Now, when it gives the following warning,

disklabel_ex3.jpg

you can go ahead and enter 'yes'. Since you haven't given a mount point for /home,
newfs(8) won't be run on that partition. After the install when you reboot, you can
edit fstab(5) under your /etc directory and enter /home the way it was in your
previous release's configuration.

Back to Tips and Tricks
Home

Delicious Bookmark this on Delicious

No affiliation between this site and the OpenBSD project exists or is implied.

valid-html401.png