bootify icon indicating copy to clipboard operation
bootify copied to clipboard

Feature : Add an option to prevent reformatting the USB drive

Open sebma opened this issue 6 years ago • 5 comments

Hi,

Can you add an option to prevent reformatting the USB drive ?

sebma avatar Apr 09 '18 17:04 sebma

I'm sorry, but, what do you mean by this? In my opinion it is always better to reformat the drive to ensure everything runs OK.

oneohthree avatar Apr 10 '18 16:04 oneohthree

Why erase all the data on the pen-drive every time ?

I'd like to have an option that does the job without re-formatting the pen-drive.

The mount or the df -T command tells us in what filesystem the pen drive is already formatted with.

And even if the pen-drive could not be mounted, the user just as to do an fsck before running bootify

sebma avatar Apr 10 '18 16:04 sebma

Too much hassle, a lot of checks to do. Don't you think?

oneohthree avatar Apr 10 '18 17:04 oneohthree

You don't have to add any checks, maybe just precise in your README.md that :

UEFI needs a FAT32 formated pen-drive and boot mode does not care if FAT32 or NTFS.

But if you really want to do the checks, you can do that (but I think you already know how to do it) :

If $SCH = uefi => df -T | grep "${DEV}1" | egrep "vfat|fat32" (you can replace df -T by mount if df -T is not portable enough)

sebma avatar Apr 10 '18 17:04 sebma

I will think about this over.

oneohthree avatar Apr 10 '18 18:04 oneohthree