Comments (7)
Ping :)
The Arch box would be a lot easier to use (at least to me) if (a) there was a single filesystem, not an arbitrary split between /
and /home
(b) the default HDD was larger -- say 40GB, dynamically allocated.
from vagrantboxes.
@neilconway Apology for the late response ;-D Have been busy with stuff.
A sweet /home
on separate partition or block device is just a long time best practice as a desktop user.
The current Arch Linux vagrant base box has a small 10GB ONLY virtual disk, which is too small for most use cases nowadays.
NOTE: When the base box (VirtualBox) VM was initially created, I just wanted to make it a reusable minimum install with pretty much all tools I needed to do the daily job, if more storage is needed personally I'll add more Virtual HDDs and add them to existing LVM (VG) or create a separate file system and mount it.
Later on I made it a vagrant base box when learning Vagrant. I didn't expect the Arch Linux base box to be this popular ;-D
I have 2 options:
- resize the current 10GB virtual hard disk to 40GB while still keep
/
(30GB) and/home
(10GB) separate - resize the current 10GB virtual hard disk to 40GB and create a single
/
file system on the block device
I prefer option 1 at this stage, let me know your thoughts.
from vagrantboxes.
@terrywang Thanks for the response!
My personal opinion is that a separate partition for /home
made sense in the past (especially for multi-user Unix installations -- e.g., make it harder for a rogue user to use up all disk-space on the root partition), but is less sensible now, since many/most Vagrant boxes are single-user. I think option 2 is the best default -- of course people can reconfigure it as needed, but it mean the most flexibility for how users want to allocate disk space.
from vagrantboxes.
@neilconway Already tried option 2 and the process is pretty straightforward.
Will make the change in the next update and document process in this issue (later on move to a wiki page) for the curious cats ;-D
from vagrantboxes.
@terrywang Awesome!! Thank you.
from vagrantboxes.
Steps to move to a single /
file system and increase the VDI size from 10GB to 40GB.
NOTE: Before proceeding, copy entire
/home
over to a temporary directory, e.g. using my personal favourite toolrsync
->rsync -axHAX --progress --stats /home /mnt
.
- Unmount
/home
->umount -l /home
rm -rf
/home; mv /mnt/home /
;-D- Use
parted
to remove second partition, in this case/dev/sda2
, number 2 ->rm 2
- Boot with System Rescue CD ISO
- Resize the first partition, in this case grow it using all available free space
resizepart 1 100%
- Quit parted
- Run fsck against the resized
/
->e2fsck -f /dev/sda1
- Grow the
ext4
file system (as the underlying block device size changed) ->resize2fs -Fp /dev/sda1
- Remove
/dev/sda2
entry from/etc/fstab
, otherwisesystemd
will get stuck on boot - Now we can resize the VDI using VirtualBox's lovely and powerful CLI ->
VBoxManage modifyhd --resize 40960 /path/to/arch.vdi
- Boot with system rescue CD ISO again
- Repeat step 4,5,6,7,8
- Done
from vagrantboxes.
Looks like this can be closed
from vagrantboxes.
Related Issues (20)
- Sudo not working HOT 2
- umask override in ~/.profile for root and vagrant HOT 1
- Missing veewee files for Arch Linux HOT 2
- Remove /etc/gemrc HOT 2
- mv: missing destination file operand after โ/tmp/vagrant_networkโ HOT 2
- Upgrade archlinux box for convenience HOT 3
- [.tmux.conf] send-prefix not bound HOT 1
- OEL 7 does not have puppet installed HOT 3
- Request for enhancement: put these boxes to altas HOT 1
- [Arch] System no longer updates because of issue with ca-certificates-utils HOT 2
- Unable to obtain new ArchLinux image (v201704) from atlas.hashicorp.com HOT 2
- create libvirt box HOT 1
- /etc HOT 1
- /vagrant has no permissions for user vagrant HOT 3
- Archlinux box fails to update due to libxfont and srm HOT 1
- up2date package HOT 2
- Can't ping a fresh instance (v3.18.0621) HOT 1
- [Recommend] use linux-lts kernel for archlinux box HOT 1
- ol5 box not found HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vagrantboxes.