LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Rename external HD (https://www.linuxquestions.org/questions/linux-hardware-18/rename-external-hd-4175736618/)

maddy0 05-01-2024 02:53 PM

Rename external HD
 
1 Attachment(s)
Hello, i just formatted to ext4 my old HD, but i don't know how to rename :D

Disk /dev/sda: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: External USB 3.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x85488548

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 206848 3907029119 3906822272 1.8T 83 Linux

mv /media/me/978f9a50-336f-4491-8570-7c13091e6022 /media/me/my_disk
mv: cannot move '/media/me/978f9a50-336f-4491-8570-7c13091e6022' to '/media/me/my_disk': Device or resource busy
I tried to umount, but disappears :D

michaelk 05-01-2024 03:03 PM

As root or use sudo.
Code:

e2label /dev/sda1 my_disk

maddy0 05-02-2024 06:28 AM

Thnaks a lot.

Keith Hedger 05-02-2024 06:47 AM

You can also set the label when you do a format ( -L if I remember ).


All times are GMT -5. The time now is 01:04 AM.