I am trying to install Ubuntu base(Ubuntu from scratch) but I have a problem...after the installation I get a system with read-only file system and also, /boot is not automounted.
here is my /etc/fstab:
/dev/sda1 /boot vfat defaults,noatime 0 2
/dev/sda2 / ext4 defaults,noatime 0 1
here is how I chroot into the base system for installation:
mount /dev/sda2 /mnt
cp /etc/resolv.conf /mnt/etc/resolv.conf
mount --types proc /proc /mnt/proc
mount --rbind /sys /mnt/sys
mount --make-rslave /mnt/sys
mount --rbind /dev /mnt/dev
mount --make-rslave /mnt/dev
test -L /dev/shm && rm /dev/shm && mkdir /dev/shm
mount --types tmpfs --options nosuid,nodev,noexec shm /dev/shm
chmod 1777 /dev/shm
chroot /mnt /bin/bash
source /etc/profile
export PS1="(chroot) ${PS1}"
<installation steps>
exit
cd
umount -l /mnt/dev{/shm,/pts,}
umount -R /mnt
reboot
when I run the following command the system becomes writable:
mount -o remount,rw /
what did I do wrong ?