Repartition a non LVM system with LVM
I have installed my system without LVM but I need it now.
How can I repartition my disk with LVM and keep all my system files?
I know this would need backup, but I have never used it yet and don't know wich tool would best suit that situation.
partition lvm disk
add a comment |
I have installed my system without LVM but I need it now.
How can I repartition my disk with LVM and keep all my system files?
I know this would need backup, but I have never used it yet and don't know wich tool would best suit that situation.
partition lvm disk
There is a tool to convert to LVM ( github.com/g2p/blocks#readme ). I wrote a howto do it manually but it's in German wiki.ubuntuusers.de/Archiv/Howto/… - conversion aside you also have to make the system bootable for root-on-lvm. Backing up all files and reinstalling with LVM is not the worst option here. You should have a backup in any case.
– frostschutz
Dec 18 at 14:22
add a comment |
I have installed my system without LVM but I need it now.
How can I repartition my disk with LVM and keep all my system files?
I know this would need backup, but I have never used it yet and don't know wich tool would best suit that situation.
partition lvm disk
I have installed my system without LVM but I need it now.
How can I repartition my disk with LVM and keep all my system files?
I know this would need backup, but I have never used it yet and don't know wich tool would best suit that situation.
partition lvm disk
partition lvm disk
asked Dec 18 at 14:04
Nicolas Scotto Di Perto
236210
236210
There is a tool to convert to LVM ( github.com/g2p/blocks#readme ). I wrote a howto do it manually but it's in German wiki.ubuntuusers.de/Archiv/Howto/… - conversion aside you also have to make the system bootable for root-on-lvm. Backing up all files and reinstalling with LVM is not the worst option here. You should have a backup in any case.
– frostschutz
Dec 18 at 14:22
add a comment |
There is a tool to convert to LVM ( github.com/g2p/blocks#readme ). I wrote a howto do it manually but it's in German wiki.ubuntuusers.de/Archiv/Howto/… - conversion aside you also have to make the system bootable for root-on-lvm. Backing up all files and reinstalling with LVM is not the worst option here. You should have a backup in any case.
– frostschutz
Dec 18 at 14:22
There is a tool to convert to LVM ( github.com/g2p/blocks#readme ). I wrote a howto do it manually but it's in German wiki.ubuntuusers.de/Archiv/Howto/… - conversion aside you also have to make the system bootable for root-on-lvm. Backing up all files and reinstalling with LVM is not the worst option here. You should have a backup in any case.
– frostschutz
Dec 18 at 14:22
There is a tool to convert to LVM ( github.com/g2p/blocks#readme ). I wrote a howto do it manually but it's in German wiki.ubuntuusers.de/Archiv/Howto/… - conversion aside you also have to make the system bootable for root-on-lvm. Backing up all files and reinstalling with LVM is not the worst option here. You should have a backup in any case.
– frostschutz
Dec 18 at 14:22
add a comment |
1 Answer
1
active
oldest
votes
If you have some free disk space you can do this. But this can be long and not so sample process. The best you can do is to copy your personal files to external disk or cloud storage. The commands with can help you to pack the files in bundles (if you have a lot of small files) are tar
, zip
.
The process of replacing current disks with LVM is in few words:
- create PV from free space
- create VG from from PV
- create LV in VG
- create filesystem on LV
- mount filesystem
- copy files to release some filesystem
- unmount this filesystem
- remount LV filesystem on the place of above filesystem
- create PV from unmounted filesystem
- add this PV to VG
- repeat with next filesystem
After you finish with root partition you will need to edit /etc/fstab
and update grub
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f489693%2frepartition-a-non-lvm-system-with-lvm%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you have some free disk space you can do this. But this can be long and not so sample process. The best you can do is to copy your personal files to external disk or cloud storage. The commands with can help you to pack the files in bundles (if you have a lot of small files) are tar
, zip
.
The process of replacing current disks with LVM is in few words:
- create PV from free space
- create VG from from PV
- create LV in VG
- create filesystem on LV
- mount filesystem
- copy files to release some filesystem
- unmount this filesystem
- remount LV filesystem on the place of above filesystem
- create PV from unmounted filesystem
- add this PV to VG
- repeat with next filesystem
After you finish with root partition you will need to edit /etc/fstab
and update grub
add a comment |
If you have some free disk space you can do this. But this can be long and not so sample process. The best you can do is to copy your personal files to external disk or cloud storage. The commands with can help you to pack the files in bundles (if you have a lot of small files) are tar
, zip
.
The process of replacing current disks with LVM is in few words:
- create PV from free space
- create VG from from PV
- create LV in VG
- create filesystem on LV
- mount filesystem
- copy files to release some filesystem
- unmount this filesystem
- remount LV filesystem on the place of above filesystem
- create PV from unmounted filesystem
- add this PV to VG
- repeat with next filesystem
After you finish with root partition you will need to edit /etc/fstab
and update grub
add a comment |
If you have some free disk space you can do this. But this can be long and not so sample process. The best you can do is to copy your personal files to external disk or cloud storage. The commands with can help you to pack the files in bundles (if you have a lot of small files) are tar
, zip
.
The process of replacing current disks with LVM is in few words:
- create PV from free space
- create VG from from PV
- create LV in VG
- create filesystem on LV
- mount filesystem
- copy files to release some filesystem
- unmount this filesystem
- remount LV filesystem on the place of above filesystem
- create PV from unmounted filesystem
- add this PV to VG
- repeat with next filesystem
After you finish with root partition you will need to edit /etc/fstab
and update grub
If you have some free disk space you can do this. But this can be long and not so sample process. The best you can do is to copy your personal files to external disk or cloud storage. The commands with can help you to pack the files in bundles (if you have a lot of small files) are tar
, zip
.
The process of replacing current disks with LVM is in few words:
- create PV from free space
- create VG from from PV
- create LV in VG
- create filesystem on LV
- mount filesystem
- copy files to release some filesystem
- unmount this filesystem
- remount LV filesystem on the place of above filesystem
- create PV from unmounted filesystem
- add this PV to VG
- repeat with next filesystem
After you finish with root partition you will need to edit /etc/fstab
and update grub
edited Dec 18 at 14:30
answered Dec 18 at 14:19
Romeo Ninov
5,21231827
5,21231827
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f489693%2frepartition-a-non-lvm-system-with-lvm%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
There is a tool to convert to LVM ( github.com/g2p/blocks#readme ). I wrote a howto do it manually but it's in German wiki.ubuntuusers.de/Archiv/Howto/… - conversion aside you also have to make the system bootable for root-on-lvm. Backing up all files and reinstalling with LVM is not the worst option here. You should have a backup in any case.
– frostschutz
Dec 18 at 14:22