Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

OLD POST. IGNORE If my root / is ext4, how do I change /some/other/directory to ext3? Assuming this is possible, please explain how a directory of one type can exist in a directory of another type.

NEW POST I have a directory /some/directory which is partitioned using ext4. It contains a directory /some/directory/subdirectory which I wish to change to ext3.

My plan to do so is to create a new partition of type ext3, more the contents of /some/directory/subdirectory to the new partition, and mount it to the now empty /some/directory/subdirectory Is this the proper way to do so?

share|improve this question
    
Please if you down vote, tell me why so I know and don't repeat it. Thanks –  user1032531 Jul 2 '13 at 2:34
3  
If you float your mouse over the downvote arrow you'll see a pop up message. Downvotes without comments are usually justified by that. –  Iain Jul 2 '13 at 17:38
    
yes the "new post" question is the correct way. –  BeowulfNode42 Jul 23 '13 at 3:34

1 Answer 1

up vote 2 down vote accepted

A directory isn't ext3 or 4, a device (usually a partition of a drive, or something like LVM) is formatted with one of these filesystems.

Whatever device is mounted to / is ext4; if you want for /some/other/directory to be ext3, then you should format a device as ext3 and mount it there.

But this requires a separate device to do it with, which is probably not what you want. Please clarify what you're trying to accomplish by doing this and we might be able to give you a more reasonable solution.

share|improve this answer
    
Thanks Shane. I wish to have files stored in /var/lib/mysql as ext3. –  user1032531 Jul 1 '13 at 21:12
    
@user1032531 Right, but what's that going to give you that you need? If you want to have a different filesystem there, you'll need some free space to make a partition for it - do you have unpartitioned space available on a drive? –  Shane Madden Jul 1 '13 at 23:58
    
I've got space, but don't know if it will give me what I need, and was going to try it just to see. Problem stems from MySQL running slow on CentOS 6x (and maybe ext4, but I less think so now). See serverfault.com/questions/518747/… for history. –  user1032531 Jul 2 '13 at 1:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.