리눅스에서는 USB드라이브나 CD롬 드라이브는 마운트를 시켜 사용하는데요.
CD롬이야 /mnt/cdrom으로 경로가 생성되는 것 같습니다만,
USB드라이브는 무슨 이름으로 생성되는지 잘 모르겠네요.
USB드라이브의 경로는 어떻게 생성되고, 뭐뭐가 있는지 알아낼려면 어떻게 해야 할까요?
우분투의 경우 자동마운트시 /media/cdrom으로 생성됩니다. 마찬가지로 외장형하드도 /media/ 아래에 생성됩니다. 내장하드디스크에서 마운트포인트를 지정하지 않으면 그것도..
물론 fstab을 수정하여 바꿀수 있습니다.
USB메모리의 자동 마운트 위치는 /media/usbdisk 입니다.
최근 배포본들은 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
텍스트 포맷에 대한 자세한 정보
<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]
우분투의 경우
우분투의 경우 자동마운트시 /media/cdrom으로 생성됩니다.
마찬가지로 외장형하드도 /media/ 아래에 생성됩니다.
내장하드디스크에서 마운트포인트를 지정하지 않으면 그것도..
물론 fstab을 수정하여 바꿀수 있습니다.
USB메모리의 자동
USB메모리의 자동 마운트 위치는 /media/usbdisk 입니다.
최근 배포본들은 hal,
최근 배포본들은 hal, dbus, dbus frontend 등이 섞여 돌아갑니다.
사용하시는 wm 의 제어판 비스무리한 어플리케이션에서 확인하고 조정하시는 게 편합니다.
예를 들어 fedora 7, gnome 2.14 에서 USB memory card reader 를 꽂을 경우,
정도로 자동 마운트되고, nautilus 가 떠서 보여줍니다.
OTL
댓글 달기