Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
any one succeeded in reverting EXT4 to EXT3?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pdfan
n00b
n00b


Joined: 03 May 2010
Posts: 6

PostPosted: Tue May 06, 2014 2:14 pm    Post subject: any one succeeded in reverting EXT4 to EXT3? Reply with quote

the gentoo partition was EXT3, after EXT4 supported in kernel, it was changed to EXT4. now the PC need more disk space and a 1TB new disk is to be used to replace the 140GB disk(with several partitions for Linuxes and Windowses. but the Acronis Disk Director does not support EXT4, and partion copy failed for the EXT4. so it must be reverted to EXT3, which Acronis Disk Director support well.
googled web and find: Quote:
=================
There is also a downgrade path from ext4 to ext3, with a method to convert the extent files back to indirect mapping files. In the case that users prefer to go back to ext3, they can mount the ext4 file system with the "noextents” mount option, copy the extent-based ext4 files to new files, rename these over the old extents, use tunefs to clear the INCOMPAT_EXTENTS flag, and then remount as an ext3 file system.
=================

1. how to find a file is an extent-based or not extent-based?
2. how to clear the INCOMPAT_EXTENTS flag using tunefs?

thank you for help.
Back to top
View user's profile Send private message
s4e8
Guru
Guru


Joined: 29 Jul 2006
Posts: 309

PostPosted: Tue May 06, 2014 2:28 pm    Post subject: Reply with quote

clone windows partitions and re-create linux partitions. use "e2image -r -a" and "resize2fs" to clone ext* partitions.
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Tue May 06, 2014 3:08 pm    Post subject: Reply with quote

why won't you just clone old disk onto a new one and then resize partition and expand filesystem?
You can clone the whole disk with dd, just make sure it's not mounted as writable, (either not mounted or read only will do) otherwise you risk damaging your filesystem.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13831

PostPosted: Wed May 07, 2014 1:48 am    Post subject: Reply with quote

Instead of downgrading to a legacy filesystem, use a copy tool that works. I dislike dd because it copies all the free space. Instead, partition the new drive, create filesystems, and then use rsync or tar to copy the files. Beware missing files hidden by secondary mounts.

Files are likely extent-based if they were created after the extents option was enabled.
Back to top
View user's profile Send private message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Wed May 07, 2014 8:46 am    Post subject: Reply with quote

You could use app-backup/fs-archiver. save the partition and put it on the new partiton and change the filesystem. See "man fsarchiver".
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6995
Location: Austria

PostPosted: Wed May 07, 2014 8:47 am    Post subject: Re: any one succeeded in reverting EXT4 to EXT3? Reply with quote

pdfan wrote:
Acronis Disk Director does not support EXT4, and partion copy failed for the EXT4. so it must be reverted to EXT3

Choose a better tool. gparted will be your friend.

Plus, what has been said already.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
pdfan
n00b
n00b


Joined: 03 May 2010
Posts: 6

PostPosted: Tue May 20, 2014 5:03 pm    Post subject: Re: any one succeeded in reverting EXT4 to EXT3? Reply with quote

[quote="genstorm"]gparted will be your friend.[/quote]

gparted is really better and not need to revert EXT4 to EXT3 . just copy partitions from one disk to another, then activate the boot partition on the new disk.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum