Unix Technical Forum

Combining OpenBSD Partitions

This is a discussion on Combining OpenBSD Partitions within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> A long time ago, I thought it was a good idea to have /usr and /usr/local on separate partitions. ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 07:23 AM
Shane Almeida
 
Posts: n/a
Default Combining OpenBSD Partitions

A long time ago, I thought it was a good idea to have /usr and /usr/local
on separate partitions. Now I'm finding that /usr is too small and
/usr/local has a lot of wasted space. Is there an easy way to combine the
partitions?

# df
Filesystem 512-blocks Used Avail Capacity Mounted on
/dev/wd0a 505022 128712 351060 27% /
/dev/wd0d 1012926 14 962266 0% /tmp
/dev/wd0f 3045294 2074068 818962 72% /usr
/dev/wd0g 1012926 223030 739250 23% /usr/local
/dev/wd0e 505086 278772 201060 58% /var
/dev/wd0h 51017832 37973806 10493136 78% /home
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 07:23 AM
gargoyle
 
Posts: n/a
Default Re: Combining OpenBSD Partitions

On 2005-01-26, Shane Almeida <almeida.spam.is.evil@spam.is.evil.mindless.com> wrote:
> Filesystem 512-blocks Used Avail Capacity Mounted on
> /dev/wd0f 3045294 2074068 818962 72% /usr
> /dev/wd0g 1012926 223030 739250 23% /usr/local
> /dev/wd0h 51017832 37973806 10493136 78% /home


You got plenty of room on /home, so why not drop to single user mode
and:
tar zcvpf /home/u.tar.gz /usr
tar zcvpf /home/ul.tar.gz /usr/local
disklabel wd0 (delete f&g, then create a new f that spans both)
format the new partition, edit the fstab, extract the tarballs

It's not strictly necessary to compress the tarballs, but I like to do
that and then gzip -t them, to make sure they're ok *before* doing any
kind of irreversible disk operation. Better safe than sorry...

BTW, do you regularly backup? If not, now's a good time to start. :-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com