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. ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| ||||
| 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. :-) |