Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I wonder how I can format drive in Linux. What tools would I need?.
Can be command line ones.
Installed qtparted, it runs but critical error shows up.
"Cannot read disk". I have no fdisk but it would allow me only to set up
partitions for the formatting. I want to format one partition without
changing the set up of them.
But I have no mkfs. This is 64-bit Fedora and there are no such tools like
fdisk or mkfs. Neither in normal user nor su. Maybe therea are some other tools which this system have?.
With this command I can format drive to fat32?. Because this is what I want. I cannot format this partition from windows. In windows formatting goes on well till 100% than it says that the disk cannot be formatted.
Tried Partition Magic 7.0 and 8.0 but to no avail. It just won't start.
ok so you found mkfs? please answer the questions asked so you can be helped correctly.
If you can format it in windows try doing a quick format. Otherwise mkfs -t fat is the command you need to use.
You do not need partitioning software just to format a drive.
if your getting can't read errors you may have other issues, bad sectors, or corrupted partition.
Also make sure the drive is not mounted while you are trying to use mkfs on it.
I have no access to the computer in question, but I asked question from
previous post in advance. Quick format doesn't work as well. This is new
disk so I don't suspect there are bad sectors etc. But who knows?.
if its a new disk it may not have a partition to format on it. These are all things that would have been good to know from the beginning, I guess its my fault for not asking.
As you do not have access to the machine I don't know what else to suggest.
Yes, it's a new disk but already partitioned. It has 6 partitions and one of them cannot be formatted. I loose 80GB. On one of them there is windows, on some other Fedora. I tried to format from windows: no success. So now I try to format on fat32 from Fedora. I think the situation is now clear.
OK, I've checked, there is fdisk and mkfs, as you suggested, in /sbin directory. But command /sbin/mkfs -t fat /dev/sda6 (in my case) doesn't work, it says something like that: "mkfs.fat: No such file or directory".
With ext2 as a parameter program runs, but not when there is fat or fat32(checked that also) as a parameter.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.