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 Nicolas P. . Évalué à 1.
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 makuboro777 . Évalué à 1.
merci !
[^] # Re: scripts d'initialisation
Posté par makuboro777 . Évalué à 1.
# 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 makuboro777 . Évalué à 1.
# 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.