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:32] – 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 146: | Line 102: | ||
| I: Configuring tasksel... | I: Configuring tasksel... | ||
| I: Base system installed successfully. | I: Base system installed successfully. | ||
| + | |||
| + | ==== Configuration de l' | ||
| '' | '' | ||
| - | '' | + | |
| + | '' | ||
| '' | '' | ||
| + | |||
| '' | '' | ||
| + | |||
| '' | '' | ||
| Line 158: | Line 119: | ||
| '' | '' | ||
| - | '' | + | '' |
| - | dumpe2fs 1.41.12 (17-May-2010) | + | |
| - | root@debian:/# | + | |
| - | 8c14d9c1-48cb-4ac1-b91d-780de47f8b8a | + | |
| - | root@debian:/# | + | dumpe2fs 1.41.12 (17-May-2010) |
| - | root@debian:/# | + | |
| - | root@debian:/# | + | '' |
| - | Current default time zone: ' | + | 8c14d9c1-48cb-4ac1-b91d-780de47f8b8a |
| - | 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/ | + | |
| - | 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 / | + | |
| + | 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:/# | + | '' |
| - | NiX | + | |
| - | root@debian:/ | + | |
| - | root@debian:/ | + | # /usr/share/doc/ifupdown/examples for more information. |
| + | auto lo | ||
| + | iface lo inet loopback | ||
| + | |||
| + | auto eth0 | ||
| + | iface eth0 inet dhcp | ||
| - | root@debian:/# | + | '' |
| - | deb http://ftp.ch.debian.org/debian squeeze main | + | # UNCONFIGURED FSTAB FOR BASE SYSTEM |
| - | deb-src http://security,debian.org/ squeeze/updates main | + | proc /proc proc defaults 0 0 |
| - | deb http://security, | + | |
| + | #/dev/sda1 / | ||
| + | | ||
| + | tmpfs /var/ | ||
| + | tmpfs /var/run tmpfs defaults 0 0 | ||
| + | | ||
| + | tmpfs /var/lock tmpfs defaults 0 0 | ||
| - | root@debian:/# | + | '' |
| - | root@debian: | + | |
| - | root@debian:/# | + | NiX |
| - | Generating locales (this might take a while)... | + | |
| - | fr_CH.ISO-8859-1... done | + | |
| - | Generation complete. | + | |
| - | root@debian:/# | + | '' |
| - | root@debian:/# | + | '' |
| - | root@debian:/# | + | '' |
| - | root@debian:/# vi /etc/default/grub | + | deb http:// |
| - | # If you change this file, run ' | + | deb-src http://security, |
| - | # /boot/grub/grub.cfg. | + | deb http://security, |
| + | |||
| + | <note important> | ||
| - | 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 | + | '' |
| - | # 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) | + | '' |
| - | # | + | Generating locales (this might take a while)... |
| - | 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:/# aptitude install linux-image-486'' |
| - | #GRUB_DISABLE_LINUX_UUID=true | + | |
| - | # Uncomment to disable generation of recovery mode menu entries | + | '' |
| - | # | + | |
| - | # Uncomment to get a beep at grub start | + | '' |
| - | # | + | # 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 | ||
| + | # | ||
| + | |||
| + | | ||
| + | # | ||
| - | debian:/ | + | '' |
| - | root@debian:/# | + | '' |
| - | Installation finished. No error reported. | + | Installation finished. No error reported. |
| - | root@debian:/# | + | '' |
| - | Generating grub.cfg ... | + | |
| - | Found linux image: / | + | |
| - | Found initrd image: / | + | |
| - | done | + | |
| - | --CHECK-- root@debian:/# sed -i ' | + | Generating grub.cfg ... |
| + | Found linux image: / | ||
| + | Found initrd image: /boot/initrd.img-2.6.32-5-486 | ||
| + | done | ||
| - | root@debian:/# | + | '' |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | T0: | + | '' |
| - | root@debian:/# passwd root (nixpw) | + | # |
| - | Enter new UNIX password: | + | |
| - | Retype new UNIX password: | + | # |
| - | passwd: password updated successfully | + | #4:23: |
| + | #5:23: | ||
| + | #6:23: | ||
| + | |||
| + | T0: | ||
| - | root@debian:/# | + | '' |
| - | root@debian:/# tasksel install standard | + | |
| - | root@debian:/# | + | |
| - | root@debian:/# | + | |
| - | root@debian:/# | + | |
| - | root@debian:/# | + | |
| - | exit | + | |
| - | debian:/# umount / | + | Enter new UNIX password: |
| - | debian:/# umount /mnt/cf/sys | + | |
| - | debian:/# umount / | + | |
| - | debian:/# umount /mnt/cf | + | |
| + | '' | ||
| - | debian:/mnt# df -h | + | '' |
| - | Filesystem | + | |
| - | / | + | |
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | exit | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | Filesystem | ||
| + | / | ||
| + | | ||
| - | Links: | + | Si le système d' |
| + | ===== Links: | ||
| http:// | http:// | ||
| https:// | https:// | ||
operating_systems/linux/debian/flash_card.1342438372.txt.gz · Last modified: 2012/07/16 11:32 by tret