please help: did I just ruin my ssd? mkfs.ext4: invalid blocks
Hello, I have a new ssd, I encrypted a partition and installed reiserfs (did that on my 15.1 system). Plugging it to my pad with 15.3 I saw that it canot handel it, and searching I found that Opensuse decided to make my backups worthless. So I plugged it again to the 15.1. used fdisk to delete the partition. made a new partition in fdisk. Wet to yast, clicked to istall an encrypted ext4 system. As after the last click the window disappeared without further notice I assumend it was done and unplugged the ssd. Received a nice message, that a process was iterrupted (and I thanked a lot to the highly itelligent programmer who closes a window without any hint about a still running process...). Ok, wanted to repeat. But Yast says it cannot istall ext4 because some cr_xxx is already here. So again fdisk, delete partition, make a new one, back to Yast, same error. So I wet the manual way (the ssd partition is sdg1): dd_rescue -m 2M /dev/urandom /dev/sdg1 cryptsetup -v --key-size 256 luksFormat /dev/sdg1 my_cryptkey-file cryptsetup luksOpen /dev/sdg1 cr_sdg1 mkfs.ext4 /dev/mapper/cr_sdg1 /dev/mapper/cr_sdg1 here I get: mkfs.ext4: invalid blocks '/dev/mapper/cr_sdg1' on device '/dev/mapper/cr_sdg1' Did I do an error? How can I get my ssd back into a virgin state, to begin from scratch? I need urgent help, because I go to travel tomorrow and must take those ssd with me, working on 15.3... Thank you very much for your help. Daniel -- Daniel Bauer photographer Basel Málaga https://www.patreon.com/danielbauer https://www.daniel-bauer.com
Am 27.07.2021 um 14:07 schrieb Daniel Bauer:
mkfs.ext4 /dev/mapper/cr_sdg1 /dev/mapper/cr_sdg1
here I get: mkfs.ext4: invalid blocks '/dev/mapper/cr_sdg1' on device '/dev/mapper/cr_sdg1'
of course you get an error there, you specified the device TWICE. Cheers MH -- Mathias Homann Mathias.Homann@openSUSE.org Jabber (XMPP): lemmy@tuxonline.tech IRC: [Lemmy] on freenode and ircnet (bouncer active) telegram: https://telegram.me/lemmy98 keybase: https://keybase.io/lemmy gpg key fingerprint: 8029 2240 F4DD 7776 E7D2 C042 6B8E 029E 13F2 C102
Am 27.07.21 um 14:13 schrieb Mathias Homann:
Am 27.07.2021 um 14:07 schrieb Daniel Bauer:
mkfs.ext4 /dev/mapper/cr_sdg1 /dev/mapper/cr_sdg1
here I get: mkfs.ext4: invalid blocks '/dev/mapper/cr_sdg1' on device '/dev/mapper/cr_sdg1'
of course you get an error there, you specified the device TWICE.
Ok, can you then tell me please how the correct syntax would be? I just copied the phrase I use with reiserfs: /sbin/mkfs.reiserfs -j /dev/mapper/cr_sdg1 /dev/mapper/cr_sdg1 This works. I just tried it on that disk, and there is now a working reiserfs, but cannot use that on the pad, so I must change it to ext4. How do I do it correct? -- Daniel Bauer photographer Basel Málaga https://www.patreon.com/danielbauer https://www.daniel-bauer.com
On 27.07.21 14:26, Daniel Bauer wrote:
Am 27.07.21 um 14:13 schrieb Mathias Homann:
Am 27.07.2021 um 14:07 schrieb Daniel Bauer:
mkfs.ext4 /dev/mapper/cr_sdg1 /dev/mapper/cr_sdg1
here I get: mkfs.ext4: invalid blocks '/dev/mapper/cr_sdg1' on device '/dev/mapper/cr_sdg1'
of course you get an error there, you specified the device TWICE.
Ok, can you then tell me please how the correct syntax would be? I just copied the phrase I use with reiserfs:
/sbin/mkfs.reiserfs -j /dev/mapper/cr_sdg1 /dev/mapper/cr_sdg1
Ahem ... no, you did not ... hint: look at the trick of the vanishing "-j" ;-)
This works. I just tried it on that disk, and there is now a working reiserfs, but cannot use that on the pad, so I must change it to ext4.
How do I do it correct?
Just specify only the partition to format: mkfs -t ext4 /dev/mapper/cr_sdg1 Josef -- SUSE Software Solutions Germany GmbH Maxfeldstr. 5 90409 Nürnberg Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer
On 27/07/2021 14.30, Josef Moellers wrote:
On 27.07.21 14:26, Daniel Bauer wrote:
Ok, can you then tell me please how the correct syntax would be? I just copied the phrase I use with reiserfs:
/sbin/mkfs.reiserfs -j /dev/mapper/cr_sdg1 /dev/mapper/cr_sdg1
Ahem ... no, you did not ... hint: look at the trick of the vanishing "-j" ;-)
Travel stress... BTDT.
This works. I just tried it on that disk, and there is now a working reiserfs, but cannot use that on the pad, so I must change it to ext4.
How do I do it correct?
Just specify only the partition to format: mkfs -t ext4 /dev/mapper/cr_sdg1
Right. Or: mkfs -L SomeName -t ext4 /dev/mapper/cr_sdg1 -- Cheers / Saludos, Carlos E. R. (from oS Leap 15.2 x86_64 (Minas Tirith))
On 27.07.21 14:38, Carlos E. R. wrote:
On 27/07/2021 14.30, Josef Moellers wrote:
On 27.07.21 14:26, Daniel Bauer wrote:
Ok, can you then tell me please how the correct syntax would be? I just copied the phrase I use with reiserfs:
/sbin/mkfs.reiserfs -j /dev/mapper/cr_sdg1 /dev/mapper/cr_sdg1
Ahem ... no, you did not ... hint: look at the trick of the vanishing "-j" ;-)
Travel stress...
BTDT.
This works. I just tried it on that disk, and there is now a working reiserfs, but cannot use that on the pad, so I must change it to ext4.
How do I do it correct?
Just specify only the partition to format: mkfs -t ext4 /dev/mapper/cr_sdg1
Right.
Or:
mkfs -L SomeName -t ext4 /dev/mapper/cr_sdg1
Yes. I never do that, always "e2label ..." later, but your command line sounds like A Good Idea ;-) Good luck, and "be careful out there"! Josef -- SUSE Software Solutions Germany GmbH Maxfeldstr. 5 90409 Nürnberg Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer
Am 27.07.21 um 14:42 schrieb Josef Moellers:
On 27.07.21 14:38, Carlos E. R. wrote:
On 27/07/2021 14.30, Josef Moellers wrote:
On 27.07.21 14:26, Daniel Bauer wrote:
Ok, can you then tell me please how the correct syntax would be? I just copied the phrase I use with reiserfs:
/sbin/mkfs.reiserfs -j /dev/mapper/cr_sdg1 /dev/mapper/cr_sdg1
Ahem ... no, you did not ... hint: look at the trick of the vanishing "-j" ;-)
Travel stress...
BTDT.
This works. I just tried it on that disk, and there is now a working reiserfs, but cannot use that on the pad, so I must change it to ext4.
How do I do it correct?
Just specify only the partition to format: mkfs -t ext4 /dev/mapper/cr_sdg1
Right.
Or:
mkfs -L SomeName -t ext4 /dev/mapper/cr_sdg1
Yes. I never do that, always "e2label ..." later, but your command line sounds like A Good Idea ;-)
Good luck, and "be careful out there"!
Josef
Thank you Josef and Carlos for the fast and efficient help! I used Carlos' version of the command and had full success: it simply worked and the ssd now works on both systems. Uff. (I was really afraid that with my manipulations I ruined my ssd...) -- Daniel Bauer photographer Basel Málaga https://www.patreon.com/danielbauer https://www.daniel-bauer.com
Am 27.07.21 um 14:07 schrieb Daniel Bauer:
Hello,
I have a new ssd, I encrypted a partition and installed reiserfs (did that on my 15.1 system).
Plugging it to my pad with 15.3 I saw that it canot handel it, and searching I found that Opensuse decided to make my backups worthless.
if i remember correct somwhere in past the factory mailinglist, opensuse decide to switch off a lot of (unsecure)filesystems, but they can still enabled by hand. simoN -- www.becherer.de
Hi again, here is the start of the large (402 mails) discussion. ================================================================================================= Re: [opensuse-factory] [PLEASE SPEAK UP] Disabling legacy file systems by default? Am 30.01.19 um 17:41 schrieb Martin Wilck:
SUSE will blacklist a number of legacy and/or less frequently used file systems by default on SLES for security reasons.
The proposed list can be seen here:
https://github.com/openSUSE/suse-module-tools/pull/5/commits/8cb42fb6658f210...
The question is now whether we should do the same for openSUSE. I figure that while the above list is probably not controversial for enterprise customers, openSUSE users may have objections to some items on the list. Please speak up if you do.
In any case, note that even if we do this, you can re-enable the filesystems you need by simply commenting out lines in the blacklist file.
Regards, Martin
========================================================================================================== sorry, i have no idear how to use the online mailinglistarchiv. but im am pretty sure somewhere inside you will find how to enable ;-)) simoN -- www.becherer.de
On Tue, 27 Jul 2021 15:44:01 +0200 Simon Becherer <simon@becherer.de> wrote:
Hi again, here is the start of the large (402 mails) discussion.
=================================================================================================
Re: [opensuse-factory] [PLEASE SPEAK UP] Disabling legacy file systems by default?
Am 30.01.19 um 17:41 schrieb Martin Wilck:
SUSE will blacklist a number of legacy and/or less frequently used file systems by default on SLES for security reasons.
The proposed list can be seen here:
https://github.com/openSUSE/suse-module-tools/pull/5/commits/8cb42fb6658f210...
The question is now whether we should do the same for openSUSE. I figure that while the above list is probably not controversial for enterprise customers, openSUSE users may have objections to some items on the list. Please speak up if you do.
In any case, note that even if we do this, you can re-enable the filesystems you need by simply commenting out lines in the blacklist file.
Regards, Martin
==========================================================================================================
sorry, i have no idear how to use the online mailinglistarchiv.
Well providing a link to the archive, or the ID of the message would probably help anybody trying to find that thread, as well as the name of the list.
but im am pretty sure somewhere inside you will find how to enable ;-))
simoN
According to the github link, all that was proposed (and perhaps has now happened?) was to block the kernel from automatically loading a module for some little-used filesystems when a USB disk is inserted, to help prevent attacks. That seems a reasonable thing to do as [presumably] one can simply arrange for the relevant module to be loaded in advance, if one wishes to use one of the affected filesystems. Also, I don't see reiserfs in the list, so I'm not sure of the relevance to Daniel's problem? But without some link to the relevant thread, I've no way to check my suppositions.
On 27/07/2021 16.33, Dave Howorth wrote:
On Tue, 27 Jul 2021 15:44:01 +0200 Simon Becherer <simon@becherer.de> wrote: ...
sorry, i have no idear how to use the online mailinglistarchiv.
Well providing a link to the archive, or the ID of the message would probably help anybody trying to find that thread, as well as the name of the list.
X-Mailinglist: opensuse-factory Message-ID: <7171ba52c32bb33a20bb1edfe8dbb39a9f39e7ca.camel@suse.com> Subject: [opensuse-factory] [PLEASE SPEAK UP] Disabling legacy file systems by default? From: Martin Wilck <mwilck@suse.com> -- Cheers / Saludos, Carlos E. R. (from oS Leap 15.2 x86_64 (Minas Tirith))
On 27/07/2021 16.47, Carlos E. R. wrote:
On 27/07/2021 16.33, Dave Howorth wrote:
On Tue, 27 Jul 2021 15:44:01 +0200 Simon Becherer <simon@becherer.de> wrote: ...
sorry, i have no idear how to use the online mailinglistarchiv.
Well providing a link to the archive, or the ID of the message would probably help anybody trying to find that thread, as well as the name of the list.
X-Mailinglist: opensuse-factory Message-ID: <7171ba52c32bb33a20bb1edfe8dbb39a9f39e7ca.camel@suse.com> Subject: [opensuse-factory] [PLEASE SPEAK UP] Disabling legacy file systems by default? From: Martin Wilck <mwilck@suse.com> Date: Wed, 30 Jan 2019 17:41:17 +0100
-- Cheers / Saludos, Carlos E. R. (from oS Leap 15.2 x86_64 (Minas Tirith))
On 27/07/2021 15.27, Simon Becherer wrote:
Am 27.07.21 um 14:07 schrieb Daniel Bauer:
Hello,
I have a new ssd, I encrypted a partition and installed reiserfs (did that on my 15.1 system).
Plugging it to my pad with 15.3 I saw that it canot handel it, and searching I found that Opensuse decided to make my backups worthless.
if i remember correct somwhere in past the factory mailinglist, opensuse decide to switch off a lot of (unsecure)filesystems, but they can still enabled by hand.
I remember that thread, but reiserfs was not one of them, AFAIR. -- Cheers / Saludos, Carlos E. R. (from oS Leap 15.2 x86_64 (Minas Tirith))
participants (6)
-
Carlos E. R.
-
Daniel Bauer
-
Dave Howorth
-
Josef Moellers
-
Mathias Homann
-
Simon Becherer