Label for ntfs partition.

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
T J Tulley
Level 5
Level 5
Posts: 558
Joined: Wed Jul 18, 2007 10:18 am
Location: Hull, England

Label for ntfs partition.

Post by T J Tulley »

During editing /etc/fstab it has become clear that labels are useful, but e2label doesn't work for ntfs partitions.

The man page for fstab refers to xfs_admin as an alternative to e2label; the man page for xfs_admin says that the option -L label sets the filesystem label to label.

Accordingly, after unmounting /dev/sdd1 (which is an ntfs-formatted partition), hoping to apply the label SATABkps, I entered the command, with the response as follows:

theo@TJT4Elyssa4 / $ xfs_admin -L SATABkps /dev/sdd1
xfs_admin: unexpected XFS SB magic number 0xeb5b904e
Floating point exception

I shall be grateful for advice!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Yours hopefully -

Theo Tulley.
Using a PC with 2GB RAM, 3 hdds and a 1.7 GHz Celeron cpu.
User avatar
merlwiz79
Level 8
Level 8
Posts: 2418
Joined: Wed Apr 04, 2007 1:50 pm
Location: Here again :)

Re: Label for ntfs partition.

Post by merlwiz79 »

Well e2label is for ext file systems and xfs_admin is for xfs file systems.
This link should get you what you want.
https://help.ubuntu.com/community/RenameUSBDrive#NTFS
which says to you this command

Code: Select all

sudo ntfslabel <device> <label>
Example:

Code: Select all

sudo ntfslabel /media/sdb1 Data
Image
Locked

Return to “Other topics”