Hello everyone,
I decided to drop out DVD drive from my servers and use memory stick (memstick/pendrive/flash drive whatever, it's all the same) as a FreeBSD installation source. I bought the brand-new PQI Cooldrive for this purpose, because it has hardware write protection - you know, to safely use it on untrusted systems.
I've downloaded the FreeBSD-9.0-RELEASE-amd64-memstick.img and copied it using
(method recommended on 9.0 release announcement site).
To my suprise, when I tried to boot system from it with hardware-write-protection=ON it refused to mount root file system - kernel loaded, but after I received error message.
I was very suprised, so I tried to boot from the same memstick with hardware-write-protection=OFF. System booted and ran bsdinstall. After this I turned off the server and removed the memstick. Then, on another machine with FreeBSD installed I dumped the image from memstick using
(bs * count = size of original image file)
and noticed that checksums are different. After binary comparison I've noticed 29 differences with original image file - so the installer modified something on memstick.
I've done the same procedure on another, classic memstick without write protection and got the same result - checksum is different.
Then I've compared checksums from those two memsticks - there were different.
----
So, why FreeBSD 9.0-RELEASE memstick image need to modify something on memstick from which it booted? Obviously, this doesn't take place when it is booted from DVD. It is really important for me to boot from write-protected media.
Thank you for your time
Marek
I decided to drop out DVD drive from my servers and use memory stick (memstick/pendrive/flash drive whatever, it's all the same) as a FreeBSD installation source. I bought the brand-new PQI Cooldrive for this purpose, because it has hardware write protection - you know, to safely use it on untrusted systems.
I've downloaded the FreeBSD-9.0-RELEASE-amd64-memstick.img and copied it using
Code:
dd if=FreeBSD-9.0-RELEASE-amd64-memstick.img of=/dev/da0 bs="10240" conv="sync"
To my suprise, when I tried to boot system from it with hardware-write-protection=ON it refused to mount root file system - kernel loaded, but after I received error message.
I was very suprised, so I tried to boot from the same memstick with hardware-write-protection=OFF. System booted and ran bsdinstall. After this I turned off the server and removed the memstick. Then, on another machine with FreeBSD installed I dumped the image from memstick using
Code:
dd if=/dev/da0 of=dumped.img bs=1024 count=669632
and noticed that checksums are different. After binary comparison I've noticed 29 differences with original image file - so the installer modified something on memstick.
I've done the same procedure on another, classic memstick without write protection and got the same result - checksum is different.
Then I've compared checksums from those two memsticks - there were different.
----
So, why FreeBSD 9.0-RELEASE memstick image need to modify something on memstick from which it booted? Obviously, this doesn't take place when it is booted from DVD. It is really important for me to boot from write-protected media.
Thank you for your time
Marek