Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] grub and what happens exactly when booting.
Date: Fri, 16 Sep 2011 21:04:52
Message-Id: 201109162203.21169.peter@humphrey.ukfsn.org
In Reply to: Re: [gentoo-user] grub and what happens exactly when booting. by Dale
1 On Friday 16 September 2011 17:58:11 Dale wrote:
2
3 > Hmm, maybe I am thinking of ext4? Life's confusing. :/
4
5 In case it helps, here's the relevant part of my fstab:
6
7 /dev/sda1 /boot ext2 noatime,noauto 1 2
8 /dev/md3 / ext4 noatime 1 1
9 /dev/vg1/home /home ext4 noatime 1 2
10 /dev/vg1/common /home/prh/common ext4 noatime 1 3
11 /dev/vg1/boinc /home/prh/boinc ext4 noatime 1 3
12 /dev/vg1/virt /home/prh/.VirtualBox ext4 noatime 1 3
13 /dev/vg1/portage /usr/portage ext4 noatime 1 2
14 /dev/vg1/packages /usr/portage/packages ext4 noatime 1 3
15 /dev/vg1/distfiles /usr/portage/distfiles ext4 noatime 1 3
16 /dev/vg1/local /usr/local ext4 noatime 1 2
17 /dev/vg1/opt /opt ext4 noatime 1 2
18 /dev/vg1/srv /srv ext4 noatime 1 2
19 /dev/vg1/chroot /mnt/atom ext4 noatime 1 2
20
21 The common partition is where I keep my user stuff that is common among
22 distros. Boinc is where boinc runs, and virt is where VirtualBox runs. I
23 don't know why I still have a srv there, as Gentoo doesn't use it (maybe I
24 should reallocate it to /var or /var/tmp). Chroot is where I mount my Atom
25 box's portage directory so that I can use the workstation to build packages
26 for binary installation on the Atom box - saves oodles of time and heat.
27
28 I have a /dev/vg2 as well, for experimental installation of other distros;
29 those that can be installed into virtual partitions, that is.
30
31 The following commands would re-create those partitions and file systems,
32 having created the physical volume and the volume group vg1:
33
34 lvcreate -L 10G -n opt vg1
35 lvcreate -L 12G -n distfiles vg1
36 lvcreate -L 12G -n srv vg1
37 lvcreate -L 15G -n home vg1
38 lvcreate -L 15G -n virt vg1
39 lvcreate -L 20G -n boinc vg1
40 lvcreate -L 20G -n chroot vg1
41 lvcreate -L 20G -n packages vg1
42 lvcreate -L 2G -n local vg1
43 lvcreate -L 50G -n common vg1
44 lvcreate -L 8G -n portage vg1
45 mkfs.ext4 -j -O dir_index /dev/vg1/boinc
46 mkfs.ext4 -j -O dir_index /dev/vg1/chroot
47 mkfs.ext4 -j -O dir_index /dev/vg1/common
48 mkfs.ext4 -j -O dir_index /dev/vg1/distfiles
49 mkfs.ext4 -j -O dir_index /dev/vg1/home
50 mkfs.ext4 -j -O dir_index /dev/vg1/local
51 mkfs.ext4 -j -O dir_index /dev/vg1/opt
52 mkfs.ext4 -j -O dir_index /dev/vg1/packages
53 mkfs.ext4 -j -O dir_index /dev/vg1/portage
54 mkfs.ext4 -j -O dir_index /dev/vg1/srv
55 mkfs.ext4 -j -O dir_index /dev/vg1/virt
56
57 That list was created by David Noon's zsh script, which he posted here
58 recently. In fact I have file-systm labels written by mkfs.ext4 as well, but
59 David's script doesn't notice those.
60
61 Sda and sdb are 1TB SATA Samsung devices.
62
63 HTH.
64
65 --
66 Rgds
67 Peter Linux Counter 5290, 1994-04-23

Replies

Subject Author
Re: [gentoo-user] grub and what happens exactly when booting. Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] grub and what happens exactly when booting. Dale <rdalek1967@×××××.com>