43
votes
Accepted
How to turn off hard drive in Ubuntu?
sudo hdparm -Y /dev/sdX
where /dev/sdX is the device you'd like to turn off. You can also run sudo blkid to determine the device's 'fingerprint' (UUID), which would allow you to more reliably ...
26
votes
Accepted
How to find all hardlinks in a folder?
$ find -type f -links +1
That will show all regular files that have more than one link (name) to them. It will not tell you which names are linked to the same file, for that you could use -samefile ...
22
votes
Plex Media Server: Won't find media External Hard Drive
As several people have mentioned, the issue is likely due to the plex user not having the correct permissions. I had a similar problem, and was able to fix it using a few easy steps.
Open this ...
20
votes
How to mount an external HDD?
I find more cosy the use of lsblk instead of fdisk -l even because recently it is not always needed to specify the file system type a priory.
Moreover I want to mimic the behaviour of the mounting ...
19
votes
Accepted
Ubuntu mounts external ntfs drive as read-only?
This is a common question and has been answered numerous times in AskUbuntu (for example, here).
In short, you probably have fast boot turned on in Windows, which is why Linux will only mount it in ...
14
votes
Accepted
Unable to mount external NTFS HDDs due to duplicate UUID
To mount an NTFS drive we can also use a disk label only. We can safely change the label from Windows or by using ntfslabel . See
Constant UUID on USB install
How to rename partitions?
Needless to ...
14
votes
How to turn off hard drive in Ubuntu?
You likely have the udisks2 package installed; you can use
udisksctl power-off -b /dev/sdX
where /dev/sdX is the device you'd like to turn off.
From udisksctl man page (version 2.7.6):
power-off
...
14
votes
'No medium found' after issuing dd on an old external hard drive
In my case I was trying to do:
Insert USB stick
Unmount automatically mounted partition
Try sudo dd if=/mnt/d/instalki/OS/bionicpup32-8.0-uefi.iso of=/dev/sdb
The error occured only when I unmounted ...
13
votes
Ubuntu 18.04 does not mount 2TB exFat drive even after installing exfat-fuse exfat-utils
Just press Ctrl+Alt+t and When your terminal appears, Type below command and boom:
sudo apt-get install exfat-fuse exfat-utils
Unplug your exFat external flash and then plug it again. This way ...
13
votes
Best format for an external HDD in 2019 to be used in MacOs, Windows 10 and Ubuntu Linux 19.04
What is the best to do for external hhd in 2019.
fat, ext2 and ext3 are basically obsolete and ext4 is not accepted by Microsoft. You will have 2 options:
exFAT
NTFS
where exFAT has the best ...
13
votes
Accepted
Appropriate command to copy everything in root "/" to an external storage volume?
To add to what P.P has said, you don't really want to copy every directory. I use tar to backup everything that I need, and "exclude" the directories I don't need. The command basically goes ...
12
votes
How to turn off hard drive in Ubuntu?
You can use the following (here sdc is the name of corresponding block device of interest):
sync
echo 1 > /sys/block/sdc/device/delete
or (from non-root user):
sync
echo 1 | sudo tee /sys/block/...
12
votes
Accepted
NTFS filesystem on external drive isn't recognised: "mount: wrong fs type, bad option, bad superblock on /dev/sdb1"
First determine what is the filesystem of your external hard disk. You need these packages for the following Windows filesystems:
exFAT: exfat-fuse
NTFS: ntfs-3g
FAT32: already built in the kernel
...
11
votes
Is an internal HDD with Ubuntu automatically bootable from an external USB case?
Because of the internal USB to SATA bridge adapter used inside of external disk drive cases, transplanted disk drives may require reformatting before they can be used... so the answer is "maybe".
...
10
votes
Accepted
Check if specific external disk is connected
To test whether a specific device is connected you can use grep with the -q option to search the output of lsusb or lsblk, e.g.
uuid=f9035fce-b3a1-4aee-80ef-44e432b78fdb
lsblk -f | grep -wq $uuid &...
10
votes
Check if specific external disk is connected
/dev/disk/ contains the following directories, which contain symbolic link to real devices. This links are dynamically created and removed by udev, so they're a are always up-to-date:
by-id
by-...
10
votes
Accepted
Can I have full Linux on an external HDD?
Yes, you can have a full linux operating system installed on an external hdd. See these links,
Boot Ubuntu from external drive
Installation/UEFI-and-BIOS
You can also have a persistent live Ubuntu ...
10
votes
Accepted
Remove HDD icon from dock in 20.04
Open dconf Editor.
If dconf Editor is not on your system, do:
sudo apt update
sudo apt install dconf-editor
Adjust the following setting...
9
votes
Appropriate command to copy everything in root "/" to an external storage volume?
Consider imaging the disk instead of making just a copy of files. There's more than just files that can get messed up during an upgrade: EFI system partition, boot sectors etc.
I'd recommend ...
8
votes
Appropriate command to copy everything in root "/" to an external storage volume?
Yes, if you want to copy everything under /, then you can do:
sudo cp -r / media/username/TOSHIBA\ EXT/root_copy/
But, before proceeding... you need to be aware that you don't really want to copy ...
7
votes
change apache document root to /
I know this is one of the stupidest ideas you have heard of but my client.
It is.
And you can't with a normal install. Apache would be needed to be run as "root" and Apache has a built-in security ...
7
votes
Accepted
Can two different OSs share a root partition?
Simple Answer
No.
Explanation
A Unix-type OS (including Ubuntu, or any other Linux-based OS) is defined largely by files that are in fixed locations relative to the root (/) directory, such as /etc/...
7
votes
Best format for an external HDD in 2019 to be used in MacOs, Windows 10 and Ubuntu Linux 19.04
Consider splitting the drive into two partitions. A large NTFS partition for data that is more stable, as well as read/write on Windows and Linux. A small exFAT partition to copy files from Mac OS.
...
7
votes
External bluray drive not mounting - 20.04 LTS
I fixed it.
sudo apt install udftools
and a reboot and the device now works as intended.
6
votes
How to install Ubuntu on portable external Hard Drive?
Full Install to USB
Full installs are more stable and secure than persistent installs, but not as quick to make. They are better at utilizing disk space as no fixed size casper-rw file or partition ...
6
votes
Ubuntu mounts external ntfs drive as read-only?
If valuable data, do the repair work on a cloned copy
If the data, that you want to recover are valuable, it is a good idea to clone the drive to another drive of at least the same size and to do the ...
6
votes
Accepted
Backup ext4 data to exFAT partition
I advise you against using rsync. You should use either rdiff-backup, Duplicity, or Borg Backup.
rsync is great for mirroring – that is: syncing – folders. You, however, probably want a backup. ...
6
votes
How to find all hardlinks in a folder?
Search for hard links
@ilkkachu's and @barrycarter's answers are good. This answer is an alternative, that describes some results with more details.
If the linked {match is/matches are} in the same ...
6
votes
I can't see external storage device formatting progress
I just found a way to track the formatting progress in Ubuntu:
I opened the Terminal.
Then I ran:
sudo gnome-disks
The Disks application opened, and then I selected the external drive in the left ...
6
votes
Accepted
Automount a logical volume on an external disk drive LVM partitioned
Finally after so many tries the best and only working solution I found to automount logical volume is to use SystemD.
Create your <path-to-mount-folder>.mount and <path-to-mount-folder>....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
external-hdd × 1081hard-drive × 254
mount × 199
usb × 137
partitioning × 132
boot × 109
dual-boot × 68
permissions × 64
system-installation × 58
grub2 × 55
usb-drive × 51
14.04 × 50
ntfs × 44
backup × 40
installation × 36
12.04 × 31
16.04 × 30
20.04 × 28
automount × 27
format × 26
data-recovery × 25
windows × 24
ext4 × 24
18.04 × 23
ssd × 23