On Friday 16 September 2011 17:58:11 Dale wrote:

> Hmm, maybe I am thinking of ext4?  Life's confusing.  :/

In case it helps, here's the relevant part of my fstab:

/dev/sda1           /boot               ext2    noatime,noauto 1 2
/dev/md3            /                   ext4    noatime        1 1
/dev/vg1/home       /home               ext4    noatime        1 2
/dev/vg1/common     /home/prh/common    ext4    noatime        1 3
/dev/vg1/boinc      /home/prh/boinc     ext4    noatime        1 3
/dev/vg1/virt       /home/prh/.VirtualBox  ext4 noatime        1 3
/dev/vg1/portage    /usr/portage        ext4    noatime        1 2
/dev/vg1/packages   /usr/portage/packages  ext4 noatime        1 3
/dev/vg1/distfiles  /usr/portage/distfiles ext4 noatime        1 3
/dev/vg1/local      /usr/local          ext4    noatime        1 2
/dev/vg1/opt        /opt                ext4    noatime        1 2
/dev/vg1/srv        /srv                ext4    noatime        1 2
/dev/vg1/chroot     /mnt/atom           ext4    noatime        1 2

The common partition is where I keep my user stuff that is common among 
distros. Boinc is where boinc runs, and virt is where VirtualBox runs. I 
don't know why I still have a srv there, as Gentoo doesn't use it (maybe I 
should reallocate it to /var or /var/tmp). Chroot is where I mount my Atom 
box's portage directory so that I can use the workstation to build packages 
for binary installation on the Atom box - saves oodles of time and heat.

I have a /dev/vg2 as well, for experimental installation of other distros; 
those that can be installed into virtual partitions, that is.

The following commands would re-create those partitions and file systems, 
having created the physical volume and the volume group vg1:

lvcreate -L 10G -n opt vg1
lvcreate -L 12G -n distfiles vg1
lvcreate -L 12G -n srv vg1
lvcreate -L 15G -n home vg1
lvcreate -L 15G -n virt vg1
lvcreate -L 20G -n boinc vg1
lvcreate -L 20G -n chroot vg1
lvcreate -L 20G -n packages vg1
lvcreate -L 2G -n local vg1
lvcreate -L 50G -n common vg1
lvcreate -L 8G -n portage vg1
mkfs.ext4 -j -O dir_index /dev/vg1/boinc
mkfs.ext4 -j -O dir_index /dev/vg1/chroot
mkfs.ext4 -j -O dir_index /dev/vg1/common
mkfs.ext4 -j -O dir_index /dev/vg1/distfiles
mkfs.ext4 -j -O dir_index /dev/vg1/home
mkfs.ext4 -j -O dir_index /dev/vg1/local
mkfs.ext4 -j -O dir_index /dev/vg1/opt
mkfs.ext4 -j -O dir_index /dev/vg1/packages
mkfs.ext4 -j -O dir_index /dev/vg1/portage
mkfs.ext4 -j -O dir_index /dev/vg1/srv
mkfs.ext4 -j -O dir_index /dev/vg1/virt

That list was created by David Noon's zsh script, which he posted here 
recently. In fact I have file-systm labels written by mkfs.ext4 as well, but 
David's script doesn't notice those.

Sda and sdb are 1TB SATA Samsung devices.

HTH.

-- 
Rgds
Peter           Linux Counter 5290, 1994-04-23

Reply via email to