change the file system type

Issues related to applications and software problems
Post Reply
knzzz
Posts: 156
Joined: 2017/02/25 12:41:42

change the file system type

Post by knzzz » 2020/10/01 16:44:11

Hi All,

i got the raw disc and change it has ext4 fs ,but unfourtunately i need to convert back to raw disc please assist on this

Regards
kanna

tunk
Posts: 794
Joined: 2017/02/22 15:08:17

Re: change the file system type

Post by tunk » 2020/10/01 17:14:12

What do you mean by raw disk?
If you mean to wipe it and remove everything, then you could use this:
dd if=/dev/zero of=/dev/sdX
This will fill the whole disk with zeros. Just be sure to select the right disk.

knzzz
Posts: 156
Joined: 2017/02/25 12:41:42

Re: change the file system type

Post by knzzz » 2020/10/02 01:59:56

Hi Tunk,

i just want to remove the ext3 file type to another file system type ether ext4

User avatar
TrevorH
Forum Moderator
Posts: 29681
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: change the file system type

Post by TrevorH » 2020/10/02 08:20:06

If you do this then all data on it will be lost.

You need to umount the filesystem in question and then run mkfs -t ext4 against the block device it sat on.

Or you can google and find the magic tune2fs command to convert ext3 to ext4.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - Software Support”