You are not logged in.

#1 2013-12-13 09:51:02

mibadt
Member
Registered: 2009-09-25
Posts: 396

Arch: Auto UUID update after HD replacement

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

#2 2013-12-13 10:01:52

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,095
Website

Re: Arch: Auto UUID update after HD replacement

… Why not just manually edit it? You'll be changing one line, right?

All the best,

-HG

Offline

#3 2013-12-13 10:50:27

mibadt
Member
Registered: 2009-09-25
Posts: 396

Re: Arch: Auto UUID update after HD replacement

Thanks, actually there's are 5 partitions on that HD...


Best regards,
Michael Badt

Offline

#4 2013-12-13 10:54:46

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Arch: Auto UUID update after HD replacement

fstab man page wrote:

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

#5 2013-12-13 12:42:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,620
Website

Re: Arch: Auto UUID update after HD replacement

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

Board footer

Powered by FluxBB