

To make the directory name of the mountpoint more human readable we change the label for the ntfs file system on the partition sdc1 from nothing (empty string) to a "new label". The ntfs file system on the partition sda1 is the only partition that has a label

partitions) have labels in the directory /dev/disk/by-label which lists all the partitions that have a label: user]# ls -l /dev/disk/by-label dev/sdc: 5 bytes were erased at offset 0x00008001 (iso9660): 43 44 30 30 31Īfter erasing the iso9660 partition table we check the partition table again to confirm that the partition table iso9660 was erased: user]# wipefs /dev/sdcīut now that the problematic iso9660 partition table has been erased lsblk is now using the UUID of the partition as the mountpoint directory name since the previously used label of the iso9660 partition-table no longer exists: NAME FSTYPE LABEL UUID MOUNTPOINT The -f ( -force) option is required when erasing a partition-table signature on a block device. Below we wipe the iso9660 partition table. The -a option of the command wipefs erases all available signatures on the device but the -t option of the command wipefs when used together with the -a option restricts the erasing of signatures to only a certain type of partition table. Note that dd can also be used to wipe out a partition-table signature from a block (disk) device but dd could also wipe out other partition tables.īecause we want to target only a particular partition-table signature for wiping, wipefs was preferred since unlike dd, with wipefs we would not have to recreate the partition table again. To get lsblk to display the correct partition table the iso9660 partition table had to be deleted. lsblk was using the TYPE and LABEL of the iso9660 partition table instead of the dos (Master Boot Record) partition table. The above printout confirmed that the iso9660 partition table created by SystemRescueCd was still present. So I ran the command wipefs /dev/sdc and wipefs /dev/sdc1 which printed information about sdc and all partitions on sdc: user]# wipefs /dev/sdc As an alternative to rebooting is there a way to rename the FSTYPE and LABEL of a block device manually so that I can change them to the original FSTYPE and LABEL that shipped with the external hard drive?įrom the output of lsblk -f in the original post I suspected that the signature of the installed SystemRescueCd was still present in the external hard drive.Could it be that the kernel is still using the old FSTYPE and LABEL because I haven't rebooted the system? Do I have to reboot the system to get rid of the old FSTYPE and LABEL?.The nautilus GUI app is also showing the old device label (sysrcd-5.2.2).Īfter creating a new partition table, parted suggested I reboot the system before formatting the device to ntfs, but I decided to unmount sdc instead of rebooting. └─sdc1 ntfs sysrcd-5.2.2 /run/media/user/sysrcd-5.2.2Īs shown in the output of lsblk -f only the FSTYPE of the partition sdc1 is correct, the sdc1 partition LABEL, sdc block device FSTYPE and LABEL are wrong. However when listing devices with lsblk -f I am still getting the old FSTYPE (iso9660) and LABEL (sysrcd-5.2.2) for the formatted device (sdc): NAME FSTYPE LABEL UUID MOUNTPOINT Before formatting the device SystemRescueCd was installed on the external hard drive using the command dd in order to be used as a bootable USB. Half the point of asking questions in a public sub is so that everyone can benefit from the answers-which is impossible if you go deleting everything behind yourself once you've gotten yours.I formatted an external hard drive (sdc) to ntfs using parted, creating one primary partition (sdc1). If I catch anybody else deleting their question and all their comments on it immediately after getting an answer, they're getting an instant banhammer. But please don't flame people for not using your own personal One True Platform. If there's useful information about a difference in implementation or performance between OpenZFS on FreeBSD and/or Linux and/or Illumos - or even Oracle ZFS! - great. If your post or comment gets hidden, send modmail and we'll take a look. NOTE: sometimes Reddit's auto-spam system flags links it shouldn't.

This isn't an issue we usually have trouble with, so let's just keep not having trouble with it. BUT, only if it's materially useful to answer a question, or offer information, in some sense other than "this will get people to give me money." It's fine to link to youtube videos, blog posts, what have you. If you think somebody's wrong, you can say that without casting aspersions or being super sarcastic.
