LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mount USB Drive (https://www.linuxquestions.org/questions/linux-newbie-8/mount-usb-drive-917728/)

kjgeorge 12-08-2011 06:59 AM

Mount USB Drive
 
Hello,

I have connected a USB drive to my Redhat linux server and I am unable to mount. Because it is an NTFS partition I am not able to mount. The version I am using is 2.6.18-128.el5 #1 SMP x86_64 x86_64 x86_64 GNU/Linux.

Can someone help me to install fuse and lib packages?

I have no idea which version I should download?

Thanks
KJ

corp769 12-08-2011 07:07 AM

You need to install ntfs-3g in order to mount NTFS partitions.

Cheers,

Josh

kjgeorge 12-08-2011 07:12 AM

Quote:

Originally Posted by corp769 (Post 4545104)
You need to install ntfs-3g in order to mount NTFS partitions.

Cheers,

Josh


Yes, I know I have to install Ntfs-3g, but now sure which version I should install.

Thanks
KJ

asimba 12-08-2011 07:13 AM

what error do you get when you try to mount this drive - could you possibly post a screenshot.

also if you could please run following command (as recommended by corp769]
Code:

rpm -qa | grep -i ntfs-3g

corp769 12-08-2011 07:20 AM

How are you trying to install it? By using either your package manager or rpm's off of the internet, you will want the latest version..................

kjgeorge 12-08-2011 08:31 AM

Quote:

Originally Posted by corp769 (Post 4545116)
How are you trying to install it? By using either your package manager or rpm's off of the internet, you will want the latest version..................

I am trying to download install. But not sure which version I should download?

I used the below commands

mount -t ntfs /dev/sdc1 /mnt/USB

mount -t ntfs-3g /dev/sdc1 /mnt/USB/


I get this error message : mount: unknown filesystem type 'ntfs'

Thanks
KJ

asimba 12-08-2011 08:33 AM

I think you should have checked for package before installing it.
If it is already installed - you just might want to update it -

But even before updating it you should be able to mount if its already installed.

Sorry for hassle

kjgeorge 12-08-2011 08:36 AM

How do I check whether I have already installed or no?

Thanks
KJ

asimba 12-08-2011 08:50 AM

Code:

rpm -qa | grep -i ntfs

kjgeorge 12-08-2011 08:53 AM

I used the same command and there is no output

asimba 12-08-2011 09:02 AM

:) Indeed you dont have required package.

Do you have Red Hat Subscription ? Are you paying Redhat for Support ?

If yes - you might want to check redhat support - if installing software from sources other then redhat is going to impact support in anyway


http://rpmfind.net/linux/rpm2html/se...submit=Search+...

http://www.tuxera.com/community/ntfs-3g-download/

kjgeorge 12-08-2011 09:10 AM

I don't have Redhat subscription, no contract.

asimba 12-08-2011 09:31 AM

then you could always go to rpmfind.net and search for ntfs-3g and download and install it.

jefro 12-08-2011 05:51 PM

You should be able to mount it read only with stock kernel if that is all you need to do.

kjgeorge 12-08-2011 10:53 PM

After installing the ntfs-3g packages I get the below error messages

[root@localhost ~]# mount -t ntfs-3g /dev/sdc1 /mnt/USB/
FATAL: Module fuse not found.
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root
[root@localhost ~]# modprobe fuse
FATAL: Module fuse not found.

Can someone help me?

asimba 12-09-2011 12:29 AM

try installing fuse

yum install -y fuse

kjgeorge 12-09-2011 01:00 AM

I got the below message

[root@localhost ~]# yum install -y fuse
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
Package fuse-2.7.4-8_12.el4.x86_64 installed and not available
Nothing to do

asimba 12-09-2011 02:59 AM

do me a favor please - please paste result of

rpm -qa | grep -i ntfs

Need to verify if package indeed is meant for 64 bit RHEL 5


Ooops missed out architechture specific command

rpm -qa --qf "%{n}-%{arch}\n" | grep -i ntfs

kjgeorge 12-09-2011 04:06 AM

[root@localhost ~]# rpm -qa | grep -i ntfs
ntfs-3g-devel-2011.4.12-1.el4.pp
ntfs-3g-2011.4.12-1.el4.pp
ntfs-3g-libs-2011.4.12-1.el4.pp
[root@localhost ~]#



[root@localhost ~]# rpm -qa --qf "%{n}-%{arch}\n" | grep -i ntfs
ntfs-3g-devel-x86_64
ntfs-3g-x86_64
ntfs-3g-libs-x86_64
[root@localhost ~]#


Thank you for all your help

corp769 12-09-2011 09:07 AM

Wow... After being out of the loop for a bit, there seems to be much of nothing going on?

Give me the results of the following:
Code:

uname -a
mount
lsusb


kjgeorge 12-09-2011 09:11 AM

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]#

[root@localhost ~]# mount
/dev/mapper/VolGroup01-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sdb1 on /NewHD type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
[root@localhost ~]#


[root@localhost ~]# lsusb
Bus 001 Device 004: ID 0bc2:3000 Seagate RSS LLC
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 09ae:0002 Tripp Lite
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
[root@localhost ~]#


Thanks again
KJ

corp769 12-09-2011 09:21 AM

Ok, moving on, now post the output of the following:
Code:

tail /var/log/messages
ls -al /dev/sd*

This may be too much, but I want a good visual. I'm just helping you out, along with showing you what I am doing so you understand a bit on how to do this manually. And please use code tags!

kjgeorge 12-09-2011 09:56 AM

[root@localhost ~]# tail /var/log/messages
Dec 9 10:52:11 localhost kernel: Buffer I/O error on device sdc, logical block 0
Dec 9 10:52:11 localhost kernel: Buffer I/O error on device sdc, logical block 1
Dec 9 10:52:11 localhost kernel: Buffer I/O error on device sdc, logical block 2
Dec 9 10:52:11 localhost kernel: Buffer I/O error on device sdc, logical block 3
Dec 9 13:32:28 localhost gconfd (rajagopal-4731): starting (version 2.14.0), pid 4731 user 'rajagopal'
Dec 9 13:32:28 localhost gconfd (rajagopal-4731): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0
Dec 9 13:32:28 localhost gconfd (rajagopal-4731): Resolved address "xml:readwrite:/home/rajagopal/.gconf" to a writable configuration source at position 1
Dec 9 13:32:28 localhost gconfd (rajagopal-4731): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at position 2
Dec 9 15:34:58 localhost gconfd (rajagopal-4731): GConf server is not in use, shutting down.
Dec 9 15:34:58 localhost gconfd (rajagopal-4731): Exiting



[root@localhost ~]# ls -al /dev/sd*
brw-r----- 1 root disk 8, 0 Dec 9 07:59 /dev/sda
brw-r----- 1 root disk 8, 1 Dec 9 07:59 /dev/sda1
brw-r----- 1 root disk 8, 2 Dec 9 07:59 /dev/sda2
brw-r----- 1 root disk 8, 16 Dec 9 07:59 /dev/sdb
brw-r----- 1 root disk 8, 17 Dec 9 07:59 /dev/sdb1
brw-r----- 1 root disk 8, 32 Dec 9 10:20 /dev/sdc
brw-r----- 1 root disk 8, 33 Dec 9 10:21 /dev/sdc1
[root@localhost ~]#

corp769 12-09-2011 10:00 AM

Ok, /dev/sdc is your block device; sdc1 is the partition you need to mount. Perform the following:
Code:

mkdir /mnt/exthd
mount /dev/sdc1 /mnt/exthd

Now if this isn't allowing you to mount it, then mount it like so:
Code:

mount -t ntfs /dev/sdc1 /mnt/exthd

kjgeorge 12-09-2011 12:16 PM

No luck, I got the below message

[root@localhost ~]# mkdir /mnt/exthd
[root@localhost ~]# mount /dev/sdc1 /mnt/exthd
mount: you must specify the filesystem type
[root@localhost ~]# mount -t ntfs /dev/sdc1 /mnt/exthd
mount: unknown filesystem type 'ntfs'
[root@localhost ~]#

corp769 12-09-2011 12:27 PM

Oops, use ntfs-3g. I know this is repetitive, but there were mixed answers before.

kjgeorge 12-09-2011 06:08 PM

I had forgot to tell you, I used ntfs-3g and it was giving same error. Fuse is missing

asimba 12-09-2011 11:26 PM

could you please run following for me and paste results

Code:

lsmod

kjgeorge 12-10-2011 02:02 AM

[root@localhost ~]# lsmod
Module Size Used by
nls_utf8 35137 0
hfsplus 111817 0
autofs4 57033 2
hidp 83521 2
rfcomm 104809 0
l2cap 89281 10 hidp,rfcomm
bluetooth 118597 5 hidp,rfcomm,l2cap
sunrpc 197897 1
dm_multipath 55257 0
scsi_dh 41665 1 dm_multipath
video 53197 0
hwmon 36553 0
backlight 39873 1 video
sbs 49921 0
i2c_ec 38593 1 sbs
button 40545 0
battery 43849 0
asus_acpi 50917 0
acpi_memhotplug 40133 0
ac 38729 0
ipv6 424609 30
xfrm_nalgo 43333 1 ipv6
crypto_api 42945 1 xfrm_nalgo
lp 47121 0
i2c_i801 41813 0
i2c_core 56129 2 i2c_ec,i2c_i801
parport_pc 62312 1
ide_cd 73825 0
shpchp 70765 0
floppy 95465 0
e1000e 145809 0
usb_storage 116641 0
parport 73165 2 lp,parport_pc
i5000_edac 43465 0
edac_mc 60193 1 i5000_edac
pcspkr 36289 0
serio_raw 40517 0
cdrom 68713 1 ide_cd
sg 69993 0
dm_raid45 99025 0
dm_message 36161 1 dm_raid45
dm_region_hash 46145 1 dm_raid45
dm_mem_cache 38977 1 dm_raid45
dm_snapshot 51465 0
dm_zero 35265 0
dm_mirror 53065 0
dm_log 44865 3 dm_raid45,dm_region_hash,dm_mirror
dm_mod 100369 11 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log
ata_piix 56901 3
libata 208721 1 ata_piix
sd_mod 56385 5
scsi_mod 196569 5 scsi_dh,usb_storage,sg,libata,sd_mod
ext3 168017 3
jbd 94257 1 ext3
uhci_hcd 57433 0
ohci_hcd 55925 0
ehci_hcd 65741 0
[root@localhost ~]#

asimba 12-10-2011 12:02 PM

Please execute following and try mounting again.
Code:

yum install dkms dkms-fuse
Alternate Source - try rpmfind.net

michaelk 12-10-2011 12:20 PM

The OP is not registered with RHN i.e. not a paid subscriber and therefore can not use yum (see post #12,17).

Navigate to your RHEL version and download fuse.
http://packages.atrpms.net/dist/

If you are not planning on paying for RHEL may I suggest using CentOS.


All times are GMT -5. The time now is 08:34 AM.