You are not logged in.

#1 2013-10-01 21:18:34

bussiere
Member
Registered: 2013-09-16
Posts: 14

[Solved] mkfs or cgdisk seems to be broken :

I've made a partition with cgdisk

the second is ext4 but when i try to format it with mkfs ext 4 it says :

Bad blocks


So what ?

Is cgdisk faulted or mkfs faulted ?


If needed i will take picture tomorow of the problem.


regards
Bussiere

Last edited by bussiere (2013-10-02 01:16:23)

Offline

#2 2013-10-01 21:21:13

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,601
Website

Re: [Solved] mkfs or cgdisk seems to be broken :

I'd check the health of the physical disk before you start looking for problems with the software. smartmontools in extra would be useful for this. these tools are available from the LiveCD.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2013-10-01 21:23:05

bussiere
Member
Registered: 2013-09-16
Posts: 14

Re: [Solved] mkfs or cgdisk seems to be broken :

WorMzy wrote:

I'd check the health of the physical disk before you start looking for problems with the software. smartmontools in extra would be useful for this. these tools are available from the LiveCD.


I first thought it was my dd but i buy a new one today and i have the same error.

The first one was a classical HD the second one is a ssd ....

Bussiere

Offline

#4 2013-10-01 21:31:51

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,601
Website

Re: [Solved] mkfs or cgdisk seems to be broken :

It may be useful to know exactly what command you using to create the filesystem.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#5 2013-10-01 21:37:08

bussiere
Member
Registered: 2013-09-16
Posts: 14

Re: [Solved] mkfs or cgdisk seems to be broken :

i used cgdisk in semi graphical mode.

i will take picture tomorow...

Offline

#6 2013-10-01 23:08:56

bussiere
Member
Registered: 2013-09-16
Posts: 14

Re: [Solved] mkfs or cgdisk seems to be broken :

here are the "screenshot" :
http://imageshack.us/a/img9/6236/f2a5.jpg

http://imageshack.us/a/img580/8661/y9gc.jpg

The ssd have been bought today.

and yes i've made write.

regards
Bussiere


-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by bussiere (2013-10-01 23:09:35)

Offline

#7 2013-10-01 23:24:58

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,156

Re: [Solved] mkfs or cgdisk seems to be broken :

Please edit your post to show only thumbnails. Link to the larger image if necessary. But you do not really need to post enormous images just to tell us what commands you used, do you?

EDIT: I don't think ext4 is really designed for filesystems this small. What do you intend to use this partition for exactly?

Last edited by cfr (2013-10-01 23:28:03)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#8 2013-10-02 00:53:25

bussiere
Member
Registered: 2013-09-16
Posts: 14

Re: [Solved] mkfs or cgdisk seems to be broken :

cfr wrote:

Please edit your post to show only thumbnails. Link to the larger image if necessary. But you do not really need to post enormous images just to tell us what commands you used, do you?

EDIT: I don't think ext4 is really designed for filesystems this small. What do you intend to use this partition for exactly?


For installing the bootloader.

Sorry for the pics.
But it's what it's said in the tutorial :

# mkfs.ext4 /dev/sda1
# mkfs.ext4 /dev/sda2

Last edited by bussiere (2013-10-02 00:55:09)

Offline

#9 2013-10-02 01:05:13

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,156

Re: [Solved] mkfs or cgdisk seems to be broken :

# mkfs.ext4 /dev/sda1

tries to create a filesystem on the BIOS boot partition. You don't want to create any sort of filesystem on that partition. If you did, I don't think ext4 would be a good choice for a 2MiB partition! It should be OK for sda2, though. The problem there is that you have mistyped the command and are trying to create a different filesystem (ext2) on a non-existent device called "ext4". Look at the wiki again and make sure you understand the commands you are typing!


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#10 2013-10-02 01:16:00

bussiere
Member
Registered: 2013-09-16
Posts: 14

Re: [Solved] mkfs or cgdisk seems to be broken :

cfr wrote:
# mkfs.ext4 /dev/sda1

tries to create a filesystem on the BIOS boot partition. You don't want to create any sort of filesystem on that partition. If you did, I don't think ext4 would be a good choice for a 2MiB partition! It should be OK for sda2, though. The problem there is that you have mistyped the command and are trying to create a different filesystem (ext2) on a non-existent device called "ext4". Look at the wiki again and make sure you understand the commands you are typing!


Ok i'am stupid my bad.

I apologize.

Offline

#11 2013-10-02 01:19:09

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,156

Re: [Solved] mkfs or cgdisk seems to be broken :

bussiere wrote:

Ok i'am stupid my bad.

No. You made a mistake - even a stupid one. If everybody who did that qualified as "stupid", we'd all be... Oh, wait... Hmmm....

I apologize.

To whom? No need, I suspect, whoever it is.

Last edited by cfr (2013-10-02 01:19:29)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#12 2013-10-02 01:23:30

bussiere
Member
Registered: 2013-09-16
Posts: 14

Re: [Solved] mkfs or cgdisk seems to be broken :

cfr wrote:
bussiere wrote:

Ok i'am stupid my bad.

No. You made a mistake - even a stupid one. If everybody who did that qualified as "stupid", we'd all be... Oh, wait... Hmmm....

I apologize.

To whom? No need, I suspect, whoever it is.

It's late here and i've used this command a lot before but i mistake ext4 for a parameter for working to much with 7z and it's command line without - .

Regards and thanks

Offline

Board footer

Powered by FluxBB