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:29] – 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 139: | Line 94: | ||
L' | L' | ||
- | debian:/ | + | '' |
- | debian:/ | + | '' |
- | .... | + | .... |
- | I: Configuring aptitude... | + | I: Configuring aptitude... |
- | I: Configuring tasksel-data... | + | I: Configuring tasksel-data... |
- | I: Configuring tasksel... | + | I: Configuring tasksel... |
- | I: Base system installed successfully. | + | I: Base system installed successfully. |
- | ---- debian:/ | + | ==== Configuration de l' |
- | ---- debian:/ | + | |
- | debian:/ | + | '' |
- | debian:/ | + | |
- | debian:/ | + | |
- | debian:/ | + | '' |
- | 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: ' | + | '' |
- | 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 | + | |
- | # /usr/share/doc/ifupdown/examples for more information. | + | |
- | auto lo | + | |
- | iface lo inet loopback | + | |
- | auto eth0 | + | dumpe2fs 1.41.12 (17-May-2010) |
- | iface eth0 inet dhcp | + | |
- | root@debian:/# | + | '' |
- | # UNCONFIGURED FSTAB FOR BASE SYSTEM | + | |
- | proc /proc proc defaults 0 0 | + | |
- | UUID=8c14d9c1-48cb-4ac1-b91d-780de47f8b8a / ext3 defaults, | + | |
- | #/dev/sda1 / | + | |
- | tmpfs / | + | |
- | tmpfs / | + | |
- | tmpfs / | + | |
- | tmpfs / | + | |
- | tmpfs / | + | |
+ | 8c14d9c1-48cb-4ac1-b91d-780de47f8b8a | ||
- | root@debian:/# | + | '' |
- | NiX | + | |
- | root@debian:/# | + | '' |
- | root@debian:/# | + | |
- | root@debian:/# | + | '' |
- | deb http:// | + | |
- | deb-src http:// | + | |
- | deb http:// | + | |
- | root@debian:/# aptitude update | + | Current default time zone: ' |
- | root@debian:/# aptitude install locales | + | 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:/# | + | '' |
- | Generating locales (this might take a while)... | + | |
- | fr_CH.ISO-8859-1... done | + | |
- | Generation complete. | + | |
- | root@debian:/ | + | |
+ | # / | ||
+ | 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 / ext3 defaults, | ||
+ | #/dev/sda1 / | ||
+ | tmpfs / | ||
+ | tmpfs / | ||
+ | tmpfs / | ||
+ | tmpfs / | ||
+ | tmpfs / | ||
- | root@debian:/# | + | '' |
- | root@debian:/# | + | NiX |
- | # If you change this file, run ' | + | |
- | # / | + | |
- | GRUB_DEFAULT=0 | + | '' |
- | GRUB_TIMEOUT=5 | + | |
- | GRUB_DISTRIBUTOR=`lsb_release | + | |
- | # | + | |
- | 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 | + | deb http:// |
- | # 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' | + | deb http:// |
- | # | + | |
+ | <note important> | ||
- | # Uncomment if you don't want GRUB to pass "root=UUID=xxx" | + | ''root@debian:/# aptitude update'' |
- | #GRUB_DISABLE_LINUX_UUID=true | + | |
- | # Uncomment to disable generation of recovery mode menu entries | + | '' |
- | # | + | |
- | # Uncomment to get a beep at grub start | + | '' |
- | # | + | Generating locales (this might take a while)... |
+ | | ||
+ | Generation complete. | ||
- | debian:/mnt/ | + | '' |
- | root@debian:/# | + | '' |
- | Installation finished. No error reported. | + | |
- | root@debian:/# | + | '' |
- | Generating grub.cfg ... | + | |
- | Found linux image: / | + | |
- | Found initrd image: / | + | |
- | done | + | |
- | --CHECK-- | + | '' |
+ | # 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:/# vi /etc/inittab | + | '' |
- | # | + | |
- | #2: | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | T0: | + | '' |
+ | Installation finished. No error reported. | ||
- | root@debian:/# | + | '' |
- | Enter new UNIX password: | + | |
- | Retype new UNIX password: | + | |
- | passwd: password updated successfully | + | |
- | root@debian:/# | + | Generating grub.cfg ... |
- | root@debian:/# tasksel install standard | + | Found linux image: /boot/vmlinuz-2.6.32-5-486 |
- | root@debian: | + | Found initrd image: /boot/initrd.img-2.6.32-5-486 |
- | root@debian:/# aptitude clean | + | done |
- | root@debian: | + | |
- | root@debian:/# | + | |
- | exit | + | |
- | debian:/# | + | '' |
- | debian:/# umount / | + | |
- | debian:/# umount / | + | |
- | debian:/# umount | + | |
+ | '' | ||
- | 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.1342438196.txt.gz · Last modified: 2012/07/16 11:29 by tret