[FreeBSD] Mount disks, iso, usb. - BSD

Users browsing this thread: 1 Guest(s)
yrmt
Grey Hair Nixers
Mount a CD/DVD
¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Run as root:

PHP Code:
<?php 
- > mount_cd9660 /dev/cd0 /media


Mount Image disks
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

run, as root:

PHP Code:
<?php 
- > mdconfig -a -t vnode -f /path/to/image.iso -u 1

- > mount -t cd9660 /dev/md1 /mnt/media

Mount any HDD
¯¯¯¯¯¯¯¯¯¯¯¯¯

run, as root:
First check what your device is by looking at the messages when plugging in the USB by running `tail -f /var/log/messages`.

PHP Code:
<?php 
- > `gpart show` should show some information
- > mount /dev/da0 /mnt <- for UFS

There are a few file systems supported:

PHP Code:
<?php 
mount mount_msdosfs mount_nullfs mount_portalfs mount_unionfs
mount_cd9660 mount_nfs mount_nwfs mount_smbfs
mount_mfs mount_ntfs mount_oldnfs mount_udf