In Hilchot Sifrei Torah, Ramba"m mentions that it is permissible to write an entire Tana"ch on one continuous parchment scroll. Between the end of Devarim and the beginning of Yehoshua, one needs 4 ...