comment monter une partition (type15 extended) sur freebsd?

comment monter une partition (type15 extended) sur freebsd? - Installation - Linux et OS Alternatifs

Marsh Posté le 11-06-2004 à 10:33:58    

salut
je voudrais monter dans mon dossier home une partition de mon dd de type 15.
 
je fais mount /dev/ad0s2 /home/moi/partition
mais j'ai le message incorrect block..


---------------
>> Portfolio: www.MyDeclic.com
Reply

Marsh Posté le 11-06-2004 à 10:33:58   

Reply

Marsh Posté le 11-06-2004 à 11:25:19    

ta partition c'est plutot /dev/ad0s2a ?

Reply

Marsh Posté le 11-06-2004 à 11:27:52    

bah en fait j'ai dans /dev/
ad0s2
ad0s2a
ad0s2b
...
ad0s2h
ad0s3
ad0s3a
ad0s3b
..
ad0s3h
ad0s4
c'est tout (dans fdisk j'avais fais 3 partitions (165,15,15)


---------------
>> Portfolio: www.MyDeclic.com
Reply

Marsh Posté le 11-06-2004 à 11:38:33    

j'ai essayé mount_msdos /dev/ad0s2a /home/moi/partition  
mais maintenant j'ai le message: invalid argument


---------------
>> Portfolio: www.MyDeclic.com
Reply

Marsh Posté le 11-06-2004 à 12:05:23    

pas d'idée?


---------------
>> Portfolio: www.MyDeclic.com
Reply

Marsh Posté le 11-06-2004 à 13:15:46    

faut que tu trouves le bon dev node...
 
essaye avec b, c, d ... h

Reply

Marsh Posté le 11-06-2004 à 13:27:20    

j'ai essayé que le a est sans rien. keudal pour le moment


---------------
>> Portfolio: www.MyDeclic.com
Reply

Marsh Posté le 11-06-2004 à 13:37:41    

ta phrase ne veut rien dire...
 
essaye ad0s2a, ad0s2b, ..., ad0s2h (si tu es sur que le slice en question est ad0s2)

Reply

Marsh Posté le 11-06-2004 à 13:39:43    

oups effectivment.
j'ai essayé ad0s2 et ad0s2a mais ça n'a pas voulu monter.
je vais essayer tout a l'heure les autres lettres.


---------------
>> Portfolio: www.MyDeclic.com
Reply

Marsh Posté le 11-06-2004 à 13:40:49    

white-rabbit a écrit :


c'est tout (dans fdisk j'avais fais 3 partitions (165,15,15)


 
pas 3 partitions, mais 3 slices... tu peux avoir de nombreuses partitions sur un slice (c.f. handbook)

Reply

Marsh Posté le 11-06-2004 à 13:40:49   

Reply

Marsh Posté le 11-06-2004 à 13:41:51    

ad0s2 ne peut pas marcher car on ne monte pas un slice mais une partition, il s'agit de savoir laquelle (quelle lettre si tu preferes)

Reply

Marsh Posté le 11-06-2004 à 13:42:00    

okok, jvoi pas trop la dif entre slice et partition..


---------------
>> Portfolio: www.MyDeclic.com
Reply

Marsh Posté le 11-06-2004 à 13:55:06    

la reponse simple (pour moi) cf handbook ou google.
 
Sinon en quelques mots et en simplifiant, dans le monde unix / bsd, un slice est une portion du disque dans laquelle tu crees des partitions. Un slice a un type (165 pour native freebsd ou 15 pour les partitions etendues x86 du monde MS) et ses partitions ont ce meme type.

Reply

Marsh Posté le 11-06-2004 à 14:24:10    

jviens d'essayer:
mount /dev/ad0s2a /home/moi/où_jveu_mettre/
mount /dev/ad0s2b ...
...
mount /dev/ad0s2h /home/moi/où_jveu_mettre/
 
j'ai tjrs eu le message incorrect block
 
jdoi mettre un parametre apres mount ?


---------------
>> Portfolio: www.MyDeclic.com
Reply

Marsh Posté le 11-06-2004 à 14:30:58    

mais tu essayes de monter quel type de partition sur ta partition etendue ? msdosfs ? ntfs ?
 
Tu as fais un man mount au moins ?

Reply

Marsh Posté le 11-06-2004 à 14:46:47    

oui j'ai fais man mount mais j'ai pas les manuels d'installer, à la place j'ai ça sur internet, c'est pareil.
 
sinon le truc que j'essai de monter c'est une partition (un slice?) que j'ai créer sous fdisk, en faisant sur la partie unused
 
C create
4000M  pour 4go
15 comme type (extended)  car je veux utiliser ces partitions juste pour du stockage via nfs.
 
je m'y prend mal ?


---------------
>> Portfolio: www.MyDeclic.com
Reply

Marsh Posté le 11-06-2004 à 14:47:48    

Code :
  1. MOUNT(8)  FreeBSD System Manager's Manual        MOUNT(8)
  2. NAME
  3.      mount -- mount file systems
  4. SYNOPSIS
  5.      mount [-adfpruvw] [-o options] [-t ufs | external_type]
  6.      mount [-dfpruvw] special | node
  7.      mount [-dfpruvw] [-o options] [-t ufs | external_type] special node
  8. DESCRIPTION
  9.      The mount utility calls the mount(2) system call to prepare and graft a
  10.      special device or the remote node (rhost:path) on to the file system tree
  11.      at the point node.  If either special or node are not provided, the
  12.      appropriate information is taken from the fstab(5) file.
  13.      The system maintains a list of currently mounted file systems.  If no
  14.      arguments are given to mount, this list is printed.
  15.      The options are as follows:
  16.      -a      All the filesystems described in fstab(5) are mounted.  Excep-
  17.      tions are those marked as ``noauto'', excluded by the -t flag
  18.      (see below), or if they are already mounted (except the root
  19.      filesystem which is always remounted to preserve traditional sin-
  20.      gle user mode behavior).
  21.      -d      Causes everything to be done except for the actual system call.
  22.      This option is useful in conjunction with the -v flag to deter-
  23.      mine what the mount command is trying to do.
  24.      -f      Forces the revocation of write access when trying to downgrade a
  25.      filesystem mount status from read-write to read-only.  Also
  26.      forces the R/W mount of an unclean filesystem (dangerous; use
  27.      with caution).
  28.      -o      Options are specified with a -o flag followed by a comma sepa-
  29.      rated string of options.  In case of conflicting options being
  30.      specified, the rightmost option takes effect.  The following
  31.      options are available:
  32.      async   All I/O to the file system should be done asynchronously.
  33.       This is a dangerous flag to set, and should not be used
  34.       unless you are prepared to recreate the file system
  35.       should your system crash.
  36.      current
  37.       When used with the -u flag, this is the same as specify-
  38.       ing the options currently in effect for the mounted
  39.       filesystem.
  40.      force   The same as -f; forces the revocation of write access
  41.       when trying to downgrade a filesystem mount status from
  42.       read-write to read-only.  Also forces the R/W mount of an
  43.       unclean filesystem (dangerous; use with caution).
  44.      fstab   When used with the -u flag, this is the same as specify-
  45.       ing all the options listed in the fstab(5) file for the
  46.       filesystem.
  47.      noasync
  48.       Metadata I/O should be done synchronously, while data I/O
  49.       should be done asynchronously.  This is the default.
  50.      noatime
  51.       Do not update the file access time when reading from a
  52.       file.  This option is useful on filesystems where there
  53.       are large numbers of files and performance is more criti-
  54.       cal than updating the file access time (which is rarely
  55.       ever important).  This option is currently only supported
  56.       on local filesystems.
  57.      noauto  This filesystem should be skipped when mount is run with
  58.       the -a flag.
  59.      noclusterr
  60.       Disable read clustering.
  61.      noclusterw
  62.       Disable write clustering.
  63.      nodev   Do not interpret character or block special devices on
  64.       the file system.  This option is useful for a server that
  65.       has file systems containing special devices for architec-
  66.       tures other than its own. This option is set automati-
  67.       cally when the user does not have super-user privileges.
  68.      noexec  Do not allow execution of any binaries on the mounted
  69.       file system.  This option is useful for a server that has
  70.       file systems containing binaries for architectures other
  71.       than its own.
  72.      nosuid  Do not allow set-user-identifier or set-group-identifier
  73.       bits to take effect.  Note: this option is worthless if a
  74.       public available suid or sgid wrapper like suidperl(1) is
  75.       installed on your system. It is set automatically when
  76.       the user does not have super-user privileges.
  77.      nosymfollow
  78.       Do not follow symlinks on the mounted file system.
  79.      rdonly  The same as -r; mount the file system read-only (even the
  80.       super-user may not write it).
  81.      sync    All I/O to the file system should be done synchronously.
  82.      suiddir
  83.       A directory on the mounted filesystem will respond to the
  84.       SUID bit being set, by setting the owner of any new files
  85.       to be the same as the owner of the directory.  New direc-
  86.       tories will inherit the bit from their parents.  Execute
  87.       bits are removed from the file, and it will not be given
  88.       to root.
  89.       This feature is designed for use on fileservers serving
  90.       PC users via ftp, SAMBA, or netatalk.  It provides secu-
  91.       rity holes for shell users and as such should not be used
  92.       on shell machines, especially on home directories.  This
  93.       option requires the SUIDDIR option in the kernel to work.
  94.       Only UFS filesystems support this option. See chmod(2)
  95.       for more information.
  96.      update  The same as -u; indicate that the status of an already
  97.       mounted file system should be changed.
  98.      union   Causes the namespace at the mount point to appear as the
  99.       union of the mounted filesystem root and the existing
  100.       directory.  Lookups will be done in the mounted filesys-
  101.       tem first.  If those operations fail due to a non-exis-
  102.       tent file the underlying directory is then accessed.  All
  103.       creates are done in the mounted filesystem.
  104.      Any additional options specific to a filesystem type that is not
  105.      one of the internally known types (see the -t option) may be
  106.      passed as a comma separated list; these options are distinguished
  107.      by a leading ``-'' (dash).  Options that take a value are speci-
  108.      fied using the syntax -option=value.  For example, the mount com-
  109.      mand:
  110.     mount -t mfs -o nosuid,-N,-s=4000 /dev/dk0b /tmp
  111.      causes mount to execute the equivalent of:
  112.     /sbin/mount_mfs -o nosuid -N -s 4000 /dev/dk0b /tmp
  113.      Additional options specific to filesystem types which are not
  114.      internally known (see the description of the -t option below) may
  115.      be described in the manual pages for the associated
  116.      /sbin/mount_XXX utilities.
  117.      -p      Print mount information in fstab(5) format.  Implies also the -v
  118.      option.
  119.      -r      The file system is to be mounted read-only.  Mount the file sys-
  120.      tem read-only (even the super-user may not write it).  The same
  121.      as the rdonly argument to the -o option.
  122.      -t ufs | external_type
  123.      The argument following the -t is used to indicate the file system
  124.      type.  The type ufs is the default.  The -t option can be used to
  125.      indicate that the actions should only be taken on filesystems of
  126.      the specified type.  More than one type may be specified in a
  127.      comma separated list.  The list of filesystem types can be pre-
  128.      fixed with ``no'' to specify the filesystem types for which
  129.      action should not be taken.  For example, the mount command:
  130.     mount -a -t nonfs,mfs
  131.      mounts all filesystems except those of type NFS and MFS.
  132.      If the type is not one of the internally known types, mount will
  133.      attempt to execute a program in /sbin/mount_XXX where XXX is
  134.      replaced by the type name.  For example, nfs filesystems are
  135.      mounted by the program /sbin/mount_nfs.
  136.      Most filesystems will be dynamically loaded by their mount pro-
  137.      grams if not already present in the kernel, using the vfsload(3)
  138.      subroutine.  Because this mechanism requires writable temporary
  139.      space, the filesystem type containing /tmp must be compiled into
  140.      the kernel, and the filesystems containing /tmp and /usr/bin/ld
  141.      must be listed in /etc/fstab before any filesystems which might
  142.      be dynamically loaded.
  143.      -u      The -u flag indicates that the status of an already mounted file
  144.      system should be changed. Any of the options discussed above
  145.      (the -o option) may be changed; also a file system can be changed
  146.      from read-only to read-write or vice versa.  An attempt to change
  147.      from read-write to read-only will fail if any files on the
  148.      filesystem are currently open for writing unless the -f flag is
  149.      also specified.  The set of options is determined by applying the
  150.      options specified in the argument to -o and finally applying the
  151.      -r or -w option.
  152.      -v      Verbose mode.
  153.      -w      The file system object is to be read and write.


---------------
>> Portfolio: www.MyDeclic.com
Reply

Marsh Posté le 14-06-2004 à 09:19:12    

je suis tjrs bloqué avec mes partitions :/  
 
quelqu'un a t'il d'autres idées ?


---------------
>> Portfolio: www.MyDeclic.com
Reply

Marsh Posté le 14-06-2004 à 10:11:25    

white-rabbit a écrit :

je suis tjrs bloqué avec mes partitions :/  
 
quelqu'un a t'il d'autres idées ?


tu as utilisé disklabel ?
 
edit: oups je croyais que tu étais sous obsd.
et je connais pas freebsd :/


Message édité par nikosaka le 14-06-2004 à 10:14:05
Reply

Marsh Posté le 14-06-2004 à 10:17:43    

non pas de obsd :/
 


---------------
>> Portfolio: www.MyDeclic.com
Reply

Marsh Posté le 14-06-2004 à 15:23:24    

up, jsui bloqué au taf!! snif


---------------
>> Portfolio: www.MyDeclic.com
Reply

Marsh Posté le 16-06-2004 à 09:41:08    

tjrs personne pour me debloquer?


---------------
>> Portfolio: www.MyDeclic.com
Reply

Marsh Posté le    

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed