LinuxQuestions.org
Visit Jeremy's Blog.
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 04-08-2018, 06:37 PM   #1
Bgt14
LQ Newbie
 
Registered: Apr 2018
Posts: 5

Rep: Reputation: Disabled
Trouble mounting internal HDD


I'm a new convert to Linux, just loaded Mint 18.3 last night and am now trying to add an 300GB HDD to my Linux desktop as a storage/data drive. The HDD was previously installed in this desktop as a D: drive when the desktop was Windows based and so it had a ntfs file system. I successfully reformatted the HDD today to ext4 but haven't figured out how to mount it as a D: drive in my Linux PC. Here is what I have done so far. Any help would be appreciated. Once again I'm brand new to Linux and not very confident yet with how things work.

Here is what I typed in terminal so far:
sudo mkdir /media/Data drive

sudo mount /dev/sda1 /media/Data drive

And this is what I see after typing lsblk:
Code:
NAME       MAJ:MIN     RM   SIZE      RO        TYPE        MOUNTPOINT
sdb          8:16      0    465.8G    0         disk
├─sdb2       8:18      0    1K        0         part
├─sdb5       8:21      0    8G        0         part         [SWAP]
└─sdb1       8:17      0    457.8G    0         part         /
sr0          11:0      1    1024M     0         rom  
fd0          2:0       1    4K        0         disk
sda          8:0       0    298.1G    0         disk
└─sda1       8:1       0    298.1G    0         part
When I look in the files folder, I see a floppy drive under 'Devices' (not sure why as I have a DVD drive but no floppy) but the 300GB internal HDD is not listed there. Thanks again for your help.
 
Old 04-09-2018, 06:34 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
Linux doesn't like spaces in file names, you may find your disk at /media/Data.

However, it would be better to automatically mount it when you boot the computer, in which case, it just needs to be added to your /etc/fstab file.
 
Old 04-09-2018, 06:46 AM   #3
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by Bgt14 View Post
sudo mount /dev/sda1 /media/Data drive
If /media/Data drive exists try using: "sudo mount /dev/sda1 /media/Data\ drive"

If it works I strongly suggest you change the name (Data-drive, Data_drive, etc) it will save you from headaches down the road

Ken
 
Old 04-09-2018, 07:18 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Welcome to LinuxQuestions.
Code:
NAME       MAJ:MIN     RM   SIZE      RO        TYPE        MOUNTPOINT
sda          8:0       0    298.1G    0         disk
└─sda1       8:1       0    298.1G    0         part
The partition is not mounted since the mount point is blank.

Code:
sudo mount /dev/sda1 /media/Data drive
Running this command "as is" should of created two directories. /media/Data and drive which would be a sub-directory located in the current working directory when you executed the command. I would expect when you ran the mount command there was some error message displayed.

As stated linux does not behave the same as windows. If names have spaces you either need to use quotes or \(escape) or the preferred method, use an underscore (_) or dash as suggested above.
 
Old 04-09-2018, 01:26 PM   #5
Bgt14
LQ Newbie
 
Registered: Apr 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you for your help.

I removed media/Data drive and created a new directory called media/data, then I typed: sudo mount dev/sda1 /media/data and received the following message: special device dev/sda1 does not exist, even though it shows up in 'Disks'. I am going to reformat and see what happens.

Thanks
Brian

Last edited by Bgt14; 04-09-2018 at 03:23 PM.
 
Old 04-09-2018, 03:15 PM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
Quote:
sudo mount dev/sda1 /media/data and received the following message: special device dev/sda1 does not exist?
That is the correct and expected output of the command you entered. The post above your last one has a correct example, you need a forward slash before dev, as:

Quote:
sudo mount /dev/sda1 /media/data
 
Old 04-10-2018, 06:54 AM   #7
Bgt14
LQ Newbie
 
Registered: Apr 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for your help. I was able to get the HDD mounted last night.
 
  


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
I'm Having Trouble Mounting multiple internal hard disk ApacheOmega Linux - Hardware 21 04-27-2015 07:49 AM
bit of a problem mounting second internal hdd firedancer Linux - Desktop 1 08-31-2007 05:31 PM
trouble mounting jfs hdd fatman Linux - Hardware 0 08-31-2006 03:14 AM
Trouble mounting hdd enclosure Eggroll822 Linux - Hardware 5 02-13-2006 01:13 AM
New HDD, mounting trouble Jukas Linux - General 5 01-17-2006 09:57 PM

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

All times are GMT -5. The time now is 06:26 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