LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-23-2014, 03:29 PM   #1
cappycappy53
LQ Newbie
 
Registered: Dec 2013
Location: Vancouver Island
Distribution: Mint 17 Qiana KDE
Posts: 24

Rep: Reputation: Disabled
Mounting a Hard Disk


All the previous entries for this that I can find are all at least 10 years old. I am working in Linux Mint 17 Qiana KDE ver 4.13.1. I am trying to mount several hard drives that are not recognized by Dolphin. I have tried to make a directory in the mnt directory in order to have a place for the drive once it is mounted. I consistently get a message "Permission denied". When I use the mount command I get a message that "mount: can't find /dev/sdd in /etc/fstab or /etc/mtab". Doesn't matter if I am in the root or mnt or dev directories. I am a linux newby and maybe I should be over there. Eventually I want to place my Home directory on one of these newly mounted drives. Any help would be greatly appreciated.
 
Old 06-23-2014, 04:07 PM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
have you tried runing
Quote:
sudo dolphin
and than changing permissions..?

what filesystem use the disks?
 
Old 06-23-2014, 04:48 PM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
you need to create mount points (folders) for them in the /media directory (eg: /media/{whatever}), than chmod those folders as 777 (chmod 777 /media/{whatever}) as root
then
ad an entry for them in /etc/fstab
e.g.
Code:
/dev/sdd1   /media/{whatever}    ext4(or whatever it is formatted as)    defaults 1 2 (or 0 0 for non linux volumes)
this will mount them automatically on the next reboot and you should then have permission to read/write them

there are other options which you can use in place of defaults to make the folder user mountable/unmountable, though i can't think of them off hand, try running 'man fstab' in a terminal window, this should help.
 
Old 06-23-2014, 08:31 PM   #4
cappycappy53
LQ Newbie
 
Registered: Dec 2013
Location: Vancouver Island
Distribution: Mint 17 Qiana KDE
Posts: 24

Original Poster
Rep: Reputation: Disabled
I really did try, but they would not mount on reboot. I created mount points, but I am not sure whether I did the chmod 777 correctly. I then modified the fstab file. However on bootup the process hung with a choice to skip or modify the mount process. I had to skip as I could not understand what I had to do. I am probably close but no cigar. It is very frustrating for me as I have used an afternoon and not been successful. I am getting on in years and I will rather die before going back to Windows. I think I know how out of tune windows is and I am not really very fluent in Linux. I like that analogy because my wife plays cello in several orchestras.
 
Old 06-23-2014, 08:35 PM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

can you post the exact line that you put in your /etc/fstab? I guess a modification is needed.

Evo2.
 
Old 06-23-2014, 08:38 PM   #6
cappycappy53
LQ Newbie
 
Registered: Dec 2013
Location: Vancouver Island
Distribution: Mint 17 Qiana KDE
Posts: 24

Original Poster
Rep: Reputation: Disabled
/dev/sda2 /media/sda2 ext4 defaults 1 2
/dev/sdd /media/sdd ntsf defaults 0 0
/dev/sde1 /media/sdd ntsf defaults 0 0

I have three drives that I am trying to mount. Here is the whole file

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=ee5d12b0-38c5-4e79-af71-eb932f5c0d6e / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=89666810-cc11-4fc4-a5ac-641fac045883 none swap sw 0 0
/dev/sda2 /media/sda2 ext4 defaults 1 2
/dev/sdd /media/sdd ntsf defaults 0 0
/dev/sde1 /media/sdd ntsf defaults 0 0
 
Old 06-23-2014, 08:45 PM   #7
cappycappy53
LQ Newbie
 
Registered: Dec 2013
Location: Vancouver Island
Distribution: Mint 17 Qiana KDE
Posts: 24

Original Poster
Rep: Reputation: Disabled
I am not 100% sure of the file system on all the drives, but I usually format them ntsf.
 
Old 06-23-2014, 08:47 PM   #8
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by cappycappy53 View Post
/dev/sda2 /media/sda2 ext4 defaults 1 2
/dev/sdd /media/sdd ntsf defaults 0 0
/dev/sde1 /media/sdd ntsf defaults 0 0

I have three drives that I am trying to mount. Here is the whole file

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=ee5d12b0-38c5-4e79-af71-eb932f5c0d6e / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=89666810-cc11-4fc4-a5ac-641fac045883 none swap sw 0 0
/dev/sda2 /media/sda2 ext4 defaults 1 2
/dev/sdd /media/sdd ntsf defaults 0 0
/dev/sde1 /media/sdd ntsf defaults 0 0
looks like you made a typo, you put ntsf when you probably meant ntfs
 
Old 06-23-2014, 08:55 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

also you seem to be trying to mount two devices at the same mount point. Perhaps you should have:
Code:
/dev/sda2 /media/sda2 ext4 defaults 1 2
/dev/sdd /media/sdd ntfs defaults 0 0
/dev/sde1 /media/sde ntfs defaults 0 0
Then
Code:
sudo mkdir /media/sde
sudo chmod 777 /media/sde
After doing that please run the following
Code:
mount -a
and post any error messages.

Evo2.
 
Old 06-23-2014, 08:57 PM   #10
cappycappy53
LQ Newbie
 
Registered: Dec 2013
Location: Vancouver Island
Distribution: Mint 17 Qiana KDE
Posts: 24

Original Poster
Rep: Reputation: Disabled
I changed the typo and on bootup still get:

"Press S to skip mounting or M for mount recovery".

When I press M I get a root prompt. So I pressed S to boot.
 
Old 06-23-2014, 08:58 PM   #11
cappycappy53
LQ Newbie
 
Registered: Dec 2013
Location: Vancouver Island
Distribution: Mint 17 Qiana KDE
Posts: 24

Original Poster
Rep: Reputation: Disabled
Standby
 
Old 06-23-2014, 09:01 PM   #12
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

there is no need to reboot. Running "mount -a" will test it in the same way.

Evo2.
 
Old 06-23-2014, 09:09 PM   #13
cappycappy53
LQ Newbie
 
Registered: Dec 2013
Location: Vancouver Island
Distribution: Mint 17 Qiana KDE
Posts: 24

Original Poster
Rep: Reputation: Disabled
When I ran mount -a this is what I got:

sudo mount -a
[mntent]: line 1 in /etc/fstab is bad
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

NTFS signature is missing.
Failed to mount '/dev/sdd': Invalid argument
The device '/dev/sdd' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
NTFS signature is missing.
Failed to mount '/dev/sde1': Invalid argument
The device '/dev/sde1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?



Unfortunately I have to leave and won't be able to be back till tomorrow. I wish to thank all of you who have taken the time to help me.
 
Old 06-23-2014, 09:15 PM   #14
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

you are making progress. I guess there is some sort of typo in the first line of your /etc/fstab and that you have not provided the correct device names or filesystem types.

So, please post your /etc/fstab again so that we can look for the typo, and please post the output of the following command so that we can identify what paritions you really have.
Code:
sudo fdisk -l
Evo2.
 
Old 06-23-2014, 09:38 PM   #15
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by evo2 View Post
Hi,

also you seem to be trying to mount two devices at the same mount point. Perhaps you should have:
Code:
/dev/sda2 /media/sda2 ext4 defaults 1 2
/dev/sdd /media/sdd ntfs defaults 0 0
/dev/sde1 /media/sde ntfs defaults 0 0
Then
Code:
sudo mkdir /media/sde
sudo chmod 777 /media/sde
After doing that please run the following
Code:
mount -a
and post any error messages.

Evo2.
i can see line 2, /dev/sdd is a device node, not a partition
maybe /dev/sdd1?
 
  


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
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 11:30 AM
mounting hard disk with other OS nelo Linux - Hardware 1 10-12-2005 07:59 PM
mounting hard disk Olle Linux - Newbie 8 01-22-2005 11:31 AM
Hard Disk mounting !! ShaanAli Solaris / OpenSolaris 14 08-07-2004 02:04 AM
Mounting another hard disk Bluebottle Linux - General 3 02-08-2003 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:34 PM.

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