Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
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.
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.
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.
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.