diskutil list
-bash-3.2# diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 499.2 GB disk0s2
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: Apple_partition_scheme *1.4 GB disk1
1: Apple_partition_map 30.7 KB disk1s1
2: Apple_Driver_ATAPI 2.0 KB disk1s2
3: Apple_HFS Mac OS X Base System 1.4 GB disk1s3
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk2
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk3
/dev/disk4
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk4
/dev/disk5
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk5
/dev/disk6
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk6
/dev/disk7
#: TYPE NAME SIZE IDENTIFIER
0: untitled *6.3 MB disk7
/dev/disk8
#: TYPE NAME SIZE IDENTIFIER
0: untitled *2.1 MB disk8
/dev/disk9
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk9
1: EFI 209.7 MB disk9s1
2: Microsoft Basic Data Nouveau nom 499.9 GB disk9s2
/dev/disk10
#: TYPE NAME SIZE IDENTIFIER
0: untitled *1.0 MB disk10
/dev/disk11
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk11
/dev/disk12
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk12
/dev/disk13
#: TYPE NAME SIZE IDENTIFIER
0: untitled *1.0 MB disk13
-bash-3.2#
-bash-3.2# diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 499.2 GB disk0s2
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: Apple_partition_scheme *1.4 GB disk1
1: Apple_partition_map 30.7 KB disk1s1
2: Apple_Driver_ATAPI 2.0 KB disk1s2
3: Apple_HFS Mac OS X Base System 1.4 GB disk1s3
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk2
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk3
/dev/disk4
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk4
/dev/disk5
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk5
/dev/disk6
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk6
/dev/disk7
#: TYPE NAME SIZE IDENTIFIER
0: untitled *6.3 MB disk7
/dev/disk8
#: TYPE NAME SIZE IDENTIFIER
0: untitled *2.1 MB disk8
/dev/disk9
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk9
1: EFI 209.7 MB disk9s1
2: Microsoft Basic Data Nouveau nom 499.9 GB disk9s2
/dev/disk10
#: TYPE NAME SIZE IDENTIFIER
0: untitled *1.0 MB disk10
/dev/disk11
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk11
/dev/disk12
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk12
/dev/disk13
#: TYPE NAME SIZE IDENTIFIER
0: untitled *1.0 MB disk13
-bash-3.2#
ls /Volumes/Nou*
-bash-3.2# ls /Volumes/Nou*
$RECYCLE.BIN LION.dmg
.Trashes System Volume Information
._.Trashes
-bash-3.2#
hdiutil attach /Volumes/Nou*/LION.dmg
-bash-3.2# hdiutil attach /Volumes/Nou*/LION.dmg
/dev/disk14 GUID_partition_scheme
/dev/disk14s1 EFI
/dev/disk14s2 Apple_HFS /Volumes/Installer Lion
-bash-3.2#
cp -av /Volumes/Installer*/Install* /Volumes/Nou*
diskutil resizeVolume disk0s2 490g jhfs+ BOOT 0b
-bash-3.2# diskutil resizeVolume disk0s2 490g jhfs+ BOOT 0b
Started partitioning on disk0s2 Macintosh HD
Verifying the disk
Checking file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Macintosh HD appears to be OK
Resizing
Waiting for the disks to reappear
Formatting disk0s3 as Mac OS Extended (Journaled) with name BOOT
Initialized /dev/rdisk0s3 as a 9 GB HFS Plus volume with a 8192k journal
Mounting disk
Finished partitioning on disk0s2 Macintosh HD
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 490.0 GB disk0s2
3: Apple_HFS BOOT 9.6 GB disk0s3
-bash-3.2#
hdiutil detach /Volumes/Installer*
hdiutil attach /Volumes/Nou*/Install*/C*/S*/InstallESD.dmg
-bash-3.2# hdiutil detach /Volumes/Installer*
"disk14" unmounted.
"disk14" ejected.
-bash-3.2# hdiutil attach /Volumes/Nou*/Install*/C*/S*/InstallESD.dmg
Checksumming Driver Descriptor Map (DDM : 0)…
Driver Descriptor Map (DDM : 0): verified CRC32 $7F02BC54
Checksumming (Apple_Free : 1)…
(Apple_Free : 1): verified CRC32 $00000000
Checksumming Apple (Apple_partition_map : 2)…
Apple (Apple_partition_map : 2): verified CRC32 $4A98BE26
Checksumming Macintosh (Apple_Driver_ATAPI : 3)…
Macintosh (Apple_Driver_ATAPI : 3): verified CRC32 $F1E8BA9E
Checksumming (Apple_Free : 4)…
(Apple_Free : 4): verified CRC32 $00000000
Checksumming disk image (Apple_HFS : 5)…
..............................................................................
disk image (Apple_HFS : 5): verified CRC32 $761F622D
Checksumming (Apple_Free : 6)…
(Apple_Free : 6): verified CRC32 $00000000
verified CRC32 $D61C13C2
/dev/disk14 Apple_partition_scheme
/dev/disk14s1 Apple_partition_map
/dev/disk14s2 Apple_Driver_ATAPI
/dev/disk14s3 Apple_HFS /Volumes/Mac OS X Install ESD
-bash-3.2#
asr restore --s /Volumes/"Mac OS X Install ESD" --t /Volumes/BOOT --erase --noprompt