Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rajakavitha Kodhandapani
tails
Commits
2910a82f
Commit
2910a82f
authored
Feb 10, 2012
by
Tails developers
Browse files
Fix formatting.
parent
c14a9f6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
wiki/src/todo/usb_install_and_upgrade/gpt.mdwn
View file @
2910a82f
...
...
@@ -169,7 +169,7 @@ Use of liveusb-creator to install an ISO on `/dev/sdb2`.
GPT + protective MBR, two partitions
====================================
$ /sbin/sgdisk \
$ /sbin/sgdisk \
--clear \ # create a new partition table
--new=1:0:+1500M \ # new partition 1, starts at begining, 1500 MiB size
--typecode=1:8301 \ # part 1, set type 8301 (Linux reserved)
...
...
@@ -188,24 +188,24 @@ $ /sbin/sgdisk \
Make the partition accessible to Windows, for the time of the installation:
<<EOF sed -e 's/^\([^#]*\) \+# .*$/\1/' | /sbin/gdisk /dev/sdb
r # recovery and transformation options
h # make hybrid MBR
1 # add first partition
N # no EFI GPT (0xEE) partition
0c # partition type (Win95 FAT32 LBA)
N # don't set the bootable flag
N # no protective partition
w # write table to disk and exit
Y # proceed, possibly destroying data
EOF
<<EOF sed -e 's/^\([^#]*\) \+# .*$/\1/' | /sbin/gdisk /dev/sdb
r # recovery and transformation options
h # make hybrid MBR
1 # add first partition
N # no EFI GPT (0xEE) partition
0c # partition type (Win95 FAT32 LBA)
N # don't set the bootable flag
N # no protective partition
w # write table to disk and exit
Y # proceed, possibly destroying data
EOF
Once the install has been done, lock things up:
<<EOF sed -e 's/^\([^#]*\) \+# .*$/\1/' | /sbin/gdisk /dev/sdb
x # extra functionality
n # create a new protective MBR
w # write table to disk and exit
Y # proceed, possibly destroying data
EOF
<<EOF sed -e 's/^\([^#]*\) \+# .*$/\1/' | /sbin/gdisk /dev/sdb
x # extra functionality
n # create a new protective MBR
w # write table to disk and exit
Y # proceed, possibly destroying data
EOF
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment