Invalid argument passed to ext2 library while setting up superblock
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Finally, i solved the problem
I set the bus cable to "Cable Select" & the hdd got formated
I was also running into this error. For some reason when I changed the hard drive jumper from master to cable select I was able to fix it. After moving the jumper I reformatted and then the mkfs command worked.
Before I added it to my current system as a second disk it was set to cable select. My guess would be that if you formated the disk as cable select and changed the jumper to master and then formated it again that it might also work. I have not tried it but I think it would work.
Hi - I experienced this problem and found that the solution was in fdisk - rather than selecting extended as the type of partition, I chose primary partitions only. I was then able to mkfs.ext3 all partitions.
And I've found that the best way to experiment is to work with VMware images. Like get an .iso of something really small and cute (like Tiny Core Linux), get an empty virtual disk, and play away without the anxiety of dealing with actual hardware.
Have you created an extended partition? If so, you have to add to the extended partition a logical partition, which you add, after creating the extended partition, also with fdisk -> n (add partition).
Afterwards you can run mkfs.ext3 /dev/sda3. You get the error if you would like to format the extended partition, so sda3 is the logical.
To one extended partition you can add multiple logical partitions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.