Author Topic: getting chkdsk fix errors on C (Vm Virtualbox)  (Read 7475 times)

mauro

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: +3/-0
    • View Profile
getting chkdsk fix errors on C (Vm Virtualbox)
« on: January 13, 2024, 12:35:36 pm »
Hi, if I run chkdsk on C:\  from inside a OS2 open session, then the prompt warns that no fix actions will be possible as the disk remains in read-only mode, and that is fully understandable.
Could you suggest a way to make a chkdsk scanning that could fix the corrupted-bad sectors, that I guess could be performed from an external installation media, which I don't own  (I used a first-boot Warp 4.52 .vdi image to be directly imported in Virtualbox).
Thank you

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1067
  • Karma: +27/-0
    • View Profile
    • Blonde Guy
Re: getting chkdsk fix errors on C (Vm Virtualbox)
« Reply #1 on: January 13, 2024, 03:22:28 pm »
Make a copy of the VDI using the host operating system.
Add the copy to your Virtual Machine
OS/2 will mount the 2nd C: drive, but LVM will assign another drive letter.
Chkdsk the second drive using the assigned letter.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4977
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: getting chkdsk fix errors on C (Vm Virtualbox)
« Reply #2 on: January 13, 2024, 03:28:13 pm »
Hi Mauro

I guess you can:
a) Get the CD-ROM images of Warp 4.52. Boot from the CD, press F3 on the installer and run checkdisk to the hard drive.
or
b) Generate the maintenance images from you VirtualBox image. Mount a Disk1.img empty image as a diskettes and create the diskette from the Maintenance Tool, and go through all the disk. Then boot VBox with the DISK1.IMG mounted and got to the command propmt and checkdisk from there.  (Image attached)
or
c) Mount the "dirty" vdi image on a different OS/2 VM as as secondary disk, boot the image and run checkdisk from there to the second hard drive.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

mauro

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: +3/-0
    • View Profile
Re: getting chkdsk fix errors on C (Vm Virtualbox)
« Reply #3 on: January 13, 2024, 05:28:37 pm »
Make a copy of the VDI using the host operating system.
Add the copy to your Virtual Machine
OS/2 will mount the 2nd C: drive, but LVM will assign another drive letter.
Chkdsk the second drive using the assigned letter.

Hi Neil, cannot import a .vdi file as an additional volume, .vdi format file is not allowed for this operation
« Last Edit: January 13, 2024, 05:42:04 pm by mauro »

mauro

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: +3/-0
    • View Profile
Re: getting chkdsk fix errors on C (Vm Virtualbox)
« Reply #4 on: January 13, 2024, 05:40:54 pm »
Hi Mauro

Hi Martin

Quote
I guess you can:
a) Get the CD-ROM images of Warp 4.52. Boot from the CD, press F3 on the installer and run checkdisk to the hard drive.


Have no boot CD of OS2, need to look around where to get one
Quote

or
b) Generate the maintenance images from you VirtualBox image. Mount a Disk1.img empty image as a diskettes and create the diskette from the Maintenance Tool, and go through all the disk. Then boot VBox with the DISK1.IMG mounted and got to the command propmt and checkdisk from there.  (Image attached)

Passages too tricky for me, will mess up the situation for sure
Quote

or
c) Mount the "dirty" vdi image on a different OS/2 VM as as secondary disk, boot the image and run checkdisk from there to the second hard drive.

mounting a .vdi file as secondary disk isn't allowed by Virtualbox, only .dmg, .cue, .viso, .iso, .cdr format are selectable

thank you anyway

Per E. Johannessen

  • Sr. Member
  • ****
  • Posts: 256
  • Karma: +3/-0
    • View Profile
Re: getting chkdsk fix errors on C (Vm Virtualbox)
« Reply #5 on: January 13, 2024, 07:26:01 pm »
If you're able to edit config.sys you could have chkdsk running on the next boot.
The following is from the IBM help-file:

-----
 IFS Command: /AUTOCHECK Parameter

Specifies the drives that the operating system checks at startup time to determine if the file system associated with a drive is in an inconsistent state. A file system could be in an inconsistent state when files were left open. This can happen when:

The computer was turned off without selecting the Shut down choice from the menu of the desktop.

Electrical power to the computer was interrupted.

The OS/2 operating system runs the CHKDSK program with the /F option to correct any problem caused by improper system shutdown. Each time you format a drive for the High Performance File System, the operating system updates the IFS statement in the CONFIG.SYS file with the appropriate AUTOCHECK parameter.

If you place a plus sign (+) in front of any drive letter, the drive will be checked every time the system is started.

Assume the following statement appears in the CONFIG.SYS file:

IFS=C:\OS2\HPFS.IFS /C:64 /AUTOCHECK:D+EF


Each time it starts, the operating system checks drives D, E, and F. If necessary, it runs the CHKDSK program on drives D and F. CHKDSK will always be run on drive E.
-----

mauro

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: +3/-0
    • View Profile
Re: getting chkdsk fix errors on C (Vm Virtualbox)
« Reply #6 on: January 13, 2024, 09:50:53 pm »
If you're able to edit config.sys you could have chkdsk running on the next boot.
The following is from the IBM help-file:


The OS/2 operating system runs the CHKDSK program with the /F option to correct any problem caused by improper system shutdown. Each time you format a drive for the High Performance File System, the operating system updates the IFS statement in the CONFIG.SYS file with the appropriate AUTOCHECK parameter.

If you place a plus sign (+) in front of any drive letter, the drive will be checked every time the system is started.

Assume the following statement appears in the CONFIG.SYS file:

IFS=C:\OS2\HPFS.IFS /C:64 /AUTOCHECK:D+EF


Each time it starts, the operating system checks drives D, E, and F. If necessary, it runs the CHKDSK program on drives D and F. CHKDSK will always be run on drive E.
-----

Understand. What apply to a JFS filesystem in C: ?

IFS=C:\OS2\JFS.IFS /C:64 /AUTOCHECK:C

is this the command to append in config.sys?

Per E. Johannessen

  • Sr. Member
  • ****
  • Posts: 256
  • Karma: +3/-0
    • View Profile
Re: getting chkdsk fix errors on C (Vm Virtualbox)
« Reply #7 on: January 13, 2024, 11:05:07 pm »
Not at my system right now, but found this:

http://www.edm2.com/index.php/JFS.IFS_(CONFIG.SYS)