J'ai vu mon erreur et modifié entre temps sur le post précédent: il faut taper ./Startmount (avec un point et slash avant!).Résultat :
bash: Startmount: command not found
On va bien finir par y arriver!
Cordialement.
J'ai vu mon erreur et modifié entre temps sur le post précédent: il faut taper ./Startmount (avec un point et slash avant!).Résultat :
bash: Startmount: command not found
Code: Select all
#!/bin/ash
mount -o shortname=mixed,quiet,utf8 /dev/sdb1 /mnt/sdb1 2>/dev/null
Code: Select all
mount -o shortname=mixed,quiet,utf8 /dev/sdb1 /mnt/sdb1
Code: Select all
# /usr/local/Startmount/Startmount
/usr/local/Startmount/Startmount: ligne 110 : kill: (9906) - Aucun processus de ce type
ok
cat: /root/.startmount/progitem_list: Aucun fichier ou dossier de ce type
Code: Select all
umount /mnt/sdbN
# où N=un numéro de partition
Code: Select all
umount -a
Bonjour gilloraymondo.gilloraymondo wrote:Bonjour,
J'ai l'habitude de me servir de toutou linux avec une clé usb partitionnée avec sdb1 en fat32 pour y mettre tous mes fichiers personnels, toutou linux étant installé sur une partition sdb2.
Les avantages sont évidents.
Mais, il faut que je monte manuellement la partition sdb1 à chaque fois.
Y a t il moyen de faire en sorte que cette partition sdb1 se monte automatiquement au démarrage ?
Salut, gilloraymundo.rcrsn51 wrote:Then change it togilloraymondo wrote:mkdir: can't create directory ' /mnt/sdb1' : File existsBut the whole idea was to put this code in /etc/rc.d/rc.local to automount the drive. Have you tried that yet?Code: Select all
sleep 5 mkdir -p /mnt/sdb1 mount -t vfat /dev/sdb1 /mnt/sdb1
Code: Select all
/dev/sdb1 /mnt/sdb1 vfat auto,defaults 0 2
Code: Select all
mount -a
Cette ligne donne le résultat suivant :musher0 wrote:En outre, personne n'a vu un détail important. Ajoute la ligne qui suit dans /etc/fstab et fais un retour de chariot après.Code: Select all
/dev/sdb1 /mnt/sdb1 vfat auto,defaults 0 2
Code: Select all
root@puppypc ~
# mount -a /dev/sdb1
mount: unknown filesystem type 'defaults'
Code: Select all
root@puppypc ~
# cat /etc/fstab
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
none /dev/pts devpts gid=2,mode=620 0 0
/dev/fd0 /mnt/floppy auto noauto,rw 0 0
/dev/sdb1 /mnt/sdb1 auto defaults 0 2
root@puppypc ~
# mount -a /dev/sdb1
root@puppypc ~
# cat /proc/mounts | grep 'sdb'
/dev/sdb1 /mnt/sdb1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
root@puppypc ~
#
Code: Select all
mount -a
Code: Select all
mount -a /dev/sdb1
Code: Select all
mkdir -p /mnt/sdb1
mount -t vfat /dev/sdb1 /mnt/sdb1
Code: Select all
# date
mercredi 17 juillet 2013, 21:36:33 (UTC+0200)
root@puppypc ~
# mount -a /dev/sdb1
root@puppypc ~
# cat /proc/mounts | grep 'sdb'
/dev/sdb1 /mnt/sdb1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
root@puppypc ~
#
Code: Select all
# date
mercredi 17 juillet 2013, 22:31:58 (UTC+0200)
root@puppypc ~
# cat /proc/mounts | grep 'sdb'
/dev/sdb1 /mnt/sdb1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
root@puppypc ~
# umount /mnt/sdb1
root@puppypc ~
# mount -a /dev/sdb1
root@puppypc ~
# cat /proc/mounts | grep 'sdb'
/dev/sdb1 /mnt/sdb1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
root@puppypc ~
#
@ musher0 et à Médormusher0 wrote:Salut Médor.
Je crois que je vais commencer une petite chicane avec toi.
Ça manque sur ce forum...
...
La bonne syntaxe pour monter la partition vfat de gilo, /mnt/sdb1, est...Code: Select all
mkdir -p /mnt/sdb1 mount -t vfat /dev/sdb1 /mnt/sdb1
Code: Select all
# sudo mount -t vfat -o iocharset=utf8,umask=000 /dev/hda1 /media/d
Médor wrote:On peut monter une vfat directement en utf8 avec le bon codepage :
mount -t vfat -o iocharset=utf8,codepage=850,shortname=mixed,quiet /dev/sdb1 /mnt/sdb1
Code: Select all
# mount -o shortname=mixed,quiet,utf8 /dev/sdb1 /mnt/sdb1
root@puppypc ~
# cat /proc/mounts | grep 'sdb'
/dev/sdb1 /mnt/sdb1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,quiet,utf8,errors=remount-ro 0 0
root@puppypc ~
# umount /mnt/sdb1
root@puppypc ~
# mount -t vfat -o iocharset=utf8,codepage=850,shortname=mixed,quiet /dev/sdb1 /mnt/sdb1
root@puppypc ~
# cat /proc/mounts | grep 'sdb'
/dev/sdb1 /mnt/sdb1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp850,iocharset=utf8,shortname=mixed,quiet,errors=remount-ro 0 0
root@puppypc ~
# umount /mnt/sdb1
root@puppypc ~
# mount -t vfat -o iocharset=utf8,umask=000 /dev/sdb1 /mnt/sdb1
root@puppypc ~
# cat /proc/mounts | grep 'sdb'
/dev/sdb1 /mnt/sdb1 vfat rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro 0 0
root@puppypc ~
#