Discussion:
linux, mac, wine
(too old to reply)
muta...@gmail.com
2021-05-12 16:22:03 UTC
Permalink
The Macbook Pro that I have is an Intel core i5
which seems to mean that it is 64-bit.

I was thinking I could get a 64 GB USB stick,
install Linux with Wine on it, as well as Windows
Live Mail, and cease using my hard drive.

I can switch to development of PDOS using the
"generic" model, ie:

bios pdos.exe disk.img

for now.

While still being able to use a web browser.

It would be good, but not necessary, to be able to
use a web browser when running on the Mac too.

Any technical barrier to that?

I think I would like the USB stick to be FAT-32, which
is all PDOS can support, which may be useful in the
future. Although the LFN overhead may make things
cumbersome because of the thousands of .eml files
in a single directory.

Any advice on a specific version of Linux and Wine?
I'm not sure Wine is capable of running Windows
Live Mail.

I'm thinking of having some sort of partition that would
allow me to load a future 64-bit version of PDOS instead
of Linux. Presumably all under control of Grub.

Thanks. Paul.
Joe Monk
2021-05-12 21:13:31 UTC
Permalink
In order to boot anything other than macos on a mac, you have to install boot camp, which is the mac alternative to grub. Otherwise youre stuck booting macos from the internal hard drive.

You can use disk utility to create a partition and then boot camp will allow you to boot from it...

Joe
Joe Monk
2021-05-12 21:15:31 UTC
Permalink
Post by Joe Monk
In order to boot anything other than macos on a mac, you have to install boot camp, which is the mac alternative to grub. Otherwise youre stuck booting macos from the internal hard drive.
You can use disk utility to create a partition and then boot camp will allow you to boot from it...
Joe
https://support.apple.com/boot-camp
muta...@gmail.com
2021-05-13 10:25:41 UTC
Permalink
Post by Joe Monk
In order to boot anything other than macos on a mac,
you have to install boot camp, which is the mac
alternative to grub. Otherwise youre stuck booting
macos from the internal hard drive.
You can use disk utility to create a partition and then boot camp will allow you to boot from it...
https://support.apple.com/boot-camp
I looked at that link and did some searching, but this is
for partitioning the hard disk.

What I want is to boot from USB stick. The Macbook
natively recognizes USB sticks as being bootable.

What I don't know is what it looks for, and what I can
provide.

Maybe I should try ReactOS instead of Linux.

I'm not interested in Linux per se. I wish to standardize
on Win32 executables. And USB sticks that look like
hard disks. Running a 64-bit Windows-like OS would
be OK so long as it lets me run 32-bit executables also.

A lot of the stuff on the web was designed to install
things on the internal hard disk, but I'm not interested
in that. Just USB sticks.

BFN. Paul.
Joe Monk
2021-05-13 11:05:17 UTC
Permalink
Post by ***@gmail.com
Post by Joe Monk
https://support.apple.com/boot-camp
I looked at that link and did some searching, but this is
for partitioning the hard disk.
No, disk utility is for partitioning the hard disk ... boot camp allows for the installation of other OS on the mac internal hard disk and allows you to boot from it.

***@joes-MBP ~ % diskutil
Disk Utility Tool
Utility to manage local disks and volumes
Most commands require an administrator or root user

WARNING: Most destructive operations are not prompted

Usage: diskutil [quiet] <verb> <options>, where <verb> is as follows:

list (List the partitions of a disk)
info[rmation] (Get information on a specific disk or partition)
listFilesystems (List file systems available for formatting)
listClients (List all current disk management clients)
activity (Continuous log of system-wide disk arbitration)

u[n]mount (Unmount a single volume)
unmountDisk (Unmount an entire disk (all volumes))
eject (Eject a disk)
mount (Mount a single volume)
mountDisk (Mount an entire disk (all mountable volumes))

enableJournal (Enable HFS+ journaling on a mounted HFS+ volume)
disableJournal (Disable HFS+ journaling on a mounted HFS+ volume)
moveJournal (Move the HFS+ journal onto another volume)
enableOwnership (Exact on-disk User/Group IDs on a mounted volume)
disableOwnership (Ignore on-disk User/Group IDs on a mounted volume)

rename[Volume] (Rename a volume)

verifyVolume (Verify the file system data structures of a volume)
repairVolume (Repair the file system data structures of a volume)
verifyDisk (Verify the components of a partition map of a disk)
repairDisk (Repair the components of a partition map of a disk)
resetFusion (Reset the components of a machine's Fusion Drive)

eraseDisk (Erase an existing disk, removing all volumes)
eraseVolume (Erase an existing volume)
reformat (Erase an existing volume with same name and type)
eraseOptical (Erase optical media (CD/RW, DVD/RW, etc.))
zeroDisk (Erase a disk, writing zeros to the media)
randomDisk (Erase a disk, writing random data to the media)
secureErase (Securely erase a disk or freespace on a volume)

partitionDisk ((re)Partition a disk, removing all volumes)
addPartition (Create a new partition to occupy free space)
splitPartition (Split an existing partition into two or more)
mergePartitions (Combine two or more existing partitions into one)
resizeVolume (Resize a volume, increasing or decreasing its size)

appleRAID <verb> (Perform additional verbs related to AppleRAID)
coreStorage <verb> (Perform additional verbs related to CoreStorage)
apfs <verb> (Perform additional verbs related to APFS)

diskutil <verb> with no options will provide help on that verb

For instance, to list the partitions ...

***@joes-MBP ~ % diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.3 GB disk0
1: EFI ⁨EFI⁩ 314.6 MB
2: Apple_APFS ⁨Container disk1⁩ 500.0 GB disk0s2

/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +500.0 GB disk1
Physical Store disk0s2
1: APFS Volume ⁨Macintosh HD - Data⁩ 150.1 GB disk1s1
2: APFS Volume ⁨Preboot⁩ 340.8 MB disk1s2
3: APFS Volume ⁨Recovery⁩ 622.0 MB disk1s3
4: APFS Volume ⁨VM⁩ 1.1 GB disk1s4
5: APFS Volume ⁨Macintosh HD⁩ 15.3 GB disk1s5
6: APFS Snapshot ⁨com.apple.os.update-...⁩ 15.3 GB disk1s5s1

***@joes-MBP ~ %

Joe
muta...@gmail.com
2021-05-13 12:55:13 UTC
Permalink
Post by Joe Monk
Post by ***@gmail.com
I looked at that link and did some searching, but this is
for partitioning the hard disk.
No, disk utility is for partitioning the hard disk ... boot camp
allows for the installation of other OS on the mac internal
hard disk and allows you to boot from it.
Ok, but either way, this is operations on the internal
hard disk. I'm only interested in the USB stick.

At this point I don't even know if MacOS looks for
the same thing that the Dell looks for when potentially
booting from USB stick, and regardless, whether it is
possible to create a USB stick that is acceptable to
both MacOS and Dell etc, that boots something (even
if via different code paths), whether that be Linux or
ReactOS or something else.

BFN. Paul.
Joe Monk
2021-05-13 13:05:57 UTC
Permalink
Post by ***@gmail.com
Ok, but either way, this is operations on the internal
hard disk. I'm only interested in the USB stick.
Yep. You use diskutil for that too.

Example: you have a 2GB usb stick that you want to use as FAT...

1. Plug it in to a USB port
2. Use diskutil to list the drives - it will probably be something like /dev/disk2
3. unmount it
4. partition/erase it as 2GB exFAT with diskutil
5. Use dd to copy the files to the USB stick on a block basis dd if=some.file.name of=/dev/disk2s0 bs=1m

This is exactly how I build my RasPI SDCards.

Joe

Continue reading on narkive:
Loading...