... en cours de rédaction ...

Introduction

Je viens de m’acheter un disque dur usb Memup Kwest 3,5" 500Go d’après les conseils du site Les Numériques

JPG - 33.5 ko
Memup Kwest

Avec 500 Go dans sa poche (ou plutôt son sac à dos vu la taille du disque dur), on peut emporter un certain nombre d’applications, voire une ou plusieurs distributions :

  • dans le monde Linux, il existe de nombreux projets permettant d’installer une distribution Linux sur une clé USB (mais pas vraiment sur un disque dur USB) bootable grâce à USB-ZIP ou USB-HDD.
  • dans le monde de Windows, c’est plus compliqué de faire booter windows depuis la clé USB... Mais on peut trouver un certain nombre d’applications qui peuvent être directement lancées depuis la clé USB

liveUSB Linux

- Documentation :

- Quelques sites :

  • coLinux
  • Flonix
  • Knoppix
  • DSL (Damn Small Linux)

Applications portables Windows

- Quelques sites :

Partitionnement de mon disque dur USB

- /dev/sda1 : partition ext3

  • installation de Knoppix

J’ai gravé un CD Knoppix, booté dessus puis lancé l’utilitaire :


# knoppix-installer

Attention : par défaut, knoppix-installer installe le MBR [1] sur le premier disque dur ! J’ai du modifier le fichier /usr/share/knoppix-installer/modules/booting/boot-tools.bm et remplacer 2 lignes contenant (hd0) par (hd1).

De plus, je préfère ne pas utiliser une partition reiserfs (par défaut) : lors de l’utilisation de knoppix-installer, après avoir configuré et avant de lancer l’installation, il faut sauvegarder le fichier de config (par défaut /root/.knofig) et le modifier manuellement :


SYSTEM_TYPE='beginner'
HD_FORMAT='yes'
HD_FSTYPE='ext3'
HD_CHOICE='/dev/sda1'
SWAP_CHOICES='/dev/sda2'
BOOT_LOADER='grub'
BOOT_DISK='no'
BOOT_WHERE='mbr'
[...]

- /dev/sda2 : partition swap

- /dev/sda3 : partition primaire ext3

  • disque de stockage des données

- /dev/sda4 : partition primaire en NTFS

  • installation de colinux avec l’image ISO debian, afin de pouvoir accéder à la partition ext3 /dev/sda3
  • installation des applications windows "portables" (i.e. utilisables directement depuis la clé USB).
  • fichier de configuration de colinux

<?xml version="1.0" encoding="UTF-8"?>
<colinux>
   <!-- This line needs to point to your root file system.
          For example change "root_fs" to the name of the Debian image.
        Inside coLinux it will be /dev/cobd0
         
         Block Device Aliasing: You can now handle most dual-boot issues
         by adding an alias="devname" to block_device. i.e. alias="hda",
         alias="hda1" You can do this for SCSI as well as IDE.  You need
         to be aware that if you add an alias, you need to change your
         bootparams root="devname" appropriately (you may need to use
         devfs naming in some situations).  -->        
   <block_device index="0" path="\DosDevices\e:\coLinux\Debian-3.0r2.ext3-mit-backports.1gb" enabled="true" />
       
   <!-- This line can specify a swap file if you wish, or an additional
        image file, it will /dev/cobd1. Additional block_devices can
         be specified in the same manner by increasing the index -->
   <!--<block_device index="1" path="\DosDevices\c:\coLinux\swap_device" enabled="true" />-->
   
   <block_device index="1" path="\Device\Harddisk1\Partition1" enabled="true" alias="sda1" />
   <block_device index="2" path="\Device\Harddisk1\Partition2" enabled="true" alias="sda2" />
   <block_device index="3" path="\Device\Harddisk1\Partition3" enabled="true" alias="sda3" />
   <block_device index="4" path="\Device\Harddisk1\Partition4" enabled="true" alias="sda4" />
 
   <!-- This is an experimental feature, it may not function completely.
   <cofs_device index="0" type="flat" path="\DosDevices\C:\" enabled="true" />
   -->

   <!-- bootparams allows you to pass kernel boot parameters -->    
   <bootparams>root=/dev/cobd0 lang=fr</bootparams>

   <!-- Initial RamDISK (initrd) support -->
   <initrd path="initrd.gz" />
   
   <!-- image allows you to specify the kernel to boot -->
   <image path="vmlinux" />

   <!-- this line allows you to specify the amount of memory available
        to coLinux -->
   <memory size="64" />

   <!-- This allows you to modify networking parameters, see the README
        or website or wiki for more information -->
   <network index="0" type="tap" name="coLinuxTAP" />

</colinux>

- debian/colinux

  • installation de samba
  • fichier /etc/fstab

# /etc/fstab: static file system information.
#
# <file system>        <mount point>        <type>        <options>                <dump>        <pass>
/dev/cobd0        /                ext3        errors=remount-ro        0        1
proc                /proc                proc        defaults                0        0
tmpfs                /dev/shm        tmpfs        defaults                0        0

/dev/sda1        /mnt/sda1        ext3        defaults                0        0
/dev/sda3        /mnt/sda3        ext3        defaults                0        0
/dev/sda4        /mnt/sda4        ntfs        noauto,ro,user                0        0

[1] Master Boot Record