Article 4RE52 Change Boot Drive

Change Boot Drive

by
BeeRich
from LinuxQuestions.org on (#4RE52)
Hi folks.

Well, got a new drive in the box and I want to move my boot drive to this new SSD. My plan is not to move to a RAID after all.

I want to move from sdb -> sda. I've already rsync sdb sda properly and installed grub2 on sda. I pulled the sdb cable and I'm thinking the /etc/fstab is still showing sdb somehow, but it has a UUID instead of a volume. Here are some notes:

Code:Model: ATA CT120BX500SSD1 (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 211MB 210MB fat16 EFI System Partition boot
2 211MB 1285MB 1074MB xfs
3 1285MB 120GB 119GB lvm

Model: ATA ADATA SP550 (scsi)
Disk /dev/sdb: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 211MB 210MB fat16 EFI System Partition boot
2 211MB 1285MB 1074MB xfs
3 1285MB 120GB 119GB lvm

...other disks...Code:# /etc/fstab
# Created by anaconda on Mon Sep 10 16:27:03 2018
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/centos-root / xfs defaults 0 0
UUID=04fde641-f537-49b4-a617-451e4325c92c /boot xfs defaults 0 0
UUID=3979-7E7E /boot/efi vfat umask=0077,shortname=winnt 0 0
/dev/mapper/centos-home /home xfs defaults 0 0
/dev/mapper/centos-swap swap swap defaults 0 0

# RF mods for /dev/sdb backup disk:
UUID=4fba19c4-01e1-4afd-b541-2682b80983cd /home/backups ext4 defaults 0 0

/dev/sdd2 /full_backups ext4 defaults 0 0So it shows that a drive has the boot partition, but I'm not sure which one it is. Right now I'm assuming sdb is proper (the legacy OS I'm up on now) and sda has it but isn't happy with the /etc/fstab.

Any insight as to how this works? I feel I'm close but I thought I'd check with you Linux experts.

How can I move to sda as my primary drive and take sdb completely out?latest?d=yIl2AUoC8zA latest?i=SFbaFGJsZJs:qDL4cTcbZFs:F7zBnMy latest?i=SFbaFGJsZJs:qDL4cTcbZFs:V_sGLiP latest?d=qj6IDK7rITs latest?i=SFbaFGJsZJs:qDL4cTcbZFs:gIN9vFwSFbaFGJsZJs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments