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.
I have Ubuntu 16.04. New computer System 76. I'm trying to install (mount?) an external hard drive. What do I put into the terminal? Isn't that where I start?
I tried "fdisk -l" (without the quotes) but it says Permission denied for all files in the list
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,363
Rep:
Quote:
Originally Posted by thyme4jb
I have Ubuntu 16.04. New computer System 76. I'm trying to install (mount?) an external hard drive. What do I put into the terminal? Isn't that where I start?
I tried "fdisk -l" (without the quotes) but it says Permission denied for all files in the list
... I'm kind of surprised it doesn't automatically mount when you plug it in - especially if you're using a distro like Ubuntu ... Do you know how your external drive is formatted ? It may be a simple question of making sure you have the proper file system driver installed (ntfs, fat32, etc. ..). I'm assuming it's using a USB interface ? Should auto-mount ... Check the format .... :
It has USB interface. I don't know how the ex. hard drive is formatted. All I know is, when it is plugged in an icon shows up labeling it as Toshiba EXT. When I open it there are 4 folders and 5 files: Folders are autorun, MacDriver, NTI, and Pogoplug PC. The files are autorun.inf, Declaration of Conformity.pdf, Quick Reference Guide.pdf; setup.exe, and Warranty.pdf.
I figured out how to get permission to see the list of fdisk. I have to be in root. Once I did that I put in some commands someone listed on another site and here it is what it looks like:
root@thyme4jb-Lemur:/home/thyme4jb# mkdir /mnt/usbdrive
root@thyme4jb-Lemur:/home/thyme4jb# mount -t /dev/sdb1 /mnt/usbdrive
mount: can't find /mnt/usbdrive in /etc/fstab
root@thyme4jb-Lemur:/home/thyme4jb#
I tried another Toshiba HD and it worked automatically. Didn't have to do anything. I don't know what is wrong here. I don't know anything about "having proper file system installed."
I just tried sudo mount/dev/sda1 /mnt and here is what shows up:
root@thyme4jb-Lemur:/home/thyme4jb# sudo mount /dev/sda1 /mnt
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,363
Rep:
Quote:
Originally Posted by thyme4jb
Hope I'm not ****ing up this new computer.
... don't worry :-) ... extremely unlikely. However, you just tried to mount either your system disk or some other active partition (/dev/sda1), which is already by definition mounted since you're using it (equivalent of trying to mount the C: drive in Windows ...). You need to figure out which device name your USB drive is known as. I again suggest you simply query the block devices by running the command lsblk -f (the -f switch lists the file system each device is using).
Once we know that, it'll be easier to figure out what's happening.
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,015
Rep:
Quote:
Originally Posted by thyme4jb
I just tried sudo mount/dev/sda1 /mnt and here is what shows up:
root@thyme4jb-Lemur:/home/thyme4jb# sudo mount /dev/sda1 /mnt
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.
That should have been sdb1 - you just tried to mount your first hard drive which is where your O/S is - & it looks like you've got MSWindows/NTFS as your first partition on it!?, so is this a dual boot machine? These things matter to be able to help you.
Would indicate a USB drive is being detected and assigned /dev/sda. From the other posts the drive is formatted as NTFS and is mounted which makes sense. The OP has not provided enough information. We assume that since it is a new system that Ubuntu is already installed and therefore the USB drive should be /sdb.
Ubuntu could be running from a live DVD.
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,015
Rep:
Quote:
Originally Posted by michaelk
The OP has not provided enough information. We assume that since it is a new system that Ubuntu is already installed and therefore the USB drive should be /sdb.
Ubuntu could be running from a live DVD.
Post the output of the command:
lsblk
Yes indeed, good thinking, & therefore also could be running from one external drive & the OP wants to connect yet another.
Thank you for all your suggestions. After trying and failing for hours, I gave up for the day. I re-visited this today and looked at the System 76 Support page and low and behold, there was the answer front and center. It didn't involve the terminal at all but creating a home folder, labeling it, going to the drives, selecting the correct one, formating it, setting the drive mount options, then saving and restarting. Worked like a charm. Again, thanks for your input. I always learn something new when I make mistakes first! The lessons stick with me, also.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.