Mount CDROM di FreeBSD

Seperti biasa, sebuah masalah kecil dapat membuat pusing 7 keliling. Kasus yang kita hadapi kali ini adalah FreeBSD gagal melakukan mounting CDROM. Karena hanya terbiasa di lingkungan Linux, akhirnya saya kebingungan. Setelah mencari pencerahan melalui google, akhirnya didapat sebuah solusinya.

Pertama-tama adalah login sebagai Super User (Root), kemudian lakukan mounting dengan perintah mount.Berikut pesan kesalahan yang saya buat sebelumnya :

mount /dev/acd0 /mnt/cdrom

FreeBSD 1

Berikut pencerahan dari hasil googling :

7.4. When I mount a CDROM, I get “Incorrect super block”.

You have to tell mount(8) the type of the device that you want to mount. By default, mount(8) will assume the filesystem is of type “ufs”. You want to mount a CDROM filesystem, and you do this by specifying the “-t cd9660” option to mount(8). This does, of course, assume that the CDROM contains an ISO 9660 filesystem, which is what most CDROMs have. As of 1.1R, FreeBSD also understands the Rock Ridge (long filename) extensions.

As an example, if you want to mount the CDROM device, “/dev/cd0c”, under /mnt, you would execute:

mount -t cd9660 /dev/cd0c /mnt

Note that your device name (“/dev/cd0c” in this example) could be different, depending on the CDROM interface. Note that the “-t cd9660” option just causes the “mount_cd9660” command to be executed, and so the above example could be shortened to:
mount_cd9660 /dev/cd0c /mnt

Ternyata permasalahannya terdapat default filesystem pada perintah mount yang merujuk pada ufs. Sehingga kita perlu melakukan perintah mount yang lebih spesifik.

Perlu anda ketahui sebelumnya, device pada FreeBSD agak berbeda dari linux yang biasanya terletak di /dev/cdrom. Pada FreeBSD, device CDROM dapat anda cari tahu melalui perintah dmesg , berikut contohnya :

FreeBSD 2

Pada kasus ini, CDROM saya berada pada device acd0 yang terletak pada /dev/acd0 . Selanjutnya kita lakukan adlaah melakukan peritah mount yang lebih spesifik :

mount -t cd9660 /dev/acd0 /mnt/cdrom

Hasilnya adalah seperti gambar dibawah :

FreeBSD 3

Lihat tuh, icon CDROM nya juga udah nongol di desktop… hehe :) Sekian sampai bertemu di problem selanjutnya…

Related posts:

  1. Command Line di Linux Sewaktu pertama kali berkenalan dengan Linux saat kelas 2 SMP,...

Related posts brought to you by Yet Another Related Posts Plugin.

5 Responses to “Mount CDROM di FreeBSD”

  1. bilal says:

    Mas..Mas.. Kl nge-mounting hardisk external gmn..? soal ny aq error ey pas ngemounting nya…

    ap ad yg tau error ny ap..?

    admin# mount -t ntfs /dev/ad0s1 /mnt/hdex
    mount_ntfs: /dev/ad0s1: Operation Not Permitted

    (Hardisk externalku formatny NTFS)

    mohon pencerahan….

  2. yaa,,namanya jg masih proses belajar :) saya kan masih kuliah..masih perlu buka mata yang luas…klo udah niat jadi ahli baru fokus 1 spesialisasi, soalnya otak manusia kan ada batasnya..

  3. TheX says:

    Lah…. makanya belajar 1 aja ditekuni gt… biar ahli… ga tangung” spt kebanyakan orang asal copy paste………….

  4. [...] Baca entri selengkapnya » [...]

  5. peyek says:

    tips berguna!

Leave a Reply

WordPress Themes