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.
Using Linux Mint Cinnamon Victoria and an OEM "B75 Ver 1.41" motherboard in an OEM case with an AMI "4.6.5 09/01/2021" BIOS.
My old Dell computer's motherboard stopped working so I bought a new OEM computer, as described above. I replaced the Windows10 OS with Linux Mint Cinnamon Victoria.
My old Dell computer had two hard drives, and I have put them in the new OEM computer, meaning it now has three HDDs. I have deleted the old Linux Mint operating system from the old Dell HDD, leaving just the folder with my files in it.
But the file manager appears to show that there is a mysterious extra very small HDD.
The unexpected fourth HDD has a capacity of 537 MB - mega-bytes not GB. The details copied from Properties are:
OEM PCs often have built-in media readers. You could have one with a small inserted memory card with FAT filesystem and not even notice without looking for such. If you mount the mystery device and run tree command on its mount point, what is its input/output?
The internet tells me that device IDs are obtained by typing "xinput list" in a terminal. With only tthe mystery HDD mounted, this is what I got, but it does not seem to mention any HDD.
Code:
xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ USB OPTICAL MOUSE id=8 [slave pointer (2)]
⎜ ↳ SEM USB Keyboard Consumer Control id=10 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ SEM USB Keyboard id=9 [slave keyboard (3)]
↳ SEM USB Keyboard System Control id=11 [slave keyboard (3)]
↳ SEM USB Keyboard Consumer Control id=12 [slave keyboard (3)]
"If you mount the mystery device and run tree command on its mount point, what is its input/output?"
I know how to mount the mystery HDD by clicking on it in ther file manager, but please explain how to do the other things.
"What is the output of this command?"
Even with the mystery HDD mounted, this is the result:
Code:
fdisk -l
fdisk: cannot open /dev/sda: Permission denied
fdisk: cannot open /dev/sdb: Permission denied
fdisk: cannot open /dev/sdc: Permission denied
The internet tells me that device IDs are obtained by typing "xinput list" in a terminal.
No, that's input devices. Disk devices are best obtained using:
Code:
sudo /sbin/fdisk -l
As you have already noticed, the fdisk command needs root access, although the error messages you received are also informative. Clearly you have 3 partitions on your hard drive. fdisk will show you their size and type. But I am virtually certain already that the small partition is your EFI system partition because these are typically sized in MB and not GB.
Any new motherboard will have a UEFI and not a BIOS. UEFIs can emulate a traditional BIOS and boot from the mbr but natively they boot from files installed on the ESP. The filetype of the ESP is always vfat and you should be able to mount it on /boot/efi and look at its contents. Probably you will find a grub.efi file and your kernel and initrd, also a BOOT directory containing boot files for Windows
[list=1][*]Open a terminal emulator window[*]type tree[*]type a space[*]copy the name of the mount point from the file manager[*]paste it into the terminal window[*]press <RETURN>
....
I typed tree in the terminal but got -
Code:
Command 'tree' not found, but can be installed with:
sudo apt install tree
Disklabel type: gpt
Disk identifier: 7D462EA4-BD89-47E1-9AB7-51734DCE0BBD
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 1054719 1050624 513M EFI System
/dev/sda3 1054720 1953523711 1952468992 931G Linux filesystem
So this hard drive has been set up to boot in both ways. The initial BIOS boot partition is for a legacy boot in which GRUB is installed to the mbr. Actually only a stub of GRUB would go in there as there's not much space. The overflow goes onto that BIOS boot partition. On an old-fashioned DOS disk, it would go into the gap between the mbr and the first partition, but a gpt disk doesn't have that space, so you need a special partition instead. The second partition is your EFI system partition for a native UEFI boot. If you installed GRUB there rather than to the whole drive, it would appear as a normal file called grub.efi. And the third one is presumably your root partition.
Quote:
Disk /dev/sdb: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disklabel type: dos
Disk identifier: 0xce7ace7a
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 63 1953503999 1953503937 931.5G 7 HPFS/NTFS/exFAT
That's some kind of Windows data drive.
Quote:
Disk /dev/sdc: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disklabel type: dos
Disk identifier: 0xc7a29918
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2048 1050623 1048576 512M b W95 FAT32
/dev/sdc2 1052670 976771071 975718402 465.3G 5 Extended
/dev/sdc5 1052672 976771071 975718400 465.3G 83 Linux
Old-fashioned DOS disk which seems to be dual-booting Windows-95 and Linux.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.