Project

General

Profile

Bug #396

hdd create and io scripts needs to be improved

Added by Anonymous almost 6 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Start date:
03/05/2012
Due date:
% Done:

0%


Description

I'm having trouble with these two scripts. They report successfull creation/injection but the images does not work under Win311/95/98. Additionaly there seem to be many errors during creation. The script should either hide them if they are not important or it should not return success.

Neither FAT16 nor 32 works in all cases.

Same with the output from existing images (to create one single folder containing all needed files which works in most cases).

I'm member of the disk group and fulfill any requirements.

History

#1 Updated by Anonymous almost 6 years ago

  • Assignee set to Isgandar Valizada

Test Case 1 (create an image) ===========
Preconditions
User is in the disk group, can be checked with
$ less /etc/group
This file must contain a line
disk:x:6:username
pmount is installed.
sudo ist used just to be sure that the user has all privileges

Qemu version 0.10

The following baseimages are used
win_311_wp.qcow2
win_95_ami_ps_pdf_video.qcow2
win_98_abw_doc8_0.qcow2

HDD_creation script
Create an empty image and try to access it under Windows 3.11, 95 and 98. Creation is done with the following line. An arbitrary file is copied to the drive.
$ sudo ./hdd_create.sh 6 30 software.img
Then qemu is started
$ qemu <image> -hdb software.img -snapshot

Expected Result: It should be possible to open the drive without any error messages in all OSes. The file can be written on the drive.

Actual Result: Pass. But there are lots of misleading messages during creating of the disk.

Test Case 2 (inject files to the image) ===========
Preconditions
Test case 1 was successful.

Write some files to the drive
$ sudo ./hdd_io.sh i software.img software/unsorted/PaintShopPro41/*

Try to access these files in the guest systems.

Expected result: Files should be accessible in all OSes.

Actual Result: Pass.

Test Case 3 (output files from an esisting diskette image) ===========
Here, we use the hdd_io script to obtain files that are inside an existing image.
$ sudo ./hdd_io.sh o software/win31/WordPerfect_de/wordperf60-1.img wordperf/

Excepted Result: The Files should be in the specified folder
Actual Result:
NTFS signature is missing.
Failed to mount '/dev/loop0': Das Argument ist ungültig
The device '/dev/loop0' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
NTFS signature is missing.
Failed to mount '/dev/loop0': Das Argument ist ungültig
The device '/dev/loop0' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Fehler: Gerät /dev/loop0 ist nicht eingebunden

#2 Updated by Anonymous almost 6 years ago

In Test Case 2, Windows 3.11 can't delete files on the image. It says it can't find the file. But the setup can be run without problems.

Also available in: Atom PDF