fvdw wrote:The reason we want to boot from /dev/md0 and using autodetect raid.
/dev/md0 should be on the partition containing the root file system we want to load, in fvdw-sl case we want to use sda10. This rootfs will load a chrooted fvdw-sl linux system from sda1 or sda2. In this way we can update firmware. For instance we are running from sda1, the new firmware will then be stored on sda2 and on sda10 we set chrooted boot partition to sda2 iso sda1. So sfa2 will be used in next boot.
Afaik it should be possible to create a raid1 array using only partition.vif thats not possible we can add sda9 and make raid1 with sda9 and sda10.
Why we want to use sda1 and sra2 in this way is to keep same setup as used on lacie nas which prevent making a lot of adaptations in the firmware
Ok but software raid is build from partitions - so in my opinion there is no point to create two separate partitions sdb1 and sdb2 if we do not create array.
I think it should looks like this:
sdX1 - 512MB ext3 fvdw-sl firmware (what is that precisely?)
sdX2 - 512MB swap
sdX3 - 768MB ext3? (backup if using p5 fails, for the moment no use)
sdX4 - 768MB ext3? (fvdw-sl database and persitent files)
sdX5 - 10MB ext3? (uImage - which one? original or that one you attached
here?)
sdX6 - 2MB (barebox)
sdX7 and sdX8 = /dev/md0 (FD00 - raid) That will be the root partition
sdX9 - ext4 - rest of free space.
P.S. Ok - I think I understand now.
- Code: Select all
PT fdisk (gdisk) version 1.0.9
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 976773168 sectors, 465.8 GiB
Model: 00LPVX-22V0TT0
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 2402C150-1331-4EA9-A85D-E33EE5ECC194
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2029 sectors (1014.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1050623 512.0 MiB 8300
2 1050624 2099199 512.0 MiB 8300
3 2099200 3147775 512.0 MiB 8200
4 3147776 4720639 768.0 MiB 8300
5 4720640 6293503 768.0 MiB 8300
6 6293504 6313983 10.0 MiB 8300
7 6313984 6318079 2.0 MiB 8300
8 975724544 976773119 512.0 MiB FD00
9 974675968 975724543 512.0 MiB FD00
10 6318080 974675967 461.7 GiB 8300
Is that correct?