Closed ghost closed 8 years ago
BSDRP version 1.61 is not released: Only 1.60 is available.
Disk size requirement changed from 512MB to 1GB for a fresh install of 1.60 release (only fresh install: upgrade is still possible to 1.60 on a previous BSDRP installed on a 512MB disk).
But for the next release (like 1.61 for your custom build), the upgrade image will be for 1GB disk only, then if your first installation is previous to 1.60, you need to issue this command line before starting an upgrade:
system resize-system-slice 964000
warning: In some case you need to use this command twice (after the first reboot).
okay well one was successful, seems the second i tried this on though it seems to hang
./system resize-system-slice 964000
So on the first system that failed to resize, i did get it to reboot and it came back, however dmesg just after the reboot is showing GEOM_PART: integrity check failed (ada0s2, BSD) GEOM_PART: integrity check failed (diskid/DISK-2010083100052C562C56s2, BSD)
guess maybe the disk is bad? or somehow corrupted. ada0 at ata0 bus 0 scbus0 target 0 lun 0 ada0: <SMART IDE 20060811> ATA device ada0: Serial Number 2010083100052C562C56 ada0: 16.700MB/s transfers (WDMA2, PIO 512bytes) ada0: 991MB (2030112 512 byte sectors) ada0: Previously was known as ad0 GEOM_PART: integrity check failed (ada0s2, BSD) GEOM_PART: integrity check failed (diskid/DISK-2010083100052C562C56s2, BSD) SMP: AP CPU #1 Launched! Timecounter "TSC-low" frequency 1795533610 Hz quality 1000 Root mount waiting for: usbus3 usbus2 usbus1 usbus0 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered Root mount waiting for: usbus3 Root mount waiting for: usbus3 uhub3: 6 ports with 6 removable, self powered Trying to mount root from ufs:/dev/ufs/BSDRPs1a [ro]... GEOM_PART: integrity check failed (diskid/DISK-2010083100052C562C56s2, BSD) GEOM_PART: integrity check failed (diskid/DISK-2010083100052C562C56s2, BSD)
and this is how i recovered to a fully working system
[root@router1]~# dd if=/dev/ada0s1 of=/dev/ada0s2 ^C23475+0 records in 23475+0 records out 12019200 bytes transferred in 13.301065 secs (903627 bytes/sec) [root@router1]~# gpart show => 63 2030049 ada0 MBR (991M) 63 465822 1 freebsd active 465885 63 - free - (32K) 465948 465822 2 freebsd (227M) 931770 32130 3 freebsd (16M) 963900 1066212 4 freebsd (521M)
=> 0 465822 ada0s1 BSD (227M) 0 16 - free - (8.0K) 16 465806 1 !0 (227M)
=> 0 465822 ada0s2 BSD (227M) 0 16 - free - (8.0K) 16 465806 1 !0 (227M)
=> 63 2030049 diskid/DISK-2010083100052C562C56 MBR (991M) 63 465822 1 freebsd active 465885 63 - free - (32K) 465948 465822 2 freebsd (227M) 931770 32130 3 freebsd (16M) 963900 1066212 4 freebsd (521M)
=> 0 465822 diskid/DISK-2010083100052C562C56s1 BSD (227M) 0 16 - free - (8.0K) 16 465806 1 !0 (227M)
=> 0 465822 diskid/DISK-2010083100052C562C56s2 BSD (227M) 0 16 - free - (8.0K) 16 465806 1 !0 (227M)
[root@router1]~# system resize-system-slice 964000
Done.
=> 0 963963 ada0s1 BSD (471M) 0 16 - free - (8.0K) 16 465806 1 !0 (227M) 465822 498141 - free - (243M)
=> 63 2030049 diskid/DISK-2010083100052C562C56 MBR (991M) 63 963963 1 freebsd active 964026 63 - free - (32K) 964089 963900 2 freebsd (471M) 1927989 63 - free - (32K) 1928052 32697 3 freebsd (16M) 1960749 63 - free - (32K) 1960812 69237 4 freebsd (34M) 2030049 63 - free - (32K)
=> 0 963963 diskid/DISK-2010083100052C562C56s1 BSD (471M) 0 16 - free - (8.0K) 16 465806 1 !0 (227M) 465822 498141 - free - (243M)
[root@router1]~# ssh dingo@162.217.150.80 cat /home/dingo/BSDRP-1.61-upgrade-amd64-vga.img.xz | xzcat | upgrade
1 0x80 0: 1: 1 0xa5 956: 5:63 63 963963 2 0x00 956: 7: 1 0xa5 1023:255:63 964089 963900 3 0x00 1023:255:63 0xa5 1023:255:63 1928052 32697 4 0x00 1023:255:63 0xa5 1023:255:63 1960812 69237
version=2.0 drive=0x80 mask=0x3 ticks=18 bell=# (0x23) options=packet,update,nosetdrv volume serial ID 9090-9090 default_selection=F2 (Slice 2)
=> 0 963963 ada0s1 BSD (471M) 0 16 - free - (8.0K) 16 465806 1 !0 (227M) 465822 498141 - free - (243M)
=> 0 963900 ada0s2 BSD (471M) 0 16 - free - (8.0K) 16 963821 1 !0 (471M) 963837 63 - free - (32K)
=> 63 2030049 diskid/DISK-2010083100052C562C56 MBR (991M) 63 963963 1 freebsd (471M) 964026 63 - free - (32K) 964089 963900 2 freebsd active 1927989 63 - free - (32K) 1928052 32697 3 freebsd (16M) 1960749 63 - free - (32K) 1960812 69237 4 freebsd (34M) 2030049 63 - free - (32K)
=> 0 963963 diskid/DISK-2010083100052C562C56s1 BSD (471M) 0 16 - free - (8.0K) 16 465806 1 !0 (227M) 465822 498141 - free - (243M)
=> 0 963900 diskid/DISK-2010083100052C562C56s2 BSD (471M) 0 16 - free - (8.0K) 16 963821 1 !0 (471M) 963837 63 - free - (32K)
[root@router1]~# reboot
-rw-r--r-- 1 root dingo 62809688 Sep 26 21:55 BSDRP-1.61-full-amd64-vga.img.xz -rw-r--r-- 1 root dingo 62728164 Sep 26 21:55 BSDRP-1.61-upgrade-amd64-vga.img.xz
ssh dingo@162.217.xxx.xxx cat /home/dingo/BSDRP-1.61-upgrade-amd64-vga.img.xz | xzcat | upgrade Password for dingo@hardened.xxxxxxxxx.com: dd: /dev/ada0s2: short write on character device dd: /dev/ada0s2: end of device 465920+0 records in 3639+1 records out 238500864 bytes transferred in 26.083972 secs (9143579 bytes/sec) EXIT: ERROR: Can't install the upgrade on /dev/ada0s2
trying to upgrade fails with error
exit 1
gpart show => 63 2030049 ada0 MBR (991M) 63 465822 1 freebsd active 465885 63 - free - (32K) 465948 465822 2 freebsd (227M) 931770 32130 3 freebsd (16M) 963900 1066212 4 freebsd (521M)
=> 0 465822 ada0s1 BSD (227M) 0 16 - free - (8.0K) 16 465806 1 !0 (227M)
=> 63 2030049 diskid/DISK-2010083100052C562C56 MBR (991M) 63 465822 1 freebsd active 465885 63 - free - (32K) 465948 465822 2 freebsd (227M) 931770 32130 3 freebsd (16M) 963900 1066212 4 freebsd (521M)
=> 0 465822 diskid/DISK-2010083100052C562C56s1 BSD (227M) 0 16 - free - (8.0K) 16 465806 1 !0 (227M)