CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 0
So 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?
both drives have same uuids for paritions. This is probably what is causing the confusion. Does the system boot when sdb is removed? If not and if boots in efi mode off of sdb maybe this will fix
both drives have same uuids for paritions. This is probably what is causing the confusion. Does the system boot when sdb is removed? If not and if boots in efi mode off of sdb maybe this will fix
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.