Ignore:
Timestamp:
Apr 10, 2014, 2:33:56 PM (10 years ago)
Author:
cfuguet
Message:

The disk image used by the GIET_VM does not contain
anymore a Master Boot Record (MBR) as we do not need
multiple partitions.

The only filesystem in the disk is the FAT32 which
starts at sector 0 (Volume Boot Record).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/create_dmg

    r261 r300  
    66sector_size=512
    77sectors_per_cluster=8
    8 reserved_sectors=32
     8reserved_sectors=512
    99
    1010# FAT32 SPEC: The first two clusters are not present in the data region but
     
    5959                        format="UDRW"
    6060
    61                         echo "Creating partition file $3 from $2 directory"
     61                        # -F FAT type = 32 (FAT32)
     62                        # -c sectors/cluster
     63                        # -n number of FATs
     64                        # -r reserved sectors
     65                        # -k backup boot sector (VBR and FS INFO) = 0xffff (no backup)
     66                        echo "Creating partition file $3.dmg from $2 directory"
     67                        fsargs="-F32 -c $sectors_per_cluster -n 1 -r $reserved_sectors -k 0xffff"
    6268                        hdiutil create \
    6369                                -fs MS-DOS \
     
    6672                                -sectors $sectors \
    6773                                -ov \
    68                                 -fsargs "-F32 -c$sectors_per_cluster -n1 -r$reserved_sectors" \
     74                                -fsargs "$fsargs" \
    6975                                -format $format \
    7076                                $3;
Note: See TracChangeset for help on using the changeset viewer.