Le 07/03/2013 12:53, Chris Angelico a écrit : > Most filesystems work on the basis of partitions. I've never seen any > that work directly on the disk, always on a partition.
very easy to test, I just did (again) I plugged a 2Gb spare sd card and got it in /dev/sdd, then copy the image to the hdd, there are other way to have an image file (any file type is allowed, but not too smal, have to accept a file system :- ) dd if=/dev/sdd of=test.hdd 3962880+0 enregistrements lus 3962880+0 enregistrements écrits 2028994560 octets (2,0 GB) copiés, 135,306 s, 15,0 MB/s try to mount it: linux-hld1:/local/data # mount -o loop test.hdd /mnt mount: type de système de fichiers « (null) » inconnu no file system on test, of course (there is a file system, but on the first partition) create the file system : linux-hld1:/local/data # mkfs.ext2 test.hdd mke2fs 1.42.4 (12-June-2012) test.hdd n'est pas un périphérique spécial en mode bloc. Procéder malgré tout ? (o,n) o Rejet des blocs de périphérique : complété Étiquette de système de fichiers= Type de système d'exploitation : Linux Taille de bloc=4096 (log=2) Taille de fragment=4096 (log=2) « Stride » = 0 blocs, « Stripe width » = 0 blocs 123904 i-noeuds, 495360 blocs 24768 blocs (5.00%) réservés pour le super utilisateur Premier bloc de données=0 Nombre maximum de blocs du système de fichiers=507510784 16 groupes de blocs 32768 blocs par groupe, 32768 fragments par groupe 7744 i-noeuds par groupe Superblocs de secours stockés sur les blocs : 32768, 98304, 163840, 229376, 294912 Allocation des tables de groupe : complété Écriture des tables d'i-noeuds : complété Écriture des superblocs et de l'information de comptabilité du système de fichiers : complété so write completed, of course initially a warning message, it's not common to use a file as disk. Then: linux-hld1:/local/data # mount -o loop test.hdd /mnt linux-hld1:/local/data # ls /mnt lost+found you can also fdisk the file to create partitions. Linux is incredibly flexible. I used this way some years ago to make a course on file systems, it's easy to create, delete, change, compare the journal size... jdd -- http://www.dodin.org http://jddtube.dodin.org/20120616-52-highway_v1115 ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ VBox-users-community mailing list VBox-users-community@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vbox-users-community _______________________________________________ Unsubscribe: mailto:vbox-users-community-requ...@lists.sourceforge.net?subject=unsubscribe