Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature : Add an option to prevent reformatting the USB drive #5

Open
sebma opened this issue Apr 9, 2018 · 5 comments
Open

Feature : Add an option to prevent reformatting the USB drive #5

sebma opened this issue Apr 9, 2018 · 5 comments

Comments

@sebma
Copy link

sebma commented Apr 9, 2018

Hi,

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

@oneohthree
Copy link
Owner

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.

@sebma
Copy link
Author

sebma commented Apr 10, 2018

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

@oneohthree
Copy link
Owner

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

@sebma
Copy link
Author

sebma commented Apr 10, 2018

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)

@oneohthree
Copy link
Owner

I will think about this over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants