0 valutazioniIl 0% ha trovato utile questo documento (0 voti)
14 visualizzazioni4 pagine
Mount -a [-t -O] : mount all stuff from /etc / fstab. One does not really mount a device, one mounts a filesystem found on the device. One can also mount an already visible directory tree elsewhere: mount --bind olddir newdir or move a subtree: mount --make-rshared dir.
Mount -a [-t -O] : mount all stuff from /etc / fstab. One does not really mount a device, one mounts a filesystem found on the device. One can also mount an already visible directory tree elsewhere: mount --bind olddir newdir or move a subtree: mount --make-rshared dir.
Copyright:
Attribution Non-Commercial (BY-NC)
Formati disponibili
Scarica in formato TXT, PDF, TXT o leggi online su Scribd
Mount -a [-t -O] : mount all stuff from /etc / fstab. One does not really mount a device, one mounts a filesystem found on the device. One can also mount an already visible directory tree elsewhere: mount --bind olddir newdir or move a subtree: mount --make-rshared dir.
Copyright:
Attribution Non-Commercial (BY-NC)
Formati disponibili
Scarica in formato TXT, PDF, TXT o leggi online su Scribd
Bureau examples.desktop Modèles octave-core TP1 Vidéos
C Images mount_vbox Public vecteur_1 Documents missfont.log Musique Téléchargements vecteur_1.h etudiant@MS2MS-laptop:~$ more mount_vbox sudo mount -t vboxsf Travail /mnt/Travail -o rw,exec,uid=1000,gid=1000,dev etudiant@MS2MS-laptop:~$ sudo mount -t vboxsf TP1/mnt/TP1 -o rw,exec,uid=1000,gi d=1000,div Usage: mount -V : print version mount -h : print this help mount : list mounted filesystems mount -l : idem, including volume labels So far the informational part. Next the mounting. The command is `mount [-t fstype] something somewhere'. Details found in /etc/fstab may be omitted. mount -a [-t|-O] ... : mount all stuff from /etc/fstab mount device : mount device at the known place mount directory : mount known device here mount -t type dev dir : ordinary mount command Note that one does not really mount a device, one mounts a filesystem (of the given type) found on the device. One can also mount an already visible directory tree elsewhere: mount --bind olddir newdir or move a subtree: mount --move olddir newdir One can change the type of mount containing the directory dir: mount --make-shared dir mount --make-slave dir mount --make-private dir mount --make-unbindable dir One can change the type of all the mounts in a mount subtree containing the directory dir: mount --make-rshared dir mount --make-rslave dir mount --make-rprivate dir mount --make-runbindable dir A device can be given by name, say /dev/hda1 or /dev/cdrom, or by label, using -L label or by uuid, using -U uuid . Other options: [-nfFrsvw] [-o options] [-p passwdfd]. For many more details, say man 8 mount . etudiant@MS2MS-laptop:~$ mkdir TP1 mkdir: cannot create directory `TP1': File exists etudiant@MS2MS-laptop:~$ kate kate(1563)/kdecore (services) KMimeTypeFactory::parseMagic: Now parsing "/usr/s hare/mime/magic" kate(1563)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/home" etudiant@MS2MS-laptop:~$ ls Bureau examples.desktop Modèles octave-core vecteur_1 C Images mount_vbox Public vecteur_1.h Documents missfont.log Musique Téléchargements Vidéos etudiant@MS2MS-laptop:~$ more mount_vbox sudo mount -t vboxsf Travail /mnt/Travail -o rw,exec,uid=1000,gid=1000,dev etudiant@MS2MS-laptop:~$ sudo mount -t vboxsf TP1/mnt/TP1 -o rw,exec,uid=1000,gi d=1000,dev Usage: mount -V : print version mount -h : print this help mount : list mounted filesystems mount -l : idem, including volume labels So far the informational part. Next the mounting. The command is `mount [-t fstype] something somewhere'. Details found in /etc/fstab may be omitted. mount -a [-t|-O] ... : mount all stuff from /etc/fstab mount device : mount device at the known place mount directory : mount known device here mount -t type dev dir : ordinary mount command Note that one does not really mount a device, one mounts a filesystem (of the given type) found on the device. One can also mount an already visible directory tree elsewhere: mount --bind olddir newdir or move a subtree: mount --move olddir newdir One can change the type of mount containing the directory dir: mount --make-shared dir mount --make-slave dir mount --make-private dir mount --make-unbindable dir One can change the type of all the mounts in a mount subtree containing the directory dir: mount --make-rshared dir mount --make-rslave dir mount --make-rprivate dir mount --make-runbindable dir A device can be given by name, say /dev/hda1 or /dev/cdrom, or by label, using -L label or by uuid, using -U uuid . Other options: [-nfFrsvw] [-o options] [-p passwdfd]. For many more details, say man 8 mount . etudiant@MS2MS-laptop:~$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 20349580 4636668 14679184 25% / none 250408 264 250144 1% /dev none 254632 208 254424 1% /dev/shm none 254632 92 254540 1% /var/run none 254632 0 254632 0% /var/lock none 254632 0 254632 0% /lib/init/rw etudiant@MS2MS-laptop:~$ ls /m media/ mnt/ etudiant@MS2MS-laptop:~$ ls /m media/ mnt/ etudiant@MS2MS-laptop:~$ ls Bureau examples.desktop Modèles octave-core vecteur_1 C Images mount_vbox Public vecteur_1.h Documents missfont.log Musique Téléchargements Vidéos etudiant@MS2MS-laptop:~$ nedit mount_vbox& [1] 1627 etudiant@MS2MS-laptop:~$ ls Bureau examples.desktop Modèles octave-core vecteur_1 C Images mount_vbox Public vecteur_1.h Documents missfont.log Musique Téléchargements Vidéos etudiant@MS2MS-laptop:~$ mkdir Travail etudiant@MS2MS-laptop:~$ ls Bureau examples.desktop Modèles octave-core Travail Vidéos C Images mount_vbox Public vecteur_1 Documents missfont.log Musique Téléchargements vecteur_1.h etudiant@MS2MS-laptop:~$ pwd /home/etudiant etudiant@MS2MS-laptop:~$ ls Bureau examples.desktop Modèles octave-core Travail Vidéos C Images mount_vbox Public vecteur_1 Documents missfont.log Musique Téléchargements vecteur_1.h etudiant@MS2MS-laptop:~$ sudo mount_vbox sudo: mount_vbox: command not found etudiant@MS2MS-laptop:~$ ./mount_vbox etudiant@MS2MS-laptop:~$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 20349580 4636668 14679184 25% / none 250408 264 250144 1% /dev none 254632 208 254424 1% /dev/shm none 254632 92 254540 1% /var/run none 254632 0 254632 0% /var/lock none 254632 0 254632 0% /lib/init/rw TP1 26214656 6269580 19945076 24% /home/etudiant/Travail etudiant@MS2MS-laptop:~$ ls Travail/ ex.dat test01.c toto.m V.dat Vecteur.c Makefile test02.c U.dat vecteur Vecteur.h etudiant@MS2MS-laptop:~$ cd Travail/ etudiant@MS2MS-laptop:~/Travail$ make gcc -g -Wall -c test01.c gcc -g -Wall -c Vecteur.c gcc -o test01 test01.o Vecteur.o gcc -g -Wall -c test02.c gcc -o test02 test02.o Vecteur.o -lm etudiant@MS2MS-laptop:~/Travail$ ./test01 A: 1 1.000000 2 1.000000 3 1.000000 B: 1 0.000000 2 0.000000 3 0.000000 C: 1 5.000000 2 5.000000 3 5.000000 etudiant@MS2MS-laptop:~/Travail$ ls ex.dat test01 test01.o test02.c toto.m V.dat Vecteur.c Vecteur.o Makefile test01.c test02 test02.o U.dat vecteur Vecteur.h etudiant@MS2MS-laptop:~/Travail$ dd dd ddate ddd etudiant@MS2MS-laptop:~/Travail$ ddd test01 Warning: XmStringGetNextComponent: unknown type 150491800 (Annoyed? Try 'Edit->Preferences->General->Suppress X Warnings'!) Warning: XmStringGetNextComponent: unknown type 150489920 Warning: XmStringGetNextComponent: unknown type 150493416 Warning: XmStringGetNextComponent: unknown type 150492376 Warning: XmStringGetNextComponent: unknown type 150494656 Warning: XmStringGetNextComponent: unknown type 150512728 Warning: XmStringGetNextComponent: unknown type 150512776 ^[[1;2C^[[1;2C^[[1;5C^CInterrupt ^CInterrupt ^Z [2]+ Stopped ddd test01 etudiant@MS2MS-laptop:~/Travail$