operating_systems:linux:debian:flash_card
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| operating_systems:linux:debian:flash_card [2012/07/16 11:18] – [Formatage de la carte] tret | operating_systems:linux:debian:flash_card [2013/12/20 09:57] (current) – [Configuration de l'image] jzaehrin | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Installation d'une Debian sur une carte flash. | Installation d'une Debian sur une carte flash. | ||
| + | Version humainement lisible: [[Flash Card Tret]] | ||
| + | |||
| + | [[operating_systems: | ||
| ===== Préparation de la carte ===== | ===== Préparation de la carte ===== | ||
| - | ==== Suppression des partitions ==== | ||
| - | |||
| - | On commence par supprimer les partitions déjà crées sur la carte. | ||
| - | |||
| - | '' | ||
| - | |||
| - | Command (m for help): p | ||
| - | | ||
| - | Disk /dev/sdb: 4000 MB, 4000317440 bytes | ||
| - | 124 heads, 62 sectors/ | ||
| - | Units = cylinders of 7688 * 512 = 3936256 bytes | ||
| - | Disk identifier: 0xbf7f3f48 | ||
| - | | ||
| - | Device Boot Start | ||
| - | / | ||
| - | / | ||
| - | | ||
| - | Command (m for help): d 1 | ||
| - | Partition number (1-4): 1 | ||
| - | | ||
| - | Command (m for help): p | ||
| - | | ||
| - | Disk /dev/sdb: 4000 MB, 4000317440 bytes | ||
| - | 124 heads, 62 sectors/ | ||
| - | Units = cylinders of 7688 * 512 = 3936256 bytes | ||
| - | Disk identifier: 0x00000000 | ||
| - | | ||
| - | Device Boot Start | ||
| - | / | ||
| - | | ||
| - | Command (m for help): d 1 | ||
| - | Selected partition 2 | ||
| - | | ||
| - | Command (m for help): p | ||
| - | | ||
| - | Disk /dev/sdb: 4000 MB, 4000317440 bytes | ||
| - | 124 heads, 62 sectors/ | ||
| - | Units = cylinders of 7688 * 512 = 3936256 bytes | ||
| - | Disk identifier: 0x00000000 | ||
| - | | ||
| - | Device Boot Start | ||
| - | | ||
| - | Command (m for help): w | ||
| - | The partition table has been altered! | ||
| - | | ||
| - | Calling ioctl() to re-read partition table. | ||
| - | Syncing disks. | ||
| - | Une fois les partitions supprimées, | + | Réinitialiser |
| '' | '' | ||
| Line 134: | Line 90: | ||
| ===== Installation de Debian ===== | ===== Installation de Debian ===== | ||
| - | debian:/ | + | ==== Installation de l' |
| - | debian:/ | + | L' |
| - | .... | + | |
| - | I: Configuring aptitude... | + | |
| - | I: Configuring tasksel-data... | + | |
| - | I: Configuring tasksel... | + | |
| - | I: Base system installed successfully. | + | |
| - | ---- debian:/ | + | '' |
| - | ---- debian:/ | + | |
| - | debian:/ | + | '' |
| - | debian:/mnt# mount -o bind /dev /mnt/cf/dev | + | .... |
| - | debian:/mnt# mount -o bind /sys /mnt/cf/sys | + | I: Configuring aptitude... |
| + | I: Configuring tasksel-data... | ||
| + | I: Configuring tasksel... | ||
| + | I: Base system installed successfully. | ||
| - | debian:/ | + | ==== Configuration de l' |
| - | root@debian:/# mount devpts / | + | '' |
| - | root@debian:/# | + | '' |
| - | dumpe2fs 1.41.12 (17-May-2010) | + | |
| - | root@debian:/# | + | |
| - | 8c14d9c1-48cb-4ac1-b91d-780de47f8b8a | + | |
| - | root@debian:/# | + | '' |
| - | root@debian:/# | + | |
| - | root@debian:/# | + | '' |
| - | Current default time zone: 'Europe/ | + | '' |
| - | Local time is now: Fri Oct 14 17:16:25 CEST 2011. | + | |
| - | Universal Time is now: Fri Oct 14 15:16:25 UTC 2011. | + | |
| - | root@debian:/# | + | '' |
| - | # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or | + | |
| - | # / | + | |
| - | auto lo | + | |
| - | iface lo inet loopback | + | |
| - | auto eth0 | + | '' |
| - | iface eth0 inet dhcp | + | |
| - | root@debian:/# | + | '' |
| - | # UNCONFIGURED FSTAB FOR BASE SYSTEM | + | |
| - | proc /proc proc defaults 0 0 | + | |
| - | UUID=8c14d9c1-48cb-4ac1-b91d-780de47f8b8a | + | |
| - | #/dev/sda1 / | + | |
| - | tmpfs / | + | |
| - | tmpfs / | + | |
| - | tmpfs / | + | |
| - | tmpfs / | + | |
| - | tmpfs /var/lock tmpfs defaults 0 0 | + | |
| + | dumpe2fs 1.41.12 (17-May-2010) | ||
| - | root@debian:/# | + | '' |
| - | NiX | + | |
| - | root@debian:/# | + | 8c14d9c1-48cb-4ac1-b91d-780de47f8b8a |
| - | root@debian:/# | + | |
| - | root@debian:/# | + | '' |
| - | deb http:// | + | |
| - | deb-src http:// | + | |
| - | deb http:// | + | |
| - | root@debian:/# | + | '' |
| - | root@debian: | + | |
| - | root@debian:/# | + | '' |
| - | Generating locales (this might take a while)... | + | |
| - | fr_CH.ISO-8859-1... done | + | |
| - | Generation complete. | + | |
| - | root@debian:/# aptitude install console-data | + | Current default time zone: ' |
| + | Local time is now: Fri Oct 14 17:16:25 CEST 2011. | ||
| + | Universal Time is now: Fri Oct 14 15:16:25 UTC 2011. | ||
| - | root@debian:/# | + | '' |
| - | root@debian:/ | + | |
| + | # / | ||
| + | auto lo | ||
| + | iface lo inet loopback | ||
| + | |||
| + | auto eth0 | ||
| + | iface eth0 inet dhcp | ||
| - | root@debian:/# | + | '' |
| - | # If you change this file, run ' | + | # UNCONFIGURED FSTAB FOR BASE SYSTEM |
| - | # /boot/grub/grub.cfg. | + | proc /proc proc defaults 0 0 |
| + | | ||
| + | | ||
| + | tmpfs / | ||
| + | tmpfs / | ||
| + | tmpfs /var/run tmpfs defaults 0 0 | ||
| + | | ||
| + | tmpfs /var/lock tmpfs defaults 0 0 | ||
| - | GRUB_DEFAULT=0 | + | '' |
| - | GRUB_TIMEOUT=5 | + | |
| - | GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` | + | |
| - | #GRUB_CMDLINE_LINUX_DEFAULT=" | + | |
| - | GRUB_CMDLINE_LINUX_DEFAULT=" | + | |
| - | GRUB_SERIAL_COMMAND=" | + | |
| - | GRUB_CMDLINE_LINUX="" | + | |
| - | # Uncomment to enable BadRAM filtering, modify to suit your needs | + | NiX |
| - | # This works with Linux (no patch required) and with any kernel that obtains | + | |
| - | # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) | + | |
| - | # | + | |
| - | # Uncomment to disable graphical terminal (grub-pc only) | + | '' |
| - | # | + | |
| - | GRUB_TERMINAL=serial | + | |
| - | # The resolution used on graphical terminal | + | '' |
| - | # note that you can use only modes which your graphic card supports via VBE | + | |
| - | # you can see them in real GRUB with the command `vbeinfo' | + | |
| - | #GRUB_GFXMODE=640x480 | + | |
| - | # Uncomment if you don't want GRUB to pass "root=UUID=xxx" | + | ''root@debian:/# cat / |
| - | #GRUB_DISABLE_LINUX_UUID=true | + | |
| - | # Uncomment to disable generation of recovery mode menu entries | + | deb http:// |
| - | # | + | |
| + | deb http:// | ||
| + | |||
| + | <note important> | ||
| - | # Uncomment to get a beep at grub start | + | '' |
| - | # | + | |
| - | debian:/mnt/ | + | '' |
| - | root@debian:/# | + | '' |
| - | Installation finished. No error reported. | + | |
| + | fr_CH.ISO-8859-1... done | ||
| + | Generation complete. | ||
| - | root@debian:/# | + | '' |
| - | Generating grub.cfg ... | + | |
| - | Found linux image: / | + | |
| - | Found initrd image: / | + | |
| - | done | + | |
| - | --CHECK-- | + | '' |
| - | root@debian:/# | + | '' |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | T0: | + | '' |
| + | # If you change this file, run ' | ||
| + | # / | ||
| + | |||
| + | GRUB_DEFAULT=0 | ||
| + | GRUB_TIMEOUT=5 | ||
| + | GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` | ||
| + | # | ||
| + | GRUB_CMDLINE_LINUX_DEFAULT=" | ||
| + | GRUB_SERIAL_COMMAND=" | ||
| + | GRUB_CMDLINE_LINUX="" | ||
| + | |||
| + | # Uncomment to enable BadRAM filtering, modify to suit your needs | ||
| + | # This works with Linux (no patch required) and with any kernel that obtains | ||
| + | # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) | ||
| + | # | ||
| + | |||
| + | # Uncomment to disable graphical terminal (grub-pc only) | ||
| + | # | ||
| + | GRUB_TERMINAL=serial | ||
| + | |||
| + | # The resolution used on graphical terminal | ||
| + | # note that you can use only modes which your graphic card supports via VBE | ||
| + | # you can see them in real GRUB with the command `vbeinfo' | ||
| + | # | ||
| + | |||
| + | # Uncomment if you don't want GRUB to pass " | ||
| + | # | ||
| + | |||
| + | # Uncomment to disable generation of recovery mode menu entries | ||
| + | # | ||
| + | |||
| + | # Uncomment to get a beep at grub start | ||
| + | # | ||
| - | root@debian:/# | + | '' |
| - | Enter new UNIX password: | + | |
| - | Retype new UNIX password: | + | |
| - | passwd: password updated successfully | + | |
| - | root@debian:/# | + | '' |
| - | root@debian:/# | + | |
| - | root@debian:/# | + | |
| - | root@debian:/# | + | |
| - | root@debian:/# | + | |
| - | root@debian:/# | + | |
| - | exit | + | |
| - | debian:/# | + | '' |
| - | debian:/# umount / | + | |
| - | debian:/# umount / | + | |
| - | debian:/# umount /mnt/cf | + | |
| + | Generating grub.cfg ... | ||
| + | Found linux image: / | ||
| + | Found initrd image: / | ||
| + | done | ||
| - | debian:/mnt# df -h | + | '' |
| - | Filesystem | + | |
| - | /dev/sdb1 | + | |
| + | '' | ||
| + | |||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | | ||
| + | T0: | ||
| + | |||
| + | '' | ||
| + | |||
| + | Enter new UNIX password: | ||
| + | Retype new UNIX password: | ||
| + | passwd: password updated successfully | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | exit | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | Filesystem | ||
| + | / | ||
| + | | ||
| - | Links: | + | Si le système d' |
| + | ===== Links: | ||
| http:// | http:// | ||
| https:// | https:// | ||
operating_systems/linux/debian/flash_card.1342437517.txt.gz · Last modified: 2012/07/16 11:18 by tret