Skip to content

howto - migrate fstab from /dev/ to uuid

So after i moved my system to new hardware (and yes i love the hp microserver N40L allready), i run into some trouble with my fstab. The system tries to boot but couldn't find the root partition since the devices had changed. The sda has changed to sdc. But the friendly system switched into maintenance mode, so a quick search and replace solved the problem. I thought the problem was solved but after i added a device via esata and tried to boot, the same problem occured. The same error twice a day? Too bad, i have to migrate the fstab.

First you have to figure out the uuid's.

lsblk -f
After that you just have to edit your fstab file.
vim /etc/fstab #change line like /dev/sda1 / ext4 #to UUID=artodeto-1234-5678-9012-bazzlineDnet
source

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Markdown format allowed
Form options