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!
Label for ntfs partition.
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
- T J Tulley
- Level 5
- Posts: 558
- Joined: Wed Jul 18, 2007 10:18 am
- Location: Hull, England
Label for ntfs partition.
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.
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.
Theo Tulley.
Using a PC with 2GB RAM, 3 hdds and a 1.7 GHz Celeron cpu.
Re: Label for ntfs partition.
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
Example:
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>
Code: Select all
sudo ntfslabel /media/sdb1 Data