Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Oct 2015 13:09:00 +0100
From:      Polytropon <freebsd@edvax.de>
To:        "Ian Fitzgerald" <ianf@ozemail.com.au>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: Adding 9.1 disk to 10.2 machine
Message-ID:  <20151028130900.4e2c8ac1.freebsd@edvax.de>
In-Reply-To: <000901d11177$e4f559c0$aee00d40$@com.au>
References:  <000901d11177$e4f559c0$aee00d40$@com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Your command output of

On Wed, 28 Oct 2015 22:58:00 +1100, Ian Fitzgerald wrote:
> gpart show:
> [...]
> =>        63  1953525105  ada1  MBR  (932G)
> 
>           63  1953525105     1  freebsd  [active]  (932G)

and

> gpart list:
> [...]
> Geom name: ada1
> [...]
> scheme: MBR
> 
> Providers:
> 
> 1. Name: ada1s1
> [...]

indicate an MBR-style partitioned disk, containing one slice
("DOS primary partition") being formatted as a whole file system,
therefore /dev/ada1s1c is the correct device name, and as 'c' can
be omitted, /dev/ada1s1 is the device to mount.

Checking with the old-fashioned tools fdisk and bsdlabel, you
could have obtained the same information, but using gpart is
much easier (and also recommended today).



> Therefore, #mount -t ufs /dev/ada1s1  /disk2 mounted without apparent error,
> and  adding
> 
> /dev/ada1s1      /disk2                    ufs          rw           2
> 2
> 
> to /etc/fstab
> 
>  
> 
> has made the disk available at /disk2.

Correct.



> Are there any potential hazards with doing this?

No, it's the proper approach to mounting such a disk for read and
write operations. (If you only want to read from it, use "ro" instead
of "rw" in the option field.)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151028130900.4e2c8ac1.freebsd>