Commit 4f9d00a8 authored by Tails developers's avatar Tails developers
Browse files

Merge remote-tracking branch 'origin/feature/usb_installer' into doc/usb_installer

parents 55930816 1bb7333a
......@@ -22,10 +22,9 @@ $RUN_LB_CONFIG --distribution squeeze ${@}
$RUN_LB_CONFIG \
--apt-recommends false \
--backports true \
--binary-images iso-hybrid \
--binary-images iso \
--binary-indices false \
--checksums none \
--isohybrid-options "$AMNESIA_ISOHYBRID_OPTS" \
--bootappend-live "${AMNESIA_APPEND}" \
--bootstrap "cdebootstrap" \
--archive-areas "main contrib non-free" \
......
......@@ -15,10 +15,6 @@
# need to set block.events_dfl_poll_msecs
AMNESIA_APPEND="noswap live-media=removable nopersistent noprompt quiet timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash"
# Options passed to isohybrid
# Default: "-entry 4 -type 1c"
AMNESIA_ISOHYBRID_OPTS="-entry 4 -type 1c"
### Options used only by the home-refresh script ###############################
# Source directory used to refresh the live user's $HOME
......
#!/bin/sh
echo "Registering menus"
for app in liveusb-creator-launcher ; do
xdg-desktop-menu install --novendor \
/usr/share/desktop-directories/Tails.directory \
"/usr/share/applications/${app}.desktop"
done
xdg-desktop-menu forceupdate
[Desktop Entry]
Name=Tails
Comment=Tails specific tools
Icon=preferences-system
Type=Directory
[[!meta title="Resetting a Tails USB stick, for Linux"]]
[[!toc levels=1]]
Warnings
========
**The content of the USB stick will be lost in the operation.**
If at some point you are not sure about a device name it is
recommended to stop proceeding otherwise **you might risk overwriting
any hard drive on the system**.
Step by step
============
Step 1: Select the device of the USB stick
------------------------------------------
Unplug the USB stick you want to reset.
Open the Gnome disk utility from the menu *Applications* → *System Tools* →
*Disk Utility*:
[[!img doc/installing_onto_a_usb_stick/linux/gnome_disk_utility.png link=no alt="Applications → System Tools → Disk Utility"]]
The disk utility will list all the current storage devices on the left side of
the screen:
[[!img doc/installing_onto_a_usb_stick/linux/storage_devices.png link=no alt="Storage devices, including USB peripherals"]]
Plug back the destination USB stick. A new device should appear in the list of
storage devices. Select it with the cursor:
[[!img doc/installing_onto_a_usb_stick/linux/destination_device.png link=no alt="A new storage device appeared at the end of the list"]]
Check that the description of the device corresponds to your destination USB
stick, its brand, its size, etc. on the right side of the screen.
[[!img doc/installing_onto_a_usb_stick/linux/destination_device_description.png link=no alt="Drive description containing: 'Device: /dev/sdc'"]]
On this screenshot, the destination USB stick is a Kingston DataTraveler of 2.0 GB. Yours could be different.
Step 2: Do the actual reset
---------------------------
Click *Format Drive* on the right side of the screen. In the *Format*
dialog box that pops up, select the *Master Boot Record* scheme, then
confirm as many times as needed by clicking the *Format* button.
Step 3: Make sure all changes are written to the USB stick
----------------------------------------------------------
Click *Safe Removal* on the right side of the screen.
This makes sure all changes are written to the USB stick.
Special cases
=============
Resetting a Tails USB stick from itself
---------------------------------------
If you have no Linux system other than Tails, you can generally
**reset a Tails USB stick from that running Tails system itself**.
To do so, add the `toram` boot parameter: in the graphical boot menu,
press `TAB`, then press `Space`, then add the `toram` parameter to the
boot command line, then press `Enter`.
If the system boots properly, just follow the instructions on
this page.
Else, the computer you are using has not enough memory (RAM) for this
operation mode, and you may retry on another computer, or find another
Linux system (such as another Tails USB stick) to perform the
reset from.
[[!meta title="Resetting a Tails USB stick, for Windows"]]
[[!toc levels=1]]
Warnings
========
**The content of the USB stick will be lost in the operation.**
If at some point you are not sure about a device name it is
recommended to stop proceeding otherwise **you might risk overwriting
any hard drive on the system**.
Step by step
============
Step 1: Run DiskPart
--------------------
Run the `diskpart` command in a command prompt.
Step 2: Find out the disk number of the USB stick
-------------------------------------------------
Unplug the USB stick.
Type the following command to list disks known to DiskPart:
list disk
DiskPart should display a list of disks and information about them.
Plug back the destination USB stick.
Run the `list disk` command again.
A new disk should have appeared in the list.
Double-check that its properties, such as its size, match the
expectations you have of the USB stick you want to reset, and take
good note of the *number* assigned by DiskPart to this disk.
Step 3: Select the USB stick
----------------------------
Tell DiskPart you want to operate on the USB stick; this is done using
the select command as follows, replacing `NUMBER` with the disk number
you have taken note of previously:
select disk=NUMBER
Step 4: Do the actual reset
---------------------------
Ask DiskPart to remove all partitions from the selected disk:
clean
Troubleshooting
===============
Refer to the [DiskPart
documentation](https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/diskpart.mspx).
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment