RSS2.0

RHCE RHCT Exam: How to mount USB drive on RHEL4

Thursday, April 27, 2006

RHCE RHCT Exam: How to mount USB drive on Redhat enterprise Linux server (RHEL4) :


Make Sure USB drive is connnected right to your Linux machine/server , i have plugged in USB thumb drive. Before connecting USB drive do a tail -f /var/log/messages , Redhat Linux sees USB drive as a SCSI device so device will be named as "sdxxx" :
[root@ice ~]# tail -f /var/log/messages
Apr 27 21:52:30 ice kernel: Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
Apr 27 21:52:30 ice kernel: usbcore: registered new driver usb-storage
Apr 27 21:52:30 ice kernel: sdb: assuming drive cache: write through
Apr 27 21:52:30 ice kernel: sdb: sdb1

#df -h
/dev/sdb1 124M 101M 24M 82% /media/usbdisk

USB is mounted as /dev/sdb1

0 comments: