LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mountinf EXT USB HDD (https://www.linuxquestions.org/questions/linux-newbie-8/mountinf-ext-usb-hdd-805436/)

valla 05-02-2010 06:50 AM

Mountinf EXT USB HDD
 
HI,

Am using Red Hat Enterprise Linux AS release 4 (Nahant Update 6)

Wen i try to mount Ext USB HDD its automatically getting mount on /media/usbdisk

#fdisk -l

Disk /dev/sdc: 500.1 GB, 500107837440 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 60801 488384001 c W95 FAT32 (LBA)

Wen i try to open it from GUI.. Means

1. Computer

3.External HDD

its showing mount error...

its already mouted on /media/usbdisk
I took the backup to this mount point...

i copied some files to this mount point...


den i try to umount it..
its not getting umount...

[root@hostname1 usbdisk]# umount -lfr /dev/sdc1

umount: /dev/sdc1: not mounted

[root@hostname1 usbdisk]# umount -lfr /media/usbdisk/

umount: /media/usbdisk/: not mounted
[root@hostname1 usbdisk]# ls

bprodata.tar.gz bproddb.tar.gz

wen i try from other machine its not showing this data..


[applmgr@*hostname2*2 usbdisk]$ ls -lsrt
total 10950784
2968500 -rw-r--r-- 1 root root 3036769327 Apr 29 18:46 prodora.tar.gz
2093764 -rw-r--r-- 1 root root 2141916410 Apr 29 18:51 prodcomn.tar.gz
5888520 -rw-r--r-- 1 root root 6023946204 Apr 29 19:09 prodappl.tar.gz
[applmgr@hostname2 usbdisk]$
here am noy able to find hostname1 data????

plz help me somebody....

Thanks.

smoker 05-02-2010 07:00 AM

Without the disk connected, what is the output of
Code:

ls -l /media/usbdisk
If there is any output, then you have copied the files to a directory called /media/usbdisk not the disk itself.

Just plug the disk in and it should appear on the desktop. Click it to open it, then copy your files to that place. Then right click the icon on the desktop and select unmount volume.

valla 05-02-2010 07:10 AM

Thanks for the reply..
am usong this from long time..

ls -l /media/usbdisk


blank..


Am not finding any Icon in the desktop after i connect the USB EXT HDD.

I can find icon inside the Computer (wen i click this)..
Am able to find USB EXT HDD
wen i click its not getting open... .
it throws error like it is already mounted on /media/usbdisk

saikee 05-02-2010 07:12 AM

If you have successfully unmounted a partition the kernel has to tell you that the device isn't mounted if you issue the same command again!

A partition, as in your case, can be unmounted by "umount" command either with
Code:

umount /dev/sdc1
or
Code:

/media/usbdisk
The kernel does not need to know the other parameters for unmounting it. It will still be shown in "fdisk -l" until you unplug the device or power down it.

In Linux you can manually mount and unmount a device (partition) any number of times. Issuing a command "ls /media/usbdisk" should tell you the status of it or if you open a file manager in the desktop you can actually see the files disappear and re-appear in front of your eyes.

fernfrancis 05-02-2010 07:49 AM

to unmount the device forcefully use this replace hda2 with ur mount point
fuser -km /mnt/hda2
hope this helps

if u want to mount u can refer my blog fernfrancis.blogspot.com

valla 05-02-2010 08:57 AM

Thanks 4 reply


[root@histname3 /]# umount -lfr /media/usbdisk/

umount: /media/usbdisk/: not mounted

[root@hostname3 /]# umount -lfr /dev/sdc1

umount: /dev/sdc1: not mounted


All times are GMT -5. The time now is 06:22 PM.