As the blinking LED apparently indicates which IP address has been leased, I assumed from then on everything is ok when seeing that. I didn't knew about that feature.
So I continued with scanning my network. Problem here is that some hardware visible on my local network does not identify itself. Printers, iPads, Phones, ... the like are noticed as is. But some other hardware isn't. This is hardware owned by my cable vendor. Also the B3 doesn't seem to go noticed on my network easily.
So for those who don't know: look for IP's linked to MAC addresses starting with 00:22:02
Connected over ssh and logged in with root/excito
Did some basic checks and wrote down some info
Code: Select all
[root@b3-install ~]# uname -a
Linux b3-install 4.9.34-b3-install #1 Tue Jul 4 00:07:11 EDT 2017 armv5tel GNU/Linux
Code: Select all
[root@b3-install ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:22:02:00:1F:02
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:38
eth1 Link encap:Ethernet HWaddr 00:22:02:00:1F:03
inet addr:192.168.1.240 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::222:2ff:fe00:1f03/64 Scope:Link
inet6 addr: 2a02:1811:510:cb00:222:2ff:fe00:1f03/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1477 errors:0 dropped:6 overruns:0 frame:0
TX packets:467 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:121012 (118.1 KiB) TX bytes:74102 (72.3 KiB)
Interrupt:39
Code: Select all
[root@b3-install /]# fdisk -l
Disk /dev/ram0: 2 MiB, 2097152 bytes, 4096 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
**SOME MORE RAM DISKS**
Disk /dev/ram15: 2 MiB, 2097152 bytes, 4096 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/sda: 7.5 GiB, 8002732032 bytes, 15630336 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x9b078e47
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 15630335 15628288 7.5G c W95 FAT32 (LBA)
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: ABC86EB6-AD19-4755-B237-7FA9A0005CB6
Device Start End Sectors Size Type
/dev/sdb1 2048 20973567 20971520 10G Linux filesystem
/dev/sdb2 20973568 22022143 1048576 512M Linux swap
Code: Select all
[root@b3-install /]# mount
none on / type tmpfs (rw,relatime)
/dev/sda1 on /mnt/usb type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
devtmpfs on /dev type devtmpfs (rw,relatime,size=257472k,nr_inodes=64368,mode=755)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=666)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /tmp type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
sysfs on /sys type sysfs (rw,relatime)
So far so good.
sda1 is my USB rescue disk
sdb1/2 is the physical disk which was partitioned few posts earlier,
but didn't boot as the u-boot environment
no longer looks for sd but md devices (Raid) <= see below
So I dropped sdb1 and sdb2 partitions for starters
Code: Select all
[root@b3-install ~]# sfdisk --delete /dev/sdb
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
verified outcome:
Code: Select all
[root@b3-install ~]# fdisk -l /dev/sdb
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: ABC86EB6-AD19-4755-B237-7FA9A0005CB6
Then create new partitions:
/boot 300MiB
/root 10GiB
/swap 512MiB
/home (the rest)
Code: Select all
[root@b3-install ~]# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-3907029134, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-3907029134, default 3907029134): +300M
Created a new partition 1 of type 'Linux filesystem' and of size 300 MiB.
Command (m for help): n
Partition number (2-128, default 2):
First sector (616448-3907029134, default 616448):
Last sector, +sectors or +size{K,M,G,T,P} (616448-3907029134, default 3907029134): +10G
Created a new partition 2 of type 'Linux filesystem' and of size 10 GiB.
Command (m for help): n
Partition number (3-128, default 3):
First sector (21587968-3907029134, default 21587968):
Last sector, +sectors or +size{K,M,G,T,P} (21587968-3907029134, default 3907029134): +512M
Created a new partition 3 of type 'Linux filesystem' and of size 512 MiB.
Command (m for help): t
Partition number (1-3, default 3):
Hex code (type L to list all codes): 19
Changed type of partition 'Linux filesystem' to 'Linux swap'.
Command (m for help): n
Partition number (4-128, default 4):
First sector (22636544-3907029134, default 22636544):
Last sector, +sectors or +size{K,M,G,T,P} (22636544-3907029134, default 3907029134):
Created a new partition 4 of type 'Linux filesystem' and of size 1.8 TiB.
Command (m for help): p
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: ABC86EB6-AD19-4755-B237-7FA9A0005CB6
Device Start End Sectors Size Type
/dev/sdb1 2048 616447 614400 300M Linux filesystem
/dev/sdb2 616448 21587967 20971520 10G Linux filesystem
/dev/sdb3 21587968 22636543 1048576 512M Linux swap
/dev/sdb4 22636544 3907029134 3884392591 1.8T Linux filesystem
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
Referred to Mouette's HowTo to setup full Raid on B2
Create RAID array:
Code: Select all
[root@b3-install ~]# mdadm --create --metadata=0.9 --level=1 --raid-devices=2 /dev/md0 /dev/sdb1 missing
mdadm: array /dev/md0 started.
[root@b3-install ~]# mdadm --create --metadata=0.9 --level=1 --raid-devices=2 /dev/md1 /dev/sdb2 missing
mdadm: array /dev/md1 started.
[root@b3-install ~]# mdadm --create --metadata=0.9 --level=1 --raid-devices=2 /dev/md2 /dev/sdb3 missing
mdadm: array /dev/md2 started.
[root@b3-install ~]# mdadm --create --metadata=0.9 --level=1 --raid-devices=2 /dev/md3 /dev/sdb4 missing
mdadm: array /dev/md3 started.
Create LVM:
Code: Select all
[root@b3-install ~]# pvcreate /dev/md3
Physical volume "/dev/md3" successfully created.
[root@b3-install ~]# vgcreate bubba3 /dev/md3
Volume group "bubba3" successfully created
[root@b3-install ~]# lvcreate -l 100%FREE --name storage bubba3
Logical volume "storage" created.
Format SWAP:
Code: Select all
[root@b3-install ~]# mkswap /dev/md2
Setting up swapspace version 1, size = 512 MiB (536801280 bytes)
no label, UUID=d7c925f6-7dc0-41f0-b992-1dd58e98db5f
Format and mount /:
Code: Select all
[root@b3-install ~]# mkfs.ext3 -q -L "Bubba root" /dev/md1
[root@b3-install ~]# tune2fs -c0 -i0 /dev/md1
tune2fs 1.43.4 (31-Jan-2017)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
[root@b3-install ~]# mkdir /mnt/bubba
[root@b3-install ~]# mount /dev/md1 /mnt/bubba
Format and mount /boot:
Code: Select all
[root@b3-install ~]# mkfs.ext2 -q -L "Bubba boot" /dev/md0
[root@b3-install ~]# tune2fs -c0 -i0 /dev/md0
tune2fs 1.43.4 (31-Jan-2017)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
[root@b3-install ~]# mkdir /mnt/bubba/boot
[root@b3-install ~]# mount /dev/md0 /mnt/bubba/boot
Format and mount /home
Code: Select all
[root@b3-install ~]# mkfs.ext3 -q -L "Bubba home" /dev/mapper/bubba3-storage
[root@b3-install ~]# tune2fs -c0 -i0 /dev/mapper/bubba3-storage
tune2fs 1.43.4 (31-Jan-2017)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
[root@b3-install ~]# mkdir /mnt/bubba/home
[root@b3-install ~]# mount /dev/mapper/bubba3-storage /mnt/bubba/home
Extract the OS (Actual installation)
Code: Select all
[root@b3-install ~]# cd /mnt/usb/install/stretch
[root@b3-install stretch]# tar -xf b3-stretch-1.0-20170703-2130.txz -C /mnt/bubba
Edit fstab
Code: Select all
[root@b3-install stretch]# cd /mnt/bubba/etc/
[root@b3-install etc]# vi fstab
/dev/md1 / ext3 noatime,defaults 0 1
/dev/md0 /boot ext2 noatime,defaults 0 2
/dev/mapper/bubba3-storage /home ext3 defaults 0 2
/dev/md2 none swap sw 0 0
usbfs /proc/bus/usb usbfs defaults 0 0
/proc /proc proc defaults 0 0
Create softlink in /boot
Code: Select all
[root@b3-install etc] cd /
[root@b3-install /] mkdir boot
[root@b3-install /] cd boot
[root@b3-install boot] ln -s . /mnt/bubba/boot/boot
Now for the u-boot...things are getting tricky see next post