Newbie questions towards unmount and commands when creating a bootable USB
Hey guys!
(In case you're not interested in reading all this, thing I'd understand, please consider reading my questions at the end)
I didn't know exactly where to write this question, but here's the thing.
I've created USB bootables in a lot of ways. I was more used to creating them through interface programs. The fact is, I always used to have some kind of problem when creating them by console.
Months ago I discovered the Arch wiki, it's been such a blessing to me. I'm learning a lot of topics and thanks to it I find myself improving on Linux.
But here comes what happened. The other day I was looking how to create a bootable disk on the wiki. After reading on a lot of websites, I got to this line.
"Make sure that it is not mounted."
That simple sentence made my mind explode. All these years having issues trying to create a bootable through the console. I've formatted a drive multiple times just to make sure I understood. So I unmount the file system, and then I use some of the commands.
Conclusion: My problems creating a bootable disk are gone.
But I'm a curious person, and I always like to understand everything, so... Here I go!
Questions
-
Why do we need to unmount the file system in order to write the iso to the drive?
-
Why does the process usually fail when the file system is mounted?
-
What is happening exactly when I do something like "cat arch.iso > /dev/sdx"?
-
And maybe this is a weird question, but why exactly does that work and not "cat arch.iso > /dev/sdx1" is it because the .iso file itself is like doing disk1(iso) > disk2(drive)?
I'm still pretty newbie related some Linux things.
I appreciate your patience just for the fact of reading all this. I look forward to see if I can understand whatever you explain! Thank you!
About this post
- Posted
- Archived
- Score
- 5 · 86% up
- Kind
- Text
- ID
- vb17kb
6 comments
I'm not an expert on the subject but this is how I imagine it. Anyone else is free to correct me if they are able to go into more technical detail or feel my analogies are incorrect, which I know they aren't perfect but I think they're pretty close and simple to understand.
Love your explanations and analogies. I think they are spot-on, even if they gloss over some of the technical details. Only your point 3 addresses question 4.
Too right you are! I skipped 3! Oops
Thank you for your kind explanation. I think I finally got it thanks to some of your analogies :)! I don't know if you're an expert or not, but know that you helped someone who's pretty stubborn when it comes to these things :)
Think of the drive as a big notebook.
Mounting a filesystem would be like attaching a robot to a portion of the pages to use them to store files. Writing an iso file would be equivalent to ripping out every page from the notebook and inserting a new set of pages.
Thanks for your kind explanation mate, it really helped me :)