LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 08-31-2022, 10:03 AM   #1
isaqellari
LQ Newbie
 
Registered: Jul 2020
Posts: 9

Rep: Reputation: Disabled
Moving /boot partition to other disk


Hello,

I have an Oracle Linux VMware virtual machine which has two virtual disks.
On the first disk it is only /boot partition installed and on the other disk it is /root and the rest of OS files installed. Is there any possibility to move the /boot partition from the first disk to the second disk in order to have a VM with only one virtual disk. I want a single disk VM because Oracle Cloud and Azure Cloud supports only single disk VM migration.

BR,
Ilir
 
Old 09-01-2022, 08:12 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,981

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
I guess the usual resize operations should work on these virtual disks too. Additionally you can also resize the disk itself easily. So you can copy the boot partition to the other disk. You need to make that partition bootable. Actually I don't know if that will work, but you can clone your current disks and work on a copy, so the original system will remain usable as long as the other one is not working properly.
 
Old 09-01-2022, 12:15 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
make new boot partition
copy files to new boot partition from old boot partition
change entry in /etc/fstab for the new boot partition
unmount old boot partition and mount new boot partition
reinstall bootloader to mbr of drive with the root/boot partitions

Last edited by colorpurple21859; 09-01-2022 at 12:18 PM.
 
  


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
Moving windows 7 installation to an other partition. Johannes33 Linux - Newbie 12 08-19-2021 03:25 AM
Want to allow disk space to /boot, or want to boot from other disk (16TB) zillur Linux - Newbie 45 11-10-2015 04:32 PM
[SOLVED] parted 2.3: moving a partition in a disk with master boot record stf92 Slackware 9 10-11-2014 12:15 PM
Moving a folder, versus moving its contents (within the same partition) the dsc General 7 06-29-2012 04:46 AM
[SOLVED] Moving /boot to separate partition and using 'grub' to boot eldiener Linux - General 4 11-28-2006 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 09:04 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