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 10:09] – [Suppression des partitions] 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 73: | Line 29: | ||
Units = cylinders of 7688 * 512 = 3936256 bytes | Units = cylinders of 7688 * 512 = 3936256 bytes | ||
Disk identifier: 0xbf7f3f48 | Disk identifier: 0xbf7f3f48 | ||
+ | | ||
Device Boot Start | Device Boot Start | ||
| | ||
Line 103: | Line 59: | ||
Syncing disks. | Syncing disks. | ||
- | debian:/ | + | ==== Formatage de la partition ==== |
- | mke2fs 1.41.3 (12-Oct-2008) | + | |
- | fs_types for mke2fs.conf resolution: ' | + | |
- | Filesystem label= | + | |
- | OS type: Linux | + | |
- | Block size=4096 (log=2) | + | |
- | Fragment size=4096 (log=2) | + | |
- | 244320 inodes, 976368 blocks | + | |
- | 48818 blocks (5.00%) reserved for the super user | + | |
- | First data block=0 | + | |
- | Maximum filesystem blocks=1002438656 | + | |
- | 30 block groups | + | |
- | 32768 blocks per group, 32768 fragments per group | + | |
- | 8144 inodes per group | + | |
- | Superblock backups stored on blocks: | + | |
- | 32768, 98304, 163840, 229376, 294912, 819200, 884736 | + | |
- | Writing inode tables: done | + | On crée la partition qui contiendra notre Debian. |
- | Creating journal (16384 blocks): done | + | |
- | Writing superblocks and filesystem accounting information: | + | |
- | This filesystem will be automatically checked every 31 mounts or | + | '' |
- | 180 days, whichever comes first. Use tune2fs | + | |
+ | mke2fs 1.41.3 (12-Oct-2008) | ||
+ | fs_types for mke2fs.conf resolution: ' | ||
+ | Filesystem label= | ||
+ | OS type: Linux | ||
+ | Block size=4096 (log=2) | ||
+ | Fragment size=4096 (log=2) | ||
+ | 244320 inodes, 976368 blocks | ||
+ | 48818 blocks (5.00%) reserved for the super user | ||
+ | First data block=0 | ||
+ | Maximum filesystem blocks=1002438656 | ||
+ | 30 block groups | ||
+ | 32768 blocks per group, 32768 fragments per group | ||
+ | 8144 inodes per group | ||
+ | Superblock backups stored on blocks: | ||
+ | 32768, 98304, 163840, 229376, 294912, 819200, 884736 | ||
+ | | ||
+ | Writing inode tables: done | ||
+ | Creating journal (16384 blocks): done | ||
+ | Writing superblocks and filesystem accounting information: | ||
+ | | ||
+ | This filesystem will be automatically checked every 31 mounts or | ||
+ | 180 days, whichever comes first. | ||
- | debian:/ | + | ===== Installation de Debian ===== |
- | debian:/ | + | ==== Installation de l' |
- | .... | + | |
- | I: Configuring aptitude... | + | |
- | I: Configuring tasksel-data... | + | |
- | I: Configuring tasksel... | + | |
- | I: Base system installed successfully. | + | |
- | ---- debian:/ | + | L' |
- | ---- debian:/ | + | |
- | debian:/ | + | '' |
- | debian:/ | + | |
- | debian:/ | + | |
- | debian:/ | + | '' |
+ | .... | ||
+ | I: Configuring aptitude... | ||
+ | I: Configuring tasksel-data... | ||
+ | I: Configuring tasksel... | ||
+ | I: Base system installed successfully. | ||
- | root@debian:/# | + | ==== Configuration de l' |
- | 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 / ext3 defaults, | + | |
- | #/dev/sda1 / | + | |
- | tmpfs / | + | |
- | tmpfs / | + | |
- | tmpfs / | + | |
- | tmpfs / | + | |
- | tmpfs / | + | |
+ | '' | ||
- | root@debian:/# | + | dumpe2fs 1.41.12 (17-May-2010) |
- | NiX | + | |
- | root@debian:/# | + | '' |
- | root@debian:/# | + | |
- | root@debian:/# | + | 8c14d9c1-48cb-4ac1-b91d-780de47f8b8a |
- | 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:/# | + | '' |
- | root@debian:/# aptitude install linux-image-486 | + | 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:/ | + | |
- | # If you change this file, run ' | + | # /usr/share/doc/ |
- | # /boot/grub/grub.cfg. | + | auto lo |
+ | iface lo inet loopback | ||
+ | |||
+ | auto eth0 | ||
+ | iface eth0 inet dhcp | ||
- | GRUB_DEFAULT=0 | + | '' |
- | GRUB_TIMEOUT=5 | + | # UNCONFIGURED FSTAB FOR BASE SYSTEM |
- | GRUB_DISTRIBUTOR=`lsb_release | + | proc /proc proc defaults 0 0 |
- | # | + | UUID=8c14d9c1-48cb-4ac1-b91d-780de47f8b8a / ext3 defaults, |
- | GRUB_CMDLINE_LINUX_DEFAULT=" | + | #/dev/sda1 / |
- | GRUB_SERIAL_COMMAND=" | + | |
- | GRUB_CMDLINE_LINUX="" | + | |
+ | | ||
+ | | ||
+ | tmpfs / | ||
- | # 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) | + | NiX |
- | # | + | |
- | 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:/# sed -i ' |
- | #GRUB_DISABLE_LINUX_UUID=true | + | |
- | # Uncomment to disable generation of recovery mode menu entries | + | '' |
- | # | + | |
- | # Uncomment to get a beep at grub start | + | deb http:// |
- | # | + | |
+ | deb http:// | ||
+ | |||
+ | <note important> | ||
- | debian:/mnt/ | + | '' |
- | root@debian:/# | + | '' |
- | Installation finished. No error reported. | + | |
- | root@debian:/# | + | '' |
- | Generating | + | Generating |
- | Found linux image: / | + | fr_CH.ISO-8859-1... done |
- | Found initrd image: / | + | |
- | done | + | |
- | --CHECK-- | + | '' |
- | root@debian:/# | + | '' |
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | T0:23: | + | '' |
- | root@debian:/# | + | '' |
- | Enter new UNIX password: | + | # If you change this file, run ' |
- | Retype new UNIX password: | + | # / |
- | passwd: password updated successfully | + | |
+ | 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:/# aptitude install rsyslog sudo | + | '' |
- | root@debian: | + | |
- | root@debian: | + | |
- | root@debian: | + | |
- | root@debian:/# | + | |
- | root@debian: | + | |
- | exit | + | |
- | debian:/# | + | '' |
- | debian:/# umount / | + | |
- | debian:/# umount / | + | |
- | debian:/# umount /mnt/cf | + | |
+ | '' | ||
- | debian:/mnt# df -h | + | Generating grub.cfg ... |
- | Filesystem | + | Found linux image: /boot/ |
- | /dev/sdb1 3.7G 547M 3.0G 16% /mnt/cf | + | Found initrd image: |
+ | done | ||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | | ||
+ | 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.txt · Last modified: 2013/12/20 09:57 by jzaehrin