billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.49k stars 327 forks source link

Feature request: Mount after clone #110

Open folkeorg opened 3 years ago

folkeorg commented 3 years ago

It seems that the SD-card is not mounted after cloning. I would like a switch e.g. "-M" (can't find it in the switch-list) to have the card mounted and readable files afterwards. Now I need to mount it manually or remove/insert the card to get it mounted.

I guess the program have all the mount parameters stored so a mount should be easy at the end of the cloning.

Apart from that the program is working great! Now I always have a ready-to-swap-card if the booted one fails (which it will eventually).

framps commented 3 years ago

There is no additional option required in rpi-clone :wink:

Why don't you just create an alias which executes rpi-clone followed by a mount command? Or you create a small script called my_rpi-clone which calls rpi-clone followed by a mount?

folkeorg commented 3 years ago

Well, first of all I'm lazy. I like all-in-one-solutions. Secondly I'm really not that skilled in xNIX to be able to mount the SD-card manually and correctly.. I guess this last part is the real reason..