Autoinstall how to test for partitions
Jerry Geis
jerry.geis at gmail.com
Tue Jul 27 18:03:37 UTC 2021
In my "early-commands" section for autoinstall I would like to determine if
a partition is present. if so mount it copy off same data to ram and then
umount of course and continue.
How do I do that ? If the partition exists I am OK with this :
- if [ -e /dev/sda1 ]; then etc....
if the partition does not exist - then I get a crash.
How do I check for partitions - BEFORE trying to mount it so I dont get a
crash ?
fdisk does not seem to be present or did not work.
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210727/245f7f70/attachment.html>
More information about the ubuntu-users
mailing list