summaryrefslogtreecommitdiffstats
path: root/target/board/vbox_x86/disk_layout.conf
blob: 12241ab4629118d798163ae2c280229e830a8d0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Best to align all partion start/ends on a cylinder boundary (fdisk prefers it)
# 512 bytes/sector
# 63 sectors/track
# 32 tracks/cylinder

# LBAs are in 'k', so...
# 1008 blocks (1k each) (1032192 bytes) / cylinder

device {

    path /dev/block/sda

    scheme mbr

    # bytes in a disk sector (== 1 LBA), must be a power of 2!
    sector_size 512

    # Start_lba should be on a cylindar boundary.
    start_lba 63

    # Autodetect disk size if == 0
    num_lba 0

    partitions {
        # /dev/sdX1
        sysloader {
            active y
            type linux
            # 8 cyls in length... about 8M
            len 8064
        }

        # /dev/sdX2
        recovery {
            active y
            type linux
            # 8 cyls in length... about 8M
            len 8064
        }

        # /dev/sdX3
        boot {
            active y
            type linux
            # 8 cyls in length... about 8M
            len 8064
        }

        # /dev/sdX4
        # (extended partion begins)

        # /dev/sdX5
        cache {
            type linux
            len 512M
        }

        # /dev/sdX6
        system {
            type linux
            len 512M
        }

        # /dev/sdX7
        third_party {
            type linux
            len 512M
        }

        # /dev/sdX8
        data {
            type linux
            len -1
        }
    }
}