We construct families of three-dimensional linear codes that attain the Griesmer bound and give a probablistic construction of linear codes that are close to the Griesmer bound. All these codes contain the all-1 codeword and are constructed from small multiple blocking sets in AG(2, q).