GNU bug report logs - #57142
reporting an issue

Previous Next

Package: parted;

Reported by: Anton Wessel <Anton_Wessel <at> t-online.de>

Date: Thu, 11 Aug 2022 16:11:02 UTC

Severity: normal

Done: "Brian C. Lane" <bcl <at> redhat.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57142 in the body.
You can then email your comments to 57142 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-parted <at> gnu.org:
bug#57142; Package parted. (Thu, 11 Aug 2022 16:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Anton Wessel <Anton_Wessel <at> t-online.de>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Thu, 11 Aug 2022 16:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Anton Wessel <Anton_Wessel <at> t-online.de>
To: <bug-parted <at> gnu.org>
Subject: reporting an issue
Date: Thu, 11 Aug 2022 14:55:43 +0200
[Message part 1 (text/plain, inline)]
Dear Ladies and Gentlemen,

In KNOPPIX 9.1 I use parted version 3.4

I am trying to repair the USB stick

> SanDisk Cruzer Glide
> SDCZ60-256G-B35

which was destoyed by partclone.

Gparted shows red warnigs, that no filesystem can be found.

With Gparted I have often deleted the partition(s) and created various new 
patitions with partition tables msdos and gpt.

Yet not tried ntfs until yet.

Until yet all was of no help.

Now I am going on to make partitioning to ntfs and exfat.

For this I am now using the tool parted.

In the moment the non-working on the USB stick has the partition table msdos.

For the parted command "mkpart" the documentation "info parted" says:

PART-TYPE is one of "primary", "extended" or "logical", and may be 
specified only with "msdos" or "dvh" partition tables.

Now the problem is:

I intend to mkpart "ntfs",
but nevertheless parted insists to type "primary".

Without giving "primary" I cannot progress, and with giving "primary" an 
error message is produced.

This is true for interactive operation as well as for non-interactive.

There is no way to use parted.

You want to receive with each bug report the output of the parted command

parted /dev/sdp unit s print free

(I have tried sdp and sdp1)

The output I cite here:

+++++

Model: SanDisk Cruzer Glide (scsi)

Disk /dev/sdp: 487391232s

Sector size (logical/physical): 512B/513B

Partition Table: msdos

Disk Flags:   (none)

Number  Start       End                Size  Type  FileSystem  Flags

                2s          2047s            2046s  (none)  FreeSpace  (none)

1               2048s  487391231s  487389184s  primary  (none)  (none)

-----

Regards

Anton_Wessel <at> t-online
de
[Message part 2 (text/html, inline)]

Information forwarded to bug-parted <at> gnu.org:
bug#57142; Package parted. (Fri, 12 Aug 2022 15:40:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "P.C. User" <driver64 <at> goldmail.de>
To: bug-parted <at> gnu.org, Anton Wessel <Anton_Wessel <at> t-online.de>,
 57142 <at> debbugs.gnu.org
Subject: Re: bug#57142: reporting an issue
Date: Fri, 12 Aug 2022 14:11:49 +0200
[Message part 1 (text/plain, inline)]
Dear Anton,

please, read 

https://de.wikipedia.org/wiki/Master_Boot_Record#Prim%C3%A4re_und_erweiterte_Partitionstabelle

Brief: An MBR partition table can hold 4 primary partition entries - or in place of one of them an extended partition. 
The Filesystem type is an indicator in this table. Additionally the partition needs to be formatted, i.e. the file system structure needs to be written to the partition.

Try testdisk for rescue - it's able to recover lost partitons including file system - while photorec would search for data and try to copy files found to a different media.

Regards,
P.C.User

Am 11. August 2022 14:55:43 MESZ schrieb Anton Wessel <Anton_Wessel <at> t-online.de>:

Dear Ladies and Gentlemen,

In KNOPPIX 9.1 I use parted version 3.4

I am trying to repair the USB stick

> SanDisk Cruzer Glide
> SDCZ60-256G-B35

which was destoyed by partclone.

Gparted shows red warnigs, that no filesystem can be found.

With Gparted I have often deleted the partition(s) and created various new patitions with partition tables msdos and gpt.

Yet not tried ntfs until yet.

Until yet all was of no help.

Now I am going on to make partitioning to ntfs and exfat.

For this I am now using the tool parted.

In the moment the non-working on the USB stick has the partition table msdos.

For the parted command "mkpart" the documentation "info parted" says:

PART-TYPE is one of "primary", "extended" or "logical", and may be specified only with "msdos" or "dvh" partition tables.

Now the problem is:

I intend to mkpart "ntfs",
but nevertheless parted insists to type "primary".

Without giving "primary" I cannot progress, and with giving "primary" an error message is produced.

This is true for interactive operation as well as for non-interactive.

There is no way to use parted.

You want to receive with each bug report the output of the parted command

parted /dev/sdp unit s print free

(I have tried sdp and sdp1)

The output I cite here:

+++++

Model: SanDisk Cruzer Glide (scsi)

Disk /dev/sdp: 487391232s

Sector size (logical/physical): 512B/513B

Partition Table: msdos

Disk Flags:   (none)

Number  Start       End                Size  Type  FileSystem  Flags

                2s          2047s            2046s  (none)  FreeSpace  (none)

1               2048s  487391231s  487389184s  primary  (none)  (none)

-----

Regards

Anton_Wessel <at> t-online
de
[Message part 2 (text/html, inline)]

Information forwarded to bug-parted <at> gnu.org:
bug#57142; Package parted. (Fri, 12 Aug 2022 15:40:02 GMT) Full text and rfc822 format available.

Reply sent to "Brian C. Lane" <bcl <at> redhat.com>:
You have taken responsibility. (Mon, 15 Aug 2022 18:19:02 GMT) Full text and rfc822 format available.

Notification sent to Anton Wessel <Anton_Wessel <at> t-online.de>:
bug acknowledged by developer. (Mon, 15 Aug 2022 18:19:02 GMT) Full text and rfc822 format available.

Message #16 received at 57142-close <at> debbugs.gnu.org (full text, mbox):

From: "Brian C. Lane" <bcl <at> redhat.com>
To: Anton Wessel <Anton_Wessel <at> t-online.de>
Cc: 57142-close <at> debbugs.gnu.org
Subject: Re: bug#57142: reporting an issue
Date: Mon, 15 Aug 2022 11:17:59 -0700
On Thu, Aug 11, 2022 at 02:55:43PM +0200, Anton Wessel wrote:
> 
> Dear Ladies and Gentlemen,
> 
> In KNOPPIX 9.1 I use parted version 3.4
> 
> I am trying to repair the USB stick
> 
> > SanDisk Cruzer Glide
> > SDCZ60-256G-B35
> 
> which was destoyed by partclone.

I am not sure what you mean by repair, but parted likely isn't the tool
you want for that.

parted *can* re-partition the device, but you will lose your data when
you re-format it.

As the other response said, you need to use 'primary' on msdos
labeled devices. Setting the filesystem type to ntfs will set the
partition type for an NTFS filesystem, but will not actually format it.
You need to use mkfs.ntfs to do that.

Good Luck,

Brian
-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart





Information forwarded to bug-parted <at> gnu.org:
bug#57142; Package parted. (Mon, 15 Aug 2022 18:27:01 GMT) Full text and rfc822 format available.

Message #19 received at 57142 <at> debbugs.gnu.org (full text, mbox):

From: josep lladonosa capell <jlladonosa <at> gmail.com>
To: 57142 <at> debbugs.gnu.org, bcl <at> redhat.com, Anton_Wessel <at> t-online.de
Cc: 57142-close <at> debbugs.gnu.org
Subject: Re: bug#57142: reporting an issue
Date: Mon, 15 Aug 2022 20:25:46 +0200
[Message part 1 (text/plain, inline)]
To recover partitioning, perhaps a tool like Photorec could help...

El dl., 15 d’ag. 2022, 20:19, Brian C. Lane <bcl <at> redhat.com> va escriure:

> On Thu, Aug 11, 2022 at 02:55:43PM +0200, Anton Wessel wrote:
> >
> > Dear Ladies and Gentlemen,
> >
> > In KNOPPIX 9.1 I use parted version 3.4
> >
> > I am trying to repair the USB stick
> >
> > > SanDisk Cruzer Glide
> > > SDCZ60-256G-B35
> >
> > which was destoyed by partclone.
>
> I am not sure what you mean by repair, but parted likely isn't the tool
> you want for that.
>
> parted *can* re-partition the device, but you will lose your data when
> you re-format it.
>
> As the other response said, you need to use 'primary' on msdos
> labeled devices. Setting the filesystem type to ntfs will set the
> partition type for an NTFS filesystem, but will not actually format it.
> You need to use mkfs.ntfs to do that.
>
> Good Luck,
>
> Brian
> --
> Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
>
>
>
>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-parted <at> gnu.org:
bug#57142; Package parted. (Mon, 15 Aug 2022 18:27:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 13 Sep 2022 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 225 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.