외장 드라이브의 경로를 알아내려면?

mg2000의 이미지

리눅스에서는 USB드라이브나 CD롬 드라이브는 마운트를 시켜 사용하는데요.

CD롬이야 /mnt/cdrom으로 경로가 생성되는 것 같습니다만,

USB드라이브는 무슨 이름으로 생성되는지 잘 모르겠네요.

USB드라이브의 경로는 어떻게 생성되고, 뭐뭐가 있는지 알아낼려면 어떻게 해야 할까요?

nahanjang의 이미지

우분투의 경우 자동마운트시 /media/cdrom으로 생성됩니다.
마찬가지로 외장형하드도 /media/ 아래에 생성됩니다.
내장하드디스크에서 마운트포인트를 지정하지 않으면 그것도..

물론 fstab을 수정하여 바꿀수 있습니다.

세이군의 이미지

USB메모리의 자동 마운트 위치는 /media/usbdisk 입니다.

bushi의 이미지

최근 배포본들은 hal, dbus, dbus frontend 등이 섞여 돌아갑니다.
사용하시는 wm 의 제어판 비스무리한 어플리케이션에서 확인하고 조정하시는 게 편합니다.

예를 들어 fedora 7, gnome 2.14 에서 USB memory card reader 를 꽂을 경우,

[bushi@rose i2c]$ dbus-monitor 
...생략...
signal sender=:1.6 -> dest=(null destination) path=/org/gnome/GnomeVFS/Daemon; interface=org.gnome.GnomeVFS.Daemon; member=DriveConnectedSignal
   struct {
      int32 6
      int32 3
      array [
      ]
      string "/dev/sdd"
      string ""
      string "Multi Flash Reader"
      string "gnome-dev-removable-usb"
      string "/org/freedesktop/Hal/devices/volume_uuid_58F4_B889"
      boolean true
      boolean true
      boolean false
   }
...생략...
path=/org/gnome/GnomeVFS/Daemon; interface=org.gnome.GnomeVFS.Daemon; member=VolumeMountedSignal
   struct {
      int32 301
      int32 0
      int32 3
      int32 6
      string "file:///media/disk"
      string "vfat"
      string "483.9 MB 이동식 볼륨"
      string "gnome-dev-harddisk-usb"
      boolean true
      boolean false
      boolean true
      string "/dev/sdd"
      int32 2096
      string "/org/freedesktop/Hal/devices/volume_uuid_58F4_B889"
      string ""
   }
...생략...

[bushi@rose ctl_test]$ hal-device
0: udi = '/org/freedesktop/Hal/devices/volume_uuid_58F4_B889'
  block.minor = 48  (0x30)  (int)
  org.freedesktop.Hal.Device.Volume.method_names = { 'Mount', 'Unmount', 'Eject' } (string list)
  volume.ignore = false  (bool)
  volume.label = ''  (string)
  info.capabilities = { 'volume', 'block' } (string list)
  volume.is_partition = false  (bool)
  volume.mount_point = '/media/disk'  (string)
  info.category = 'volume'  (string)
  info.product = 'Volume (vfat)'  (string)
  volume.is_disc = false  (bool)
  volume.is_mounted = true  (bool)
  block.is_volume = true  (bool)
  volume.linux.is_device_mapper = false  (bool)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_Multi_Flash_Reader_058F0O1111B_0_0'  (string)
  info.parent = '/org/freedesktop/Hal/devices/storage_serial_Multi_Flash_Reader_058F0O1111B_0_0'  (string)
  volume.block_size = 512  (0x200)  (int)
  volume.num_blocks = 990976  (0xf1f00)  (int)
  volume.fsversion = 'FAT16'  (string)
  block.device = '/dev/sdd'  (string)
  volume.uuid = '58F4-B889'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.is_mounted_read_only = false  (bool)
  org.freedesktop.Hal.Device.Volume.method_argnames = { 'mount_point fstype extra_options', 'extra_options', 'extra_options' } (string list)
  info.interfaces = { 'org.freedesktop.Hal.Device.Volume' } (string list)
  storage.model = ''  (string)
  volume.size = 507379712  (0x1e3e0000)  (uint64)
  info.udi = '/org/freedesktop/Hal/devices/volume_uuid_58F4_B889'  (string)
  volume.mount.valid_options = { 'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 'shortname=', 'codepage=', 'iocharset=', 'umask=', 'dmask=', 'fmask=', 'uid=' } (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = { 'ssas', 'as', 'as' } (string list)
  block.major = 8  (0x8)  (int)
  volume.fstype = 'vfat'  (string)
  org.freedesktop.Hal.Device.Volume.method_execpaths = { 'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject' } (string list)
  volume.unmount.valid_options = { 'lazy' } (string list)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/sdd/fakevolume'  (string)
 
1: udi = '/org/freedesktop/Hal/devices/storage_serial_Multi_Flash_Reader_058F0O1111B_0_0'
  block.minor = 48  (0x30)  (int)
  storage.requires_eject = false  (bool)
  info.capabilities = { 'storage', 'block' } (string list)
  storage.bus = 'usb'  (string)
  storage.removable.media_available = true  (bool)
  info.category = 'storage'  (string)
  info.product = 'Flash Reader'  (string)
  storage.drive_type = 'disk'  (string)
  storage.hotpluggable = true  (bool)
  storage.partitioning_scheme = 'none'  (string)
  storage.physical_device = '/org/freedesktop/Hal/devices/usb_device_525_a4a1_noserial_if0'  (string)
  storage.vendor = 'Multi'  (string)
  storage.media_check_enabled = true  (bool)
  storage.removable.media_size = 507379712  (0x1e3e0000)  (uint64)
  block.is_volume = false  (bool)
  storage.firmware_version = '1.00'  (string)
  info.addons = { 'hald-addon-storage' } (string list)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_Multi_Flash_Reader_058F0O1111B_0_0'  (string)
  storage.serial = 'Multi_Flash_Reader_058F0O1111B-0:0'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_525_a4a1_noserial_if0_scsi_host_scsi_device_lun0'  (string)
  storage.size = 0  (0x0)  (uint64)
  block.device = '/dev/sdd'  (string)
  storage.no_partitions_hint = false  (bool)
  storage.removable = true  (bool)
  storage.lun = 0  (0x0)  (int)
  info.vendor = 'Multi'  (string)
  storage.originating_device = '/org/freedesktop/Hal/devices/usb_device_525_a4a1_noserial_if0'  (string)
  storage.model = 'Flash Reader'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_serial_Multi_Flash_Reader_058F0O1111B_0_0'  (string)
  block.major = 8  (0x8)  (int)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/sdd'  (string)
  storage.automount_enabled_hint = true  (bool)
 
...생략...

[bushi@rose ctl_test]$ mount | grep sdd
/dev/sdd on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=707)

정도로 자동 마운트되고, nautilus 가 떠서 보여줍니다.

OTL

댓글 첨부 파일: 
첨부파일 크기
Image icon removable_storage.png592.02 KB

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.