How to migrate from ext2 to ext4 when my filesystem is encrypted (LUKS)?
up vote
0
down vote
favorite
The reason why I am posting this question is that Dropbox has notified me (via e-mail), that it will soon no longer support ext2 for its desktop client.
I have a LUKS encrypted file system on top of an extended ext2 partition and I found the following "How To"s for migrating to ext4:
- https://www.howtoforge.com/tutorial/migrate-ext2-ext3-filesystem-to-ext4/
- https://www.ghacks.net/2010/08/11/convert-ext23-to-ext4/
However, the previous "How To"s do not mention anything about what to do if you have an encrypted file system such as LUKS. Is there no difference? If there is, how does one do this migration?
16.04 filesystem ext4 dropbox luks
add a comment |
up vote
0
down vote
favorite
The reason why I am posting this question is that Dropbox has notified me (via e-mail), that it will soon no longer support ext2 for its desktop client.
I have a LUKS encrypted file system on top of an extended ext2 partition and I found the following "How To"s for migrating to ext4:
- https://www.howtoforge.com/tutorial/migrate-ext2-ext3-filesystem-to-ext4/
- https://www.ghacks.net/2010/08/11/convert-ext23-to-ext4/
However, the previous "How To"s do not mention anything about what to do if you have an encrypted file system such as LUKS. Is there no difference? If there is, how does one do this migration?
16.04 filesystem ext4 dropbox luks
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
The reason why I am posting this question is that Dropbox has notified me (via e-mail), that it will soon no longer support ext2 for its desktop client.
I have a LUKS encrypted file system on top of an extended ext2 partition and I found the following "How To"s for migrating to ext4:
- https://www.howtoforge.com/tutorial/migrate-ext2-ext3-filesystem-to-ext4/
- https://www.ghacks.net/2010/08/11/convert-ext23-to-ext4/
However, the previous "How To"s do not mention anything about what to do if you have an encrypted file system such as LUKS. Is there no difference? If there is, how does one do this migration?
16.04 filesystem ext4 dropbox luks
The reason why I am posting this question is that Dropbox has notified me (via e-mail), that it will soon no longer support ext2 for its desktop client.
I have a LUKS encrypted file system on top of an extended ext2 partition and I found the following "How To"s for migrating to ext4:
- https://www.howtoforge.com/tutorial/migrate-ext2-ext3-filesystem-to-ext4/
- https://www.ghacks.net/2010/08/11/convert-ext23-to-ext4/
However, the previous "How To"s do not mention anything about what to do if you have an encrypted file system such as LUKS. Is there no difference? If there is, how does one do this migration?
16.04 filesystem ext4 dropbox luks
16.04 filesystem ext4 dropbox luks
asked Nov 17 at 14:03
Benny
1011
1011
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I would do the following:
Back up all of your data no matter what you decide to do
Boot to live CD
sudo bash
tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/sda? The sda may be hd or
something differant and the ? is the partition number.e2fsck -pf /dev/sda?
sudo mount -t ext4 /dev/sda1 /mnt Check for errors.
edit the fstab on the root of the drive where the LUKS partition is to reflect the change in partition type.
update-grub
The LUKS encrypted filesystem exists inside the ext2 partition, thus the migrating from one partition type to another should not matter as far as the data within as long as nothing goes wrong. Hence the backup. It is like taking the water in one glass and moving it to another as long as the proccess is comleted without error, the water should be the same in both amount and purity.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I would do the following:
Back up all of your data no matter what you decide to do
Boot to live CD
sudo bash
tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/sda? The sda may be hd or
something differant and the ? is the partition number.e2fsck -pf /dev/sda?
sudo mount -t ext4 /dev/sda1 /mnt Check for errors.
edit the fstab on the root of the drive where the LUKS partition is to reflect the change in partition type.
update-grub
The LUKS encrypted filesystem exists inside the ext2 partition, thus the migrating from one partition type to another should not matter as far as the data within as long as nothing goes wrong. Hence the backup. It is like taking the water in one glass and moving it to another as long as the proccess is comleted without error, the water should be the same in both amount and purity.
add a comment |
up vote
0
down vote
I would do the following:
Back up all of your data no matter what you decide to do
Boot to live CD
sudo bash
tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/sda? The sda may be hd or
something differant and the ? is the partition number.e2fsck -pf /dev/sda?
sudo mount -t ext4 /dev/sda1 /mnt Check for errors.
edit the fstab on the root of the drive where the LUKS partition is to reflect the change in partition type.
update-grub
The LUKS encrypted filesystem exists inside the ext2 partition, thus the migrating from one partition type to another should not matter as far as the data within as long as nothing goes wrong. Hence the backup. It is like taking the water in one glass and moving it to another as long as the proccess is comleted without error, the water should be the same in both amount and purity.
add a comment |
up vote
0
down vote
up vote
0
down vote
I would do the following:
Back up all of your data no matter what you decide to do
Boot to live CD
sudo bash
tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/sda? The sda may be hd or
something differant and the ? is the partition number.e2fsck -pf /dev/sda?
sudo mount -t ext4 /dev/sda1 /mnt Check for errors.
edit the fstab on the root of the drive where the LUKS partition is to reflect the change in partition type.
update-grub
The LUKS encrypted filesystem exists inside the ext2 partition, thus the migrating from one partition type to another should not matter as far as the data within as long as nothing goes wrong. Hence the backup. It is like taking the water in one glass and moving it to another as long as the proccess is comleted without error, the water should be the same in both amount and purity.
I would do the following:
Back up all of your data no matter what you decide to do
Boot to live CD
sudo bash
tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/sda? The sda may be hd or
something differant and the ? is the partition number.e2fsck -pf /dev/sda?
sudo mount -t ext4 /dev/sda1 /mnt Check for errors.
edit the fstab on the root of the drive where the LUKS partition is to reflect the change in partition type.
update-grub
The LUKS encrypted filesystem exists inside the ext2 partition, thus the migrating from one partition type to another should not matter as far as the data within as long as nothing goes wrong. Hence the backup. It is like taking the water in one glass and moving it to another as long as the proccess is comleted without error, the water should be the same in both amount and purity.
answered Nov 19 at 2:25
Michael Prokopec
1033
1033
add a comment |
add a comment |
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%2faskubuntu.com%2fquestions%2f1093733%2fhow-to-migrate-from-ext2-to-ext4-when-my-filesystem-is-encrypted-luks%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