You are not logged in.
Hi,
I'm on a dual-boot Arch/Win7 system.
The SMART Utility notified me that my (win) HD is going to die within 24h!
Thus, I'm going to replace my Win HD (after backup).
I use an UUID-based fstab (an the good HD).
What's the best way to update my new UUIDs after replacing the failed HD (short of manual edit)?
Thanks
Best regards,
Michael Badt
Offline
… Why not just manually edit it? You'll be changing one line, right?
All the best,
-HG
Offline
Thanks, actually there's are 5 partitions on that HD...
Best regards,
Michael Badt
Offline
fstab is only read by programs, and not written; it is the duty of the system administrator to properly create and maintain this file.
Why do you think it would be better to automate this tiny once-off change?
Offline
While like the above posters, I'd certainly just do this "manually" you can copy and paste the UUID from "lsblk -o +UUID" which would leave for almost no typing at all. But as an alternative, if you really must, you can mount all the partitions and run genfstab, but then you'd undo any changes you've made to mount options and you really wouldn't save any typing at all.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline