Forum Linux.général sda non mounté au demarrage

Posté par .
Étiquettes :
0
19
juin
2006
Tout d'abord bonjour à tous ! C'est mon premier message sur le forum :D

J'ai une debian sarge , un disque dur interne et un rack usb.

Ceci marche très bien :
# mount -t ext3 /dev/sda1 /mnt/dd1


Je rajoute la ligne suivante dans mon fstab :
/dev/sda1 /mnt/dd1 ext3 defaults 0 0


Je redemarre ...

Le disque n'est pas mounté mais un "# mount -a " en root le fait mounter.

Voila mon problème : on dirait que l'usb est chargé après les tentatives de mount. Comment pourrais je régler ca ? (je ne connais rien au systeme usb).

Merci pour vos réponses :)
  • # scripts d'initialisation

    Posté par . Évalué à 1.

    Le fonctionnement des scripts d'initialisation est expliqué, par exemple, là : http://www.fr.debian.org/doc/debian-policy/ch-opersys.html#s(...)

    A mon avis, ça ne devrait pas être trop compliqué de trouver dans /etc/init.d dans quel script a lieu le mount -a. Une solution immédiate serait d'insérer juste avant le modprobe qui charge le pilote du disque additionnel sur port USB. Par contre, je ne sais pas trop comment cette modif sera gérée si tu fais une mise à jour.
    • [^] # Re: scripts d'initialisation

      Posté par . Évalué à 1.

      Je vais tenter ca, je vous tient au courant.
      merci !
    • [^] # Re: scripts d'initialisation

      Posté par . Évalué à 1.

      Mon repertoire init.d ressemble à ca :

      # ls -la /etc/rcS.d/
      total 5
      drwxr-xr-x 2 root root 1024 2006年06月20日 00:55 .
      drwxr-xr-x 63 root root 3072 2006年06月20日 00:52 ..
      -rw-r--r-- 1 root root 701 2004年09月10日 17:00 README
      lrwxrwxrwx 1 root root 21 2006年06月13日 05:01 S02mountvirtfs -> ../init.d/mountvirtfs
      lrwxrwxrwx 1 root root 14 2006年06月19日 04:27 S04udev -> ../init.d/udev
      lrwxrwxrwx 1 root root 18 2006年06月13日 05:01 S05bootlogd -> ../init.d/bootlogd
      lrwxrwxrwx 1 root root 25 2006年06月13日 05:03 S05initrd-tools.sh -> ../init.d/initrd-tools.sh
      lrwxrwxrwx 1 root root 19 2006年06月13日 05:03 S05keymap.sh -> ../init.d/keymap.sh
      lrwxrwxrwx 1 root root 22 2006年06月13日 05:01 S10checkroot.sh -> ../init.d/checkroot.sh
      lrwxrwxrwx 1 root root 25 2006年06月13日 05:01 S18hwclockfirst.sh -> ../init.d/hwclockfirst.sh
      lrwxrwxrwx 1 root root 24 2006年06月13日 05:03 S18ifupdown-clean -> ../init.d/ifupdown-clean
      lrwxrwxrwx 1 root root 27 2006年06月13日 03:17 S20module-init-tools -> ../init.d/module-init-tools
      lrwxrwxrwx 1 root root 18 2006年06月13日 05:01 S20modutils -> ../init.d/modutils
      lrwxrwxrwx 1 root root 20 2006年06月13日 05:01 S30checkfs.sh -> ../init.d/checkfs.sh
      lrwxrwxrwx 1 root root 19 2006年06月13日 05:01 S30procps.sh -> ../init.d/procps.sh
      lrwxrwxrwx 1 root root 21 2006年06月13日 05:01 S35mountall.sh -> ../init.d/mountall.sh
      lrwxrwxrwx 1 root root 18 2006年06月13日 05:04 S36discover -> ../init.d/discover
      lrwxrwxrwx 1 root root 21 2006年06月13日 05:01 S36mountvirtfs -> ../init.d/mountvirtfs
      lrwxrwxrwx 1 root root 19 2006年06月19日 04:27 S36udev-mtab -> ../init.d/udev-mtab
      lrwxrwxrwx 1 root root 18 2006年06月13日 05:03 S38pppd-dns -> ../init.d/pppd-dns
      lrwxrwxrwx 1 root root 19 2006年06月13日 05:03 S39dns-clean -> ../init.d/dns-clean
      lrwxrwxrwx 1 root root 18 2006年06月13日 05:03 S39ifupdown -> ../init.d/ifupdown
      lrwxrwxrwx 1 root root 21 2006年06月13日 05:01 S40hostname.sh -> ../init.d/hostname.sh
      lrwxrwxrwx 1 root root 17 2006年06月13日 05:04 S40hotplug -> ../init.d/hotplug
      lrwxrwxrwx 1 root root 20 2006年06月13日 05:03 S40networking -> ../init.d/networking
      lrwxrwxrwx 1 root root 21 2006年06月13日 05:04 S41hotplug-net -> ../init.d/hotplug-net
      lrwxrwxrwx 1 root root 17 2006年06月13日 03:17 S43portmap -> ../init.d/portmap
      lrwxrwxrwx 1 root root 21 2006年06月13日 05:01 S45mountnfs.sh -> ../init.d/mountnfs.sh
      lrwxrwxrwx 1 root root 27 2006年06月13日 05:03 S48console-screen.sh -> ../init.d/console-screen.sh
      lrwxrwxrwx 1 root root 20 2006年06月13日 05:01 S50hwclock.sh -> ../init.d/hwclock.sh
      lrwxrwxrwx 1 root root 21 2006年06月13日 05:01 S55bootmisc.sh -> ../init.d/bootmisc.sh
      lrwxrwxrwx 1 root root 17 2006年06月13日 05:01 S55urandom -> ../init.d/urandom
      lrwxrwxrwx 1 root root 17 2006年06月13日 05:02 S70nviboot -> ../init.d/nviboot
      lrwxrwxrwx 1 root root 24 2006年06月13日 03:23 S70screen-cleanup -> ../init.d/screen-cleanup

      On devine qu'il faut copier le S35mountall.sh pour qu'il s'execute apres un modprob mais le script qui fait ca est S20module-init-tools ou S20modutils et ils s'executent avant.
      Je sais pas trop quoi faire alors ...
      • [^] # Re: scripts d'initialisation

        Posté par . Évalué à 1.

        bon, j'ai testé en fesant :

        # cp /etc/rcS.d/S35mountall.sh /etc/rcS.d/S40mountall.sh

        ca marche ! Mais je sais pas ce qui a bien pu changer entre le S35 et le S40.

        Voila, et merci pour ton aide !

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.