change the file system type

Issues related to applications and software problems
Post Reply
knzzz
Posts: 157
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: 1205
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: 157
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
Site Admin
Posts: 33202
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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply