()ý
Home
Ȩ ȸҰ ý Ʈ ũ
 
 
ۼ : 07-07-16 13:51
HOW TO USE USB Storage in the Linux System
 ۾ :
ȸ : 4,985  

HOW TO USE USB Storage in the Linux System


 


USB Storage(USB޸ ũ) ϸ Ŀ ڵ νϰ ȴ.


̷ ȵ 쿡 Menual ̹ Loadingؾ߸ ִ.


USB Storage Linux SCSIũ νϱ Ŀ


fdisk ؼ Ȯϸ SCSIũ Target Name Ÿ Ȯ ִ.



1. lsmod ؼ ̹Ȯ
usb-uhci/usb-storage εǾ ִ ȮѴ.


Module                  Size  Used by    Not tainted
i830                   72024   1
agpgart                57752  11  (autoclean)
usbserial              23580   0  (autoclean) (unused)
parport_pc             18756   1  (autoclean)
lp                      8964   0  (autoclean)
parport                36832   1  (autoclean) [parport_pc lp]
autofs4                15928   0  (autoclean) (unused)
ds                      8576   2
yenta_socket           13792   2
pcmcia_core            56800   0  [ds yenta_socket]
audit                  89816   3
8139too                17384   0
mii                     3956   0  [8139too]
crc32                   3712   0  [8139too]
sg                     36204   0  (autoclean)
sr_mod                 17784   2  (autoclean)
microcode               5688   0  (autoclean)
ide-scsi               12336   1
scsi_mod              106408   3  [sg sr_mod ide-scsi]
ide-cd                 33920   0
cdrom                  32416   0  [sr_mod ide-cd]
keybdev                 2944   0  (unused)
mousedev                5524   1
hid                    22116   0  (unused)
input                   5888   0  [keybdev mousedev hid]
ehci-hcd               20008   0  (unused)
usb-uhci               25740   0  (unused)
usbcore                77376   1  [usbserial hid ehci-hcd usb-uhci]
ext3                   85736   2
jbd                    50604   2  [ext3]


2. USB ̹ LoadingѴ.
Linux:/>/sbin/modprobe usb-storage (USB Flash Memory DISK)


[Hancom Linux 4.0] /sbin/modprobe usb_storage


 


 


3. USB̹ LoadingĿ ũ ̺ Ȯ


USB̹ Loading Ŀ USB޸ ũ Linux O/S


νߴ Ȯϴ ̴. 3 Ȯ .
1) FDISK Ȯ
   fdisk -l ϸ USBũ SCSI̽ νѴ.
   ROOT/> fdisk -l
   Disk /dev/sda: 521 MB, 521142272 bytes
   32 heads, 32 sectors/track, 994 cylinders
   Units = cylinders of 1024 * 512 = 524288 bytes


      Device Boot    Start       End    Blocks   Id  System
   /dev/sda1   *         1       994    508912    6  FAT16


   Disk /dev/hda: 60.0 GB, 60011642880 bytes
   255 heads, 63 sectors/track, 7296 cylinders
   Units = cylinders of 16065 * 512 = 8225280 bytes


      Device Boot    Start       End    Blocks   Id  System
       /dev/hda1   *         1      3824  30716248+   7  HPFS/NTFS
    /dev/hda2          3825      7296  27888840    f  Win95 Ext'd (LBA)
    /dev/hda5          3825      6374  20482843+   7  HPFS/NTFS
    /dev/hda6          6375      6387    104391   83  Linux
    /dev/hda7          6388      6518   1052226   82  Linux swap
    /dev/hda8          6519      7296   6249253+  83  Linux


 2) LOG Message Ȯ
    α׸޽ Ȯϸ SCSI ̽ ν Ȯ ִ.
    tail -n 7 /var/log/messages
    Sep 22 17:27:26 localhost kernel: SCSI device sda: 1017856 512-byte hdwr sectors (521 MB)
    Sep 22 17:27:26 localhost kernel: sda: Write Protect is off
    Sep 22 17:27:26 localhost kernel:  sda: sda1
    Sep 22 17:27:26 localhost kernel: SCSI device sda: 1017856 512-byte hdwr sectors (521 MB)
    Sep 22 17:27:26 localhost kernel: sda: Write Protect is off
    Sep 22 17:27:26 localhost kernel:  sda: sda1
    Sep 22 17:27:27 localhost devlabel: devlabel service started/restarted


 3) PROC Ȯ
    USB̹ ε Ǹ PROC SCSIؿ usb-storage-0 ȴ.
     丮 1 Ǿ ִ ִ.
     Ͽ USB storage Ÿ. Ʒ Attached Yes Ǿ
    ִ Ȯ ִ.
    Linux/> ls /proc/scsi
    ide-scsi   scsi   sg   usb-storage-0
    Linux/> cat /proc/scsi/usb-storage-0/1
       Host scsi1: usb-storage
           Vendor: Imation
          Product: Flash Drive
    Serial Number: 21110499738793
         Protocol: Transparent SCSI
        Transport: Bulk
             GUID: 071800830021110499738793
         Attached: Yes


    [Hancom Linux 4.0] /proc/scsi/usb-storage/1 ȴ.



4.  USB̹ Ʈ
Linux:/> mount /dev/sda1 /mnt/flash
   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1      3824  30716248+   7  HPFS/NTFS
/dev/hda2          3825      7296  27888840    f  Win95 Ext'd (LBA)
/dev/hda5          3825      6374  20482843+   7  HPFS/NTFS
/dev/hda6          6375      6387    104391   83  Linux
/dev/hda7          6388      6518   1052226   82  Linux swap
/dev/hda8          6519      7296   6249253+  83  Linux
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda8             5.9G  4.4G  1.2G  79% /
/dev/hda6              99M  9.0M   85M  10% /boot
none                  246M     0  246M   0% /dev/shm
/dev/sda1             497M  3.5M  494M   1% /mnt/flash


5. USB 丮
1) sync;sync; umount /dev/sda1
2) modprobe -r usb-storage
[Hancom Linux 4.0] /sbin/modprobe -r usb_storage


 
 

Total 106
ȣ     ۾ ¥ ȸ
31 Red Hat Linux ϵ
2006/08/04 6101
30 DL380 G4 linux ġ.
2007/08/02 6083
29 linux rescue dd rescue
2007/08/16 5983
28 *.tar.bz2 Ǯ
2007/07/04 5929
27 linux MBR ϱ
2007/08/16 5832
26 LVM . (Logical Volume Manager) (2)
2005/12/07 5809
25 Losing some ticks... checking if CPU frequency changed
2008/07/02 5753
24 rsync .....
2005/12/01 5741
23 chkproc -v
2008/03/18 5723
22 linux remote backup
2006/04/04 5718
21
2007/01/04 5300
20 rsync õ Դϴ []
2006/12/21 5265
19 xmanager .
2007/05/04 5220
18 HOW TO USE USB Storage in the Linux System
2007/07/16 4986
17 yum
2008/04/15 4962
 1  2  3  4  5  6  7  8  
 
 
 
Administrator Login