LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-29-2016, 11:32 AM   #1
zillur
Member
 
Registered: Apr 2015
Posts: 217

Rep: Reputation: Disabled
Failing to boot after moving /boot folder to /


Hi there,
Recently I moved my /boot folder to / (this is my home directory with 16 TB space) for more space.
Code:
mv /boot /
After update now I can't boot up. It always says
Quote:
You need to load the kernel first
If I boot up in rescue mode, it says:
Code:
Failed to start Dynamic Tunin Daemon
My OS is Centos 7. I am new in system administration. I appreciate your help.

Best Regards
Zillur
 
Old 07-29-2016, 11:41 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,341

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Did you reinstall your boot loader?

--------------------
Steve Stites
 
1 members found this post helpful.
Old 07-29-2016, 11:48 AM   #3
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you. No. Do I need to do this? How can I reinstall boot loader?

Best Regards
Zillur
 
Old 07-29-2016, 03:38 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,759

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
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.

You can boot the install disc and reinstall grub
 
1 members found this post helpful.
Old 07-29-2016, 04:08 PM   #5
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you very much. I think, I ran the command.
Quote:
You can boot the install disc and reinstall grub
How can do this? I mean "boot the install disc and reinstall grub".

Best Regards
Zillur
 
Old 07-29-2016, 06:03 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,759

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Can you confirm that this thread is about your CentOS 7 system from this thread?
http://www.linuxquestions.org/questi...ot-4175563687/

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.

Last edited by michaelk; 07-31-2016 at 09:54 PM.
 
1 members found this post helpful.
Old 07-29-2016, 07:30 PM   #7
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
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.
only after successful boot up.

Best Regards
Zillur
 
Old 07-29-2016, 07:59 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,759

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
You need some alternative boot device.
 
1 members found this post helpful.
Old 07-29-2016, 08:02 PM   #9
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you very much. What do you mean my alternative boot device? Sorry for asking details.

Best Regards
Zillur
 
Old 07-29-2016, 08:05 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,759

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
A DVD or usb drive.
 
1 members found this post helpful.
Old 07-29-2016, 09:30 PM   #11
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
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.
 
1 members found this post helpful.
Old 07-30-2016, 11:39 AM   #12
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
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.

Best Regards
Zillur
 
Old 07-30-2016, 12:14 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,759

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
The DVD ISO.

https://www.centos.org/download/
 
1 members found this post helpful.
Old 07-30-2016, 01:43 PM   #14
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
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?

Best Regards
Zillur
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2016-07-30 at 2.41.28 PM.png
Views:	27
Size:	92.1 KB
ID:	22604  
 
Old 07-30-2016, 01:57 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,759

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
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

chroot /mnt/sysimage

cd /boot

Are there any files in the directory?
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failing to boot up due to failing to acces the GRUB spenot09 Linux - Software 7 10-19-2015 10:56 AM
Jessie boot cd failing to boot on a Poweredge R905 Jasambo Debian 5 06-15-2015 04:38 PM
Boot Problem in Grub (Chainloader failing? /boot messed up?) gjemmott Linux - Desktop 2 03-15-2010 10:26 AM
eth1 failing on boot, IEEE firewire card driver failing, help jackuss_169 Linux - Laptop and Netbook 5 03-05-2005 07:34 AM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration