Auteur Sujet: HDD et image E2 probleme  (Lu 19978 fois)

0 Membres et 1 Invité sur ce sujet

skikdi53

  • Invité
Re: HDD et image E2 probleme
« Réponse #15 le: 28 décembre 2009 à 15:32:14 »

AAF-ipbox9000 login: root
* * * * * * * * * * * * * * * * * * * * * * * * * * *
*         __               __          __________   *
*        /  \             /  \        |  ________)  *
*       / __ \           / __ \       | |           *
*      / /  \ \         / /  \ \      | |_____      *
*     / /____\ \       / /____\ \     |  _____)     *
*    / /______\ \     / /______\ \    | |           *
*   / /        \ \   / /        \ \   | |           *
*  (__)        (__) (__)        (__) (___)          *
*                                                   *
* * * * * * * * * * * * * * * * * * * * * * * * * * *

>>  wElc0me to Christmas Image (Image 14)

>>  AAF_M1319_rev_070_ipbox9000

* * * * * * * * * * * * * * * * * * * * * * * * * * *



BusyBox v1.11.2 (2009-11-22 15:03:50 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

AAF-ipbox9000:~# mount /dev/sda2
mount: mounting /dev/sda2 on /hdd failed: No such device or address
AAF-ipbox9000:~#

skikdi53

  • Invité
Re: HDD et image E2 probleme
« Réponse #16 le: 28 décembre 2009 à 15:34:15 »
Et voila ce que j'ai fais dans fstab:

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>               <dump>  <pass>
#/dev/root       /               auto    defaults,errors=remount-ro,noatime,nodiratime      0 0
/dev/sda2        /hdd            auto    defaults,errors=remount-ro,noatime,nodiratime      0 0
proc          /proc               proc    defaults                        0 0
tmpfs         /tmp                tmpfs   defaults                        0 0

Hors ligne Doume

  • The Boss
  • Administrateur
  • Membre Héroïque
  • *****
  • Messages: 6.185
  • Administrateur
    • Doume
Re: HDD et image E2 probleme
« Réponse #17 le: 28 décembre 2009 à 15:41:44 »
La commande pour monter, c'est :

mount  /dev/sda2  /hdd
J'ai tous les droits, je suis chez moi.
Au moindre non-respect des règles, je vire les importuns.

skikdi53

  • Invité
Re: HDD et image E2 probleme
« Réponse #18 le: 28 décembre 2009 à 17:12:20 »
Merci doume, sauf que j'ai suivi cette procedure

fdisk -l (to view installed media and partitions)
hdd showed up as /dev/sda

so i created a single partition spanning 1000GB. by

fdisk /dev/sda

then type "n" to create new partition. "p" to create primary then press "1" for partition number. Finally allocate a size to the partition, I just pressed enter here to allow maximum size and then "w" to commit changes.

Next typed in

mkfs.ext3 /dev/sda1

threw an error saying "Memory allocation failed while setting up superblock"

Key is to create a swap partition as the box runs out of ram to allocate for formatting blocks.

So using above method create two partitions

fdisk /dev/sda
press "d" to delete current partition
then "n" to create new partition following above procedure. When you get to setting size of the partition you can use "+ 'whateversize' GB" e.g. I used +990GB

similarly create partition 2 and you can press enter when it comes to allocating size as it will use remainder of disk space.

J'ai supprimé la partition, et je me retrouve avec


AAF-ipbox9000 login: root
* * * * * * * * * * * * * * * * * * * * * * * * * * *
*         __               __          __________   *
*        /  \             /  \        |  ________)  *
*       / __ \           / __ \       | |           *
*      / /  \ \         / /  \ \      | |_____      *
*     / /____\ \       / /____\ \     |  _____)     *
*    / /______\ \     / /______\ \    | |           *
*   / /        \ \   / /        \ \   | |           *
*  (__)        (__) (__)        (__) (___)          *
*                                                   *
* * * * * * * * * * * * * * * * * * * * * * * * * * *

>>  wElc0me to Christmas Image (Image 14)

>>  AAF_M1319_rev_070_ipbox9000

* * * * * * * * * * * * * * * * * * * * * * * * * * *



BusyBox v1.11.2 (2009-11-22 15:03:50 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

AAF-ipbox9000:~# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
AAF-ipbox9000:~#



Quand j'essaye de formater j'ai ça:



AAF-ipbox9000 login: root
* * * * * * * * * * * * * * * * * * * * * * * * * * *
*         __               __          __________   *
*        /  \             /  \        |  ________)  *
*       / __ \           / __ \       | |           *
*      / /  \ \         / /  \ \      | |_____      *
*     / /____\ \       / /____\ \     |  _____)     *
*    / /______\ \     / /______\ \    | |           *
*   / /        \ \   / /        \ \   | |           *
*  (__)        (__) (__)        (__) (___)          *
*                                                   *
* * * * * * * * * * * * * * * * * * * * * * * * * * *

>>  wElc0me to Christmas Image (Image 14)

>>  AAF_M1319_rev_070_ipbox9000

* * * * * * * * * * * * * * * * * * * * * * * * * * *



BusyBox v1.11.2 (2009-11-22 15:03:50 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

AAF-ipbox9000:~# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
AAF-ipbox9000:~# fdisk /dev/sda

The number of cylinders for this disk is set to 60801.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):

Hors ligne Doume

  • The Boss
  • Administrateur
  • Membre Héroïque
  • *****
  • Messages: 6.185
  • Administrateur
    • Doume
Re: HDD et image E2 probleme
« Réponse #19 le: 28 décembre 2009 à 22:15:41 »
Pour pouvoir formatter, il faut au moins qu'il y ait une partition

Pour pouvoir mettre un firmware alternatif, il faut même qu'il y ait 2 partitions :
sda1 en ext2 ( 1 GB )
sda2 en ext3 ( le reste)

Je comprends pas pourquoi tu dis avoir 'supprimé' la partition ????

avec fdisk, créer 2 partitions
La 1ère de 1 GB
Le reste du disque pour la 2è

Tu formates la 1ère :
mkfs.ext2 /dev/sda1

Puis la 2è :
mkfs.ext3 /dev/sda2

Tu montes la 1ère partition :
mkdir -p /mnt/enigma2
mount -t ext2 /dev/sda1 /mnt/enigma2

Tu décompresses l'image E2 dans la 1ère partition, APRES L'AVOIR MONTEE ! ! ! !
cd  /mnt/enigma2
tar -xzf /tmp/mon_image_tar.gz

quand c'est fini, tu tapes :
sync

tu attends, puis encore une fois :
sync

et enfin tu démontes /dev/sda1 :
umount /dev/sda1

Tu rebootes en choisissant le boot depuis HDD

quand l'image E2 aura booté et été configurée
tu modifies /etc/fstab

et tu rebootes


J'ai tous les droits, je suis chez moi.
Au moindre non-respect des règles, je vire les importuns.

skikdi53

  • Invité
Re: HDD et image E2 probleme
« Réponse #20 le: 29 décembre 2009 à 08:14:03 »
Merci doume pour ces explications mais mon image est en flash et non pas sur le hdd, dois-je quand meme garder une partition?

Hors ligne Doume

  • The Boss
  • Administrateur
  • Membre Héroïque
  • *****
  • Messages: 6.185
  • Administrateur
    • Doume
Re: HDD et image E2 probleme
« Réponse #21 le: 29 décembre 2009 à 10:09:38 »
Alors pourquoi ce titre ? HDD et image E2 ?

De toute façon, il faut au moins une partition, et qu'elle soit formattée en ext3, pour être utilisée comme /hdd
J'ai tous les droits, je suis chez moi.
Au moindre non-respect des règles, je vire les importuns.

skikdi53

  • Invité
Re: HDD et image E2 probleme
« Réponse #22 le: 29 décembre 2009 à 11:34:14 »
Ben j'ai mis ce titre car mon probleme concerne l'hdd avec une image E2 mais mon image est en flash, si je mets une dgs je n'ai pas de probleme de fonctionnement du hdd.
J'ai reflashé avec la même pour supprimer les modifications que j'ai effectué, et voila ce que j'ai


AAF-ipbox9000 login: root
* * * * * * * * * * * * * * * * * * * * * * * * * * *
*         __               __          __________   *
*        /  \             /  \        |  ________)  *
*       / __ \           / __ \       | |           *
*      / /  \ \         / /  \ \      | |_____      *
*     / /____\ \       / /____\ \     |  _____)     *
*    / /______\ \     / /______\ \    | |           *
*   / /        \ \   / /        \ \   | |           *
*  (__)        (__) (__)        (__) (___)          *
*                                                   *
* * * * * * * * * * * * * * * * * * * * * * * * * * *

>>  wElc0me to Christmas Image (Image 14)

>>  AAF_M1319_rev_070_ipbox9000

* * * * * * * * * * * * * * * * * * * * * * * * * * *



BusyBox v1.11.2 (2009-11-22 15:03:50 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

AAF-ipbox9000:~# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System

Disk /dev/sdb: 4043 MB, 4043308544 bytes
255 heads, 63 sectors/track, 491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdb1               1         491     3943926   b Win95 FAT32
AAF-ipbox9000:~#


maintenant j'ai juste envie que mon disque dur qui est reconnu puisse me permettre d'enregistrer et regarder mes fichier, ce qui n'est pas possible pour le moment, l'ipbox me dit qu'il n'est pas initialisé.
Merci.

skikdi53

  • Invité
Re: HDD et image E2 probleme
« Réponse #23 le: 29 décembre 2009 à 13:22:45 »
Merci pour ton aide doume, j'ai finalement reussi.
J'ai formaté mon hdd en ext3 (je crois que je me trompais dans sda et sdb) sans pour autant partitionner.
Cela terminé, j'ai fais initialiser avec la tc ,ça a pris quelques secondes et ça a rebooté.
Tout marche bien maintenant. :)