LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2013, 02:52 PM   #16
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551

give me a ls -laF of /media
 
Old 07-25-2013, 03:02 PM   #17
NTH
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lleb View Post
give me a ls -laF of /media
root@ubuntu:~# ls -laF /media/
total 16
drwxr-xr-x 3 root root 4096 2013-07-24 14:07 ./
drwxr-xr-x 23 root root 4096 2013-07-05 10:13 ../
-rw-r--r-- 1 root root 18 2013-07-22 17:07 .created_by_python-fstab
drwxr-xr-x 2 root root 4096 2013-07-23 10:23 external/
 
Old 07-25-2013, 03:05 PM   #18
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
ok thats a good sign. verify that nothing is in /media/external and rm -rf that directory, then recreate it and see if that helps any with the mounts. i doubt it, but worth the shot.

also keep in mind that if there is data in /media/external before you mount that can, not always, but can cause issues with mount.
 
Old 07-25-2013, 03:12 PM   #19
NTH
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lleb View Post
ok thats a good sign. verify that nothing is in /media/external and rm -rf that directory, then recreate it and see if that helps any with the mounts. i doubt it, but worth the shot.

also keep in mind that if there is data in /media/external before you mount that can, not always, but can cause issues with mount.
I recreated /media/external and tried to mount again but was not successful.
 
Old 07-25-2013, 03:15 PM   #20
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
ok lets see if we can force some kind of error. try to mount the drive without the use of the -t flag. print the results. again use the code flags... if you are not aware how, and you are not by your posts, its simple: [ code ] [ / code ] just remove the spaces. put your code between them.
 
Old 07-25-2013, 03:26 PM   #21
NTH
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lleb View Post
ok lets see if we can force some kind of error. try to mount the drive without the use of the -t flag. print the results. again use the code flags... if you are not aware how, and you are not by your posts, its simple: [ code ] [ / code ] just remove the spaces. put your code between them.
Here it is. It seems -t flag is essential:

Code:
root@ubuntu:~# mount ntfs-3g /dev/sdc1 /media/external
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
One can change the type of mount containing the directory dir:
       mount --make-shared dir
       mount --make-slave dir
       mount --make-private dir
       mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
       mount --make-rshared dir
       mount --make-rslave dir
       mount --make-rprivate dir
       mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .
 
Old 07-25-2013, 03:29 PM   #22
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
yes, just mount /source/ /target/ dont use the ntfs-3g at all.
 
Old 07-25-2013, 03:31 PM   #23
NTH
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lleb View Post
yes, just mount /source/ /target/ dont use the ntfs-3g at all.
Code:
root@ubuntu:~# mount /dev/sdc1 /media/external
root@ubuntu:~# df -Th
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda2     ext4     19G   12G  5.9G  67% /
none      devtmpfs     12G  328K   12G   1% /dev
none         tmpfs     12G   24K   12G   1% /dev/shm
none         tmpfs     12G   96K   12G   1% /var/run
none         tmpfs     12G     0   12G   0% /var/lock
none         tmpfs     12G     0   12G   0% /lib/init/rw
/dev/sda1     ext2     89M   34M   50M  41% /boot
/dev/sda5     ext3    892G  524G  323G  62% /home
/dev/sdb1     ext3    917G  598G  273G  69% /mnt/data0
 
Old 07-25-2013, 03:35 PM   #24
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
ok, something is not functioning properly in you computer. that should have generated an error of wrong file system type.

---------- Post added 07-25-13 at 04:35 PM ----------

do you have any other computers that you can connect that drive to. also is there any specific reason for NOT formatting the drive to ext3 or 4?
 
Old 07-25-2013, 05:37 PM   #25
NTH
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lleb View Post
[/COLOR]do you have any other computers that you can connect that drive to. also is there any specific reason for NOT formatting the drive to ext3 or 4?
I checked it in windows and it's working fine. I thought that I may use the drive in both windows and linux but it seems that I probably should format it to ext3 or 4. Is there a preference between the two?
 
Old 07-25-2013, 05:49 PM   #26
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Try a totally different mountpoint from /media. If it's not there already, "mkdir /mnt". Then "mkdir /mnt/external" Then try to mount it there.
 
Old 07-25-2013, 06:00 PM   #27
NTH
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by haertig View Post
Try a totally different mountpoint from /media. If it's not there already, "mkdir /mnt". Then "mkdir /mnt/external" Then try to mount it there.
I Just tried it with no luck. like before, no errors and the drive does not show up in df -hT.
 
Old 07-25-2013, 07:19 PM   #28
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Wow, you really have a weird one there. dmesg shows the drive was recognized. fdisk sees it too. But mount fails, silently.

Maybe immediately after the mount command, before running any thing else, type "echo $?". That should give you the exit value from the immediately previous command (in your case, the mount command). Normally that would be 0 (zero) for a successful mount. What do you get?
 
Old 07-25-2013, 07:23 PM   #29
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
If this were Windows, Microsoft tech support would tell you: (1) reboot, (2) reinstall the operating system. But this isn't Windows, so I don't know what to recommend at this point.
 
Old 07-25-2013, 07:36 PM   #30
NTH
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by haertig View Post
Wow, you really have a weird one there. dmesg shows the drive was recognized. fdisk sees it too. But mount fails, silently.

Maybe immediately after the mount command, before running any thing else, type "echo $?". That should give you the exit value from the immediately previous command (in your case, the mount command). Normally that would be 0 (zero) for a successful mount. What do you get?
Code:
root@ubuntu:~# mount -t ntfs-3g /dev/sdc1 /mnt/external
root@ubuntu:~# echo $
$
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
External Hard Drive not Mounting beetleman64 Linux - Hardware 1 05-15-2010 10:02 AM
mounting external hard drive perrywillis@cox.net SUSE / openSUSE 5 10-16-2006 01:22 AM
mounting an external hard drive adin Linux - Hardware 1 01-04-2005 04:18 AM
external hard drive mounting. gonus Debian 5 08-27-2004 02:51 PM
external hard drive mounting blahJake Debian 3 04-02-2004 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration