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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
08-26-2021, 08:04 AM
|
#1
|
LQ Newbie
Registered: Aug 2021
Location: I live in Italy
Posts: 2
Rep:
|
External HDD compatible with Linux OS
Hello everybody,
I've not a big experience with Linux.
I have a Lenovo R61 laptop where it is installed Linux Ubuntu 20.04 Focal Fossa.
CPU architecture is 64 bit.
I would like to find an external HDD to be connected to my laptop via USB port and I would like that HDD be compatible with my OS.
I bought a Seagate external HDD of 2 TB, but when I connect it to my laptop I cannot see it in the list of local disks connected to the computer.
It is simply undetected by the OS
Could please anyone point me to an external HDD that is compatible with my OS ?
I searched the internet and I found nothing interesting.
Could you please give me a hint ?
Thanks a lot for your help
Kind regards
|
|
|
08-27-2021, 05:02 PM
|
#2
|
Senior Member
Registered: May 2015
Location: Where ever needed
Distribution: Slackware/Salix while testing others
Posts: 1,718
|
I've always had good use with Seagate, plug and play for the most part. Just remember to format it correctly if you are using the external for Linux only or if you are sharing the drive with windows etc....
|
|
1 members found this post helpful.
|
08-27-2021, 07:59 PM
|
#3
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,661
|
as above
if this is a linux only hard drive then format it to ext 4 using "gparted" and use a GPT partition table
and if you plan on sharing it with a Microsoft Windows computer leave it as the default already formatted NTFS
it should auto mount just by plugging it in to the usb3 slot
Last edited by John VV; 08-27-2021 at 08:01 PM.
|
|
1 members found this post helpful.
|
08-27-2021, 09:03 PM
|
#4
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,717
|
I've had good experiences with Western Digital, Passport, and Iomega.
Before giving up on the Seagate, though, you might plug it in and run the command fdisk -l and see if it shows in the command output. You may have to run the command as root.
See man fdisk for more.
|
|
1 members found this post helpful.
|
08-27-2021, 11:34 PM
|
#5
|
Member
Registered: Dec 2016
Posts: 338
Rep:
|
Welcome to LQ! With enough 'digging', I'm sure you can get that drive to work.
(and your well-documented solution will help future searchers)
You just need some commands to find what is happening.
I found some debug ideas via this web-search: ubuntu detect external usb hdd
https://www.linuxquestions.org/quest...ge-4175575404/
(Use ' code tags' to post info; see also ' BB code' link below)
|
|
|
08-28-2021, 01:42 AM
|
#6
|
Member
Registered: Jun 2020
Posts: 609
Rep:
|
The easiest way to see if its working are a pair of ls commands:
Which will list all attached/detected USB devices - if you see a 'Seagate' device that's a good sign, but it may show up as some other more generic name too (just unplug it, re-run lsusb, plug it back in, go again, see what changes).
And then
Which will list block devices - you should see a 1.8T device (it won't be exactly 2.0T by linux's reckoning - nothing nefarious or defective has happened, don't worry) with no corresponding mount, likely because the drive is pre-formatted to NTFS (for Windows) or maybe some other file-system that is equally not well supported (e.g. if the drive was sold 'for mac' it may be formatted APFS). From the output of lsblk you can also find where the device exists in /dev (e.g. '/dev/sda') and then go about setting it up (probably running wipefs against it first to remove whatever default formatting).
Since you're in Ubuntu, you could also endrun all this terminal work and open GNOME Disks (called simply 'Disks' in Applications) and it should be right there, and go on with repartition/format and it will even generate fstab and crypttab entries automatically if you need.
EDIT - If it isn't obvious: if no likely candidate shows up on lsusb with the device attached and powered, you shouldn't expect anything to then appear on lsblk, and if you get that far and it isn't there, it's likely you got a defective drive - see if wherever you bought it from will take it back and give you your money or another one.
Last edited by obobskivich; 08-28-2021 at 01:44 AM.
|
|
|
08-28-2021, 03:25 PM
|
#7
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
Quote:
Originally Posted by trontron
Hello everybody,
I bought a Seagate external HDD of 2 TB, but when I connect it to my laptop I cannot see it in the list of local disks connected to the computer.
It is simply undetected by the OS
Could you please give me a hint ?
Thanks a lot for your help
Kind regards
|
I doubt it is undetected. I more rather suspect it likely that it was not partitioned and formatted so the system cannot mount it automatically.
In the output of lsblk you may see something like this.
Code:
sda 8:0 0 223.6G 0 disk
├─sda1 8:1 0 250M 0 part /boot/efi
├─sda2 8:2 0 2.9G 0 part /boot
├─sda3 8:3 0 150G 0 part
│ └─fedora-root 253:0 0 100G 0 lvm /
└─sda4 8:4 0 6.8G 0 part
sdb 8:16 0 2.7T 0 disk
Note that sda shows partitions and sdb does not.
Use gparted (or similar) and create a partition. Format it per the type of use (ext4 for linux only, ntfs for shared windows + linux access.)
Then the next time you plug it in it should be seen.
Last edited by computersavvy; 08-28-2021 at 04:59 PM.
|
|
|
08-29-2021, 01:58 AM
|
#8
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by trontron
I bought a Seagate external HDD of 2 TB, but when I connect it to my laptop I cannot see it in the list of local disks connected to the computer.
It is simply undetected by the OS
|
Wrong - it is undetected by the GUI.
Please follow these instructions and show us the relevant bit of output (NOT the complete dmesg log!!!). PLease use CODE tags for code, see my signature.
Quote:
Originally Posted by trontron
Could please anyone point me to an external HDD that is compatible with my OS ?
I searched the internet and I found nothing interesting.
|
Hardware manufacturers hardly advertise Linux compatibility. With USB hard drives it's more or less a given that they work under any OS. If you cannot find anyone reporting problems under Linux with a particular product, you should be fine.
|
|
|
08-29-2021, 08:04 AM
|
#9
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,199
|
Just my €0.02¢
In examining the current requirements, I found most 2.5" drives were under 500mA, and therefore should run off a usb3 port, but most 3.5" drives were not, and so needed a power supply.
Lower spec usb ports won't power any drive. They need a power supply. Be clear what you are using.
Last edited by business_kid; 08-29-2021 at 08:57 AM.
|
|
1 members found this post helpful.
|
08-31-2021, 07:24 AM
|
#10
|
Senior Member
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
|
Quote:
Originally Posted by trontron
I would like to find an external HDD to be connected to my laptop via USB port and I would like that HDD be compatible with my OS.
I bought a Seagate external HDD of 2 TB, but when I connect it to my laptop I cannot see it in the list of local disks connected to the computer.
It is simply undetected by the OS
Could please anyone point me to an external HDD that is compatible with my OS ?
|
This disk is compatible with Linux, most USB disks are.
Plug the disk in again and go to a terminal emulator and type
Code:
fdisk -l && dmesg | tail
you should find information about the disk there.
Ps. Be careful about just typing commands people tell you to, I could be telling you something bad, or you could lack understanding of what it does. To find out what a command and its options does, type command --help, ex and/or
|
|
|
09-02-2021, 01:05 PM
|
#11
|
LQ Newbie
Registered: Aug 2021
Location: I live in Italy
Posts: 2
Original Poster
Rep:
|
External HDD compatible with linux OS
Thanks to obobskivich, I followed your advices and I used the Disks utility to mount the external disk and format it with ext4 fs.
It worked like a charm !
Thanks again !
|
|
|
09-14-2021, 04:51 PM
|
#12
|
Member
Registered: Jun 2007
Distribution: Knoppix, antiX
Posts: 252
Rep:
|
USB Hard drives work with any operating system (nevertheless BIOS support is needed for drives > 2 TiB ).
What is more tricky is various software offered by manufacturers, like backup software, that is usually mswindows only.
|
|
|
09-14-2021, 09:32 PM
|
#13
|
Moderator
Registered: Mar 2008
Posts: 22,228
|
Thanks for the update and solution.
|
|
|
09-14-2021, 10:29 PM
|
#14
|
Senior Member
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,456
|
Quote:
Originally Posted by John VV
and if you plan on sharing it with a Microsoft Windows computer leave it as the default already formatted NTFS
|
not exfat?
|
|
|
All times are GMT -5. The time now is 08:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|