Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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 .
[/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?
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?
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.
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 $
$
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.