Using physical hard disk in PCem on UNIX/Linux systems

Discussion of development and patch submission.
Post Reply
User avatar
Martin_Riarte
Posts: 30
Joined: Mon 12 Nov, 2018 7:27 pm

Using physical hard disk in PCem on UNIX/Linux systems

Post by Martin_Riarte »

I was experimenting how to use a physical hard disk in PCem and this is what I got:

Step 1: Connect / reserve a physical hard drive for work.

Step2: Link the hard disk to an .img file (previously enable the necessary permissions
if it is going to be used in user mode):

ln -s /dev/sdb filename.img (where sdb or hdb should be replaced by the name of your physical hard drive).

Step 3: Load the file filename.img in the created machine (depending on the architecture, the operating system and
the size of the disk, it will detect all or part of it).

Step 4: Boot the virtual machine to create partitions, load system, etc.

PD: In my case, my 40GB physical hard drive is in /dev/sdh, the BIOS detected it as PCen with 32253MB and with
PCem the MS-DOS 6.22 created a 500MB partition, for the first test, it's fine!.
Then I will be adjusting it to see if it uses the whole disk and since MS-DOS 6.22 prepared it in this way by default.

Here is a video showing the test:
Image

Image
--
Attachments
Pantallazo-1.jpg
Pantallazo-1.jpg (218.58 KiB) Viewed 14352 times
Pantallazo.jpg
Pantallazo.jpg (177.04 KiB) Viewed 14374 times
Last edited by Martin_Riarte on Thu 06 Dec, 2018 9:37 am, edited 7 times in total.
shermanp
Posts: 175
Joined: Sat 18 Feb, 2017 2:09 am

Re: Using physical hard disk in PCem on UNIX/Linux systems

Post by shermanp »

This seems rather... adventurous. What would be the reason for wanting to do this, if I may ask out of curiosity?

With regards to the size the PCem BIOS sees, you'll probably only have luck with sizes over 32GB using the Award 430VX BIOS. You may want to experiment setting the CHS geometry to n/16/255 instead of n/16/63 in the config file (note the GUI won't let you do this).

Good luck. You've got more courage than I do for attempting this!
User avatar
Martin_Riarte
Posts: 30
Joined: Mon 12 Nov, 2018 7:27 pm

Re: Using physical hard disk in PCem on UNIX/Linux systems

Post by Martin_Riarte »

Just to know if I can, at this moment, I'm formatting the 40GB physical hard drive from the CentOS desktop, loading Win98SE and installing from PCem, I accepted it without problems.
I tried 5 times with MS-DOS 6.22 on several machines, and now with Win98SE and it works.
I am playful by nature with hardware and software since I was 15 years old (in 1986 !!, my dear 80s !!!).
I like to "hack" both software and software and I like to get away with mine ... Martín 1 - Emulador 0.-
User avatar
Martin_Riarte
Posts: 30
Joined: Mon 12 Nov, 2018 7:27 pm

Re: Using physical hard disk in PCem on UNIX/Linux systems

Post by Martin_Riarte »

Do you need another screenshot or make a video and the link from youtube?...
User avatar
Martin_Riarte
Posts: 30
Joined: Mon 12 Nov, 2018 7:27 pm

Re: Using physical hard disk in PCem on UNIX/Linux systems

Post by Martin_Riarte »

Sorry if I miss words in Spanish, I use google to translate to English, I am Spanish speaking or obviously !!.

Desde Argentina con cariño para todos!!.
darksabre76
Posts: 69
Joined: Tue 12 Sep, 2017 4:33 am
Location: Seattle, WA, USA
Contact:

Re: Using physical hard disk in PCem on UNIX/Linux systems

Post by darksabre76 »

I could imagine one reason for doing this would be easy transfer of a lot of files without setting up compatible network shares or fake CD/ZIP images to pass things in.
User avatar
Martin_Riarte
Posts: 30
Joined: Mon 12 Nov, 2018 7:27 pm

Re: Using physical hard disk in PCem on UNIX/Linux systems

Post by Martin_Riarte »

Well, yes, but to satisfy more than anything the question "can I do it? ..." and because
I have a physical hard drive from Asus "when I had it" that I purposely add as a virtual
machine and retrieve information from that important time for me. , photos of dad before
dying, videos with mom showing him a voice synthesizer made in Talent MSX DPC-200,
etc.
szadycbr
Posts: 295
Joined: Mon 21 Nov, 2016 6:23 pm

Re: Using physical hard disk in PCem on UNIX/Linux systems

Post by szadycbr »

Hey Martin , thank You , this is kinda cool. i guess memory stick in linux could be used to. ill try it later, but i like the idea and possibillity :)
User avatar
Martin_Riarte
Posts: 30
Joined: Mon 12 Nov, 2018 7:27 pm

Re: Using physical hard disk in PCem on UNIX/Linux systems

Post by Martin_Riarte »

I already learned to paste images and videos without attaching them,
thanks to my oldest son, I do not know what I would do without you boy!
EluanCM
Posts: 112
Joined: Tue 27 Oct, 2015 2:07 pm
Location: Brazil
Contact:

Re: Using physical hard disk in PCem on UNIX/Linux systems

Post by EluanCM »

In one of the screenshots, the disk seems to be mounted while being used by PCem? That seems dangerous!
User avatar
Martin_Riarte
Posts: 30
Joined: Mon 12 Nov, 2018 7:27 pm

Re: Using physical hard disk in PCem on UNIX/Linux systems

Post by Martin_Riarte »

The virtual machine is paused and mounted to illustrate the moment, you should NOT have mounted
the hard drive, it could corrupt the data or lose the complete information of the disk, I repeat, you should
NOT have mounted the disk when using it with the virtual machine.
This procedure I had already used with VirtualBox, and while we do not do silly things like assembling
the disk while using it, everything will be fine.
Good comment @EluanCM, I missed that one.
Post Reply