Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Is this the same system as in your other thread? If so you had three partitions /, /boot and /home. Did you really run the command as posted? If so it should not of done anything.
One method to move /boot from /dev/sdb1 to / (/dev/sdb2):
unmount /boot
mount /dev/sdb1 to something else like /mnt/oldboot
cp -rp /mnt/oldboot/* /boot (make sure files are copied successfully)
Comment out or delete the /boot line in your /etc/fstab file.
Boot from the CentOS 7 DVD and select rescue mode.
Once at a shell prompt follow the instructions for chroot
chroot /mnt/sysimage
Since you have two drives do you know which is the boot drive? Usually it would be sda but your /home is on sda and the OS on sdb. I can't tell if your using a legacy MBR or UEFI. Legacy BIOS and MBR would be:
grub2-install /dev/sda
As a note for others who might be interested since the OP is actually using LVM do not move /boot from its own partition.
Thank you very much. Yes. It is the same system. Is there any way to boot without Centos 7 DVD? I can do this:
Quote:
One method to move /boot from /dev/sdb1 to / (/dev/sdb2):
unmount /boot
mount /dev/sdb1 to something else like /mnt/oldboot
cp -rp /mnt/oldboot/* /boot (make sure files are copied successfully)
Comment out or delete the /boot line in your /etc/fstab file.
First you better check and see if CentOS 7 will boot using an xfs filesystem, as that is what the root filesystem is by default.
This is one of the reasons /boot has been a separate partition for ages - there are a few filesystems that will not support being used for boot. Fedora still uses ext4 for /boot, but does (like CentOS 7) use xfs for root.
Thank you very much.
Currently I don't have a Centos 7 DVD or USB. But, I have some writable DVD (16x|4.7GB|120min). Can I use these DVDs (Download the necessary files and write them to this DVD). If so, Can you give me the link where I can download the files? I appreciate your help very much.
Thank you very much. I have downloaded and burned the iso image on the disk from my mac. Now what I need to do? Only insert the disk into the DVD rom of the linux machine?
Boot the DVD and when a menu displays select troubleshooting, then rescue mode and then continue. You will now be at a command line prompt. Type the commands
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.