15385
![]() |
|
|
|
|
#1
|
|||
|
|||
|
Portupgrades have left my system bumping up against the limit of space in /usr. I am running freeBSD as a virtual box guest. I have virtual box set to auto resize however, that doesn't increase the size of /usr.
How can i increase the size of /usr? I have read several posts and am still not sure how to continue. Last edited by hitchup; December 24th, 2009 at 15:55. |
|
#3
|
||||
|
||||
|
Move /usr/ports to it's own filesystem (with lots of room).
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#4
|
|||
|
|||
|
I second SD's suggestion...
|
|
#5
|
||||
|
||||
|
or move /usr/local, & symlink /usr/ports to /usr/local/ports.
of course with a virtual machine it shouldn't be a huge deal to mount a second virtual hard drive, make the new partitions the sizes you want, dump | restore to the new virtual drive (set up the boot code &cet obviously), & restart with the new virtual drive.
__________________
Quid habemus reliquum? Nutrimentum anatum! Внимание: лифт вниз не поднимает |
|
#6
|
|||
|
|||
|
I have an additional 6+GB(unused) on drive ad0, I have unsucessfully tried to add slice s2 using sysinstall. It fails on Write in that ad0s1 is in use and can't be written to(i think). I desire to add this as an additional file system and assign it a mount point say /usr/local and then mkdir ports and move the contents of /usr/ports to it and then symlink to it from /usr/ports.
How do I add the slice so that it persists? Is my logic correct? Thanks |
|
#7
|
||||
|
||||
|
Quote:
# sysctl kern.geom.debugflags=16 before you can edit the boot disk.
__________________
Quid habemus reliquum? Nutrimentum anatum! Внимание: лифт вниз не поднимает |
|
#8
|
|||
|
|||
|
I goofed.
I added the new partition ad0s2d to fstab. It is detecting an error. No Superblock found. How can I recover? The file system comes up read only and I can't invoke any editors. |
|
#9
|
||||
|
||||
|
Quote:
![]() Code:
# fsck -y # mount -u / # mount -t ufs -a # swapon -a
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
hitchup (December 24th, 2009) | ||
|
#10
|
|||
|
|||
|
@SirDice
Thanks, File system rw and edited fstab. fsck -u: Code:
/dev/ados2d Cannot find file system superblock ioctl (GCINFO): Inappropriate ioctl for device fsck_ufs: can't read disk label |
|
#11
|
|||
|
|||
|
Using bsdlabel(8) and reading the handbook (especially section 18.3.2.1).
And yes, be very careful with these commands, read their man pages, check the options used and make sure you're writing to the device you want.
__________________
May the source be with you! |
|
#12
|
|||
|
|||
|
No longer working on this. Starting over. Messed up the partition table.
|
|
#13
|
|||
|
|||
|
Then you don't know partition tables can be edited entirely using
# fdisk -u.
__________________
May the source be with you! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] resizing myusr partition to make space for /var | mista_tongz | General | 8 | October 7th, 2010 21:54 |
| [Solved] /usr full | janroc | General | 11 | July 8th, 2010 08:13 |
| resizing partitions/slices or replace FreeBSD | Mike_MT | General | 11 | July 27th, 2009 09:13 |
| [Solved] move /usr fs to other disk | cx1964 | Installing & Upgrading | 10 | May 9th, 2009 11:46 |
| how to extend the /usr partition | coolatt | Installing & Upgrading | 2 | March 31st, 2009 19:27 |