Opened 11 years ago

Last modified 2 years ago

#2470 assigned bug

DriveSetup error preparing disk

Reported by: meanwhile Owned by: nobody
Priority: normal Milestone: R1
Component: Kits/Storage Kit Version: R1/pre-alpha1
Keywords: Cc: miqlas@…
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Trying to re-initialize a corrupted partition, using DriveSetup (on Haiku hrev25619) fails with: "There was an error preparing the disk for modifications. Error: Invalid Argument."

Attachments (7)

DriveSetup.png (118.6 KB) - added by meanwhile 11 years ago.
Insight into the partitions spread over 2 HD's
DriveSetupOutput.txt (1.2 KB) - added by meanwhile 11 years ago.
What the Terminal says after starting DriveSetup, selecting 'no name' and choosing 'Partition', 'Initialize', 'Be File System', 'Continue', 'OK'.
DriveSetup26397.txt (855 bytes) - added by meanwhile 11 years ago.
DriveSetup26477.txt (859 bytes) - added by meanwhile 11 years ago.
DriveSetup_error.jpg (143.2 KB) - added by miqlas 10 years ago.
DriveSetup error massage (I started it from Terminal, but there is no error massage in the Terminal window)
driveinfo_error.jpg (177.0 KB) - added by miqlas 10 years ago.
driveinfo command
syslog_miqlas.txt (67.2 KB) - added by miqlas 10 years ago.
Syslog (miqlas)

Download all attachments as: .zip

Change History (22)

comment:1 Changed 11 years ago by stippi

Could you please run DriveSetup in a Terminal and reproduce the error? You should get more specific error output, please paste it here.

comment:2 Changed 11 years ago by meanwhile

Thanks; could you please tell me how to do so? I'm not experienced in using Terminal at all, unfortunately...

comment:3 Changed 11 years ago by stippi

Open the "Terminal" application. At the prompt, type "DriveSetup" (case is important) and hit the Return/Enter key. This works because the path to the "DriveSetup" application in the file system is part of the "PATH" environment variable, which contains all paths that the Terminal searches for "commands". Commands are just regular programs without a graphical user interface. Most often, commands do something with the "standard input" and the "standard output", which has to do with the text in the Terminal, think of these as input and output data channels. The power of the Terminal is that multiple commands can be chained together by these channels, and entire programs can be formed by scripts of commands. You should look into it sometimes, it can be quite interesting and powerful! :-) DriveSetup outputs additional error information to the "standard output", which means into the Terminal if you launch it there. If you launch DriveSetup from Tracker/Deskbar, this output goes "nowhere" and stays invisible.

Changed 11 years ago by meanwhile

Attachment: DriveSetup.png added

Insight into the partitions spread over 2 HD's

Changed 11 years ago by meanwhile

Attachment: DriveSetupOutput.txt added

What the Terminal says after starting DriveSetup, selecting 'no name' and choosing 'Partition', 'Initialize', 'Be File System', 'Continue', 'OK'.

comment:4 Changed 11 years ago by meanwhile

I forgot to mention what I did before: After problems (described in #2461), I reformatted the troublesome Haiku partition using PartitionMagic into another filesystem (FAT32), then installed BeOS 5 Pro onto it, from its original install-disc. When asked by the BeOS 5 Pro installer if I wanted to initialize the partition, I chose 'yes' and used the 1024 blocksize. After installing had completed, I checked if the BeOS 5 Pro was properly installed and it was. It was this partition, named 'no name' (see above), that I then tried to initialize, using DriveSetup from another - but still working- Haiku partition on the same PC.

Stippi, please let me know if you think this is a DriveSetup bug that can be solved someday, or if it is something inevitable that has to do with recent changes in Haiku.

Or maybe DriveSetup can initialize other filesystems like NTFS or FAT32? I'd try that then.

comment:5 Changed 11 years ago by meanwhile

Update: just managed to replace the working Haiku partition with the latest revision (without initializing)...

comment:6 Changed 11 years ago by stippi

I am getting a similar error as long as I have the reiserfs add-on installed. But I am getting reiserfs related output in the Terminal when I try to init a partition. When I remove the reiserfs add-on, I can init the partition. However, your output looks different. We may work on partitioning in the next weeks. It doesn't really matter if the problem is in DriveSetup (probably not) or somewhere closer to the kernel and it's add-ons. It's just a bug that we need to fix. As long as it is reproducible, it should be relatively quick to find.

comment:7 Changed 11 years ago by bonefish

Should be fixed in hrev26397. Please verify.

comment:8 Changed 11 years ago by meanwhile

Tried it from hrev26397 (see attachment)

Changed 11 years ago by meanwhile

Attachment: DriveSetup26397.txt added

comment:9 Changed 11 years ago by stippi

Please try again with hrev26465, DriveSetup could be confused in various ways. The preparation for modifications would then fail before initializing a partition.

comment:10 Changed 11 years ago by meanwhile

Added attachment with the results from hrev26477.

Changed 11 years ago by meanwhile

Attachment: DriveSetup26477.txt added

comment:11 Changed 11 years ago by stippi

This looks more like a problem in the disk device manager from the output.

comment:12 Changed 10 years ago by miqlas

I have the same problem, but i don't see any error in the syslog. But i attach 2 interresting screenshoot. Please, chek it.

Changed 10 years ago by miqlas

Attachment: DriveSetup_error.jpg added

DriveSetup error massage (I started it from Terminal, but there is no error massage in the Terminal window)

Changed 10 years ago by miqlas

Attachment: driveinfo_error.jpg added

driveinfo command

Changed 10 years ago by miqlas

Attachment: syslog_miqlas.txt added

Syslog (miqlas)

comment:13 Changed 10 years ago by miqlas

Cc: miqlas@… added

comment:14 Changed 8 years ago by diver

Component: - GeneralKits/Storage Kit

comment:15 Changed 2 years ago by axeld

Owner: changed from axeld to nobody
Status: newassigned
Note: See TracTickets for help on using tickets.