Can't set partition labels: Solved!

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Can't set partition labels: Solved!

Postby T J Tulley on Wed Jun 25, 2008 4:53 pm

Every time I try to set a partition label I get a response like this:

theo@TJT4Daryna2:~$ sudo e2label sdc1 Backups
e2label: No such file or directory while trying to open sdc1
Couldn't find valid filesystem superblock.
theo@TJT4Daryna2:~$

The same thing happens if I first cd to the location of the partition I want to label:

theo@TJT4Daryna2:/media/sdc1$ e2label sdc1 Backups
e2label: No such file or directory while trying to open sdc1
Couldn't find valid filesystem superblock.
theo@TJT4Daryna2:/media/sdc1$
[Evidently sudo isn't required for this operation].
sdc1 is a 40GB partitio of a SATA drive formatted NTFS and used for backups. It is mounted and shows on my desktop.

I shall be grateful for advice.

[I shall be even more grateful if someone will respond to the main subject of my post yesterday in the Installation and Boot forum, with subject "Background investigation".]
Last edited by T J Tulley on Wed Jun 25, 2008 5:54 pm, edited 1 time in total.
Yours hopefully -

Theo Tulley.
Using a PC with 2GB RAM, 3 hdds and a 1.7 GHz Celeron cpu.
User avatar
T J Tulley
Level 5
Level 5
 
Posts: 581
Joined: Wed Jul 18, 2007 10:18 am
Location: Hull, England

Linux Mint is funded by ads and donations.
 

Re: Can't set partition labels

Postby Lim-Dul on Wed Jun 25, 2008 5:38 pm

Hm - shouldn't the device be referenced with /dev/sdc1 etc. not /media/sdc1. I gather there are only mountpoints in the /media/* directory, not the devices themselves.

P.S. Also, isn't e2label only meant for ext* filesystems? You set the label for external automounted foreign filesystems in /etc/fstab, correct me if I'm wrong. You could also alter the mountpoint for your NTFS partition.
War does not determine who is right - only who is left. - Bertrand Russell
User avatar
Lim-Dul
Level 2
Level 2
 
Posts: 71
Joined: Thu Jun 05, 2008 4:59 pm
Location: Europe->Poland->Warsaw

Re: Can't set partition labels: Solved!

Postby T J Tulley on Wed Jun 25, 2008 5:59 pm

Thanks - I had forgotten that e2label only applies to ext2 and ext3 partitions.

I had applied the label in /etc/fstab but also forgot that it won't show until I reboot (I hope!).

Anyway, I've edited the subject to "Solved".
Yours hopefully -

Theo Tulley.
Using a PC with 2GB RAM, 3 hdds and a 1.7 GHz Celeron cpu.
User avatar
T J Tulley
Level 5
Level 5
 
Posts: 581
Joined: Wed Jul 18, 2007 10:18 am
Location: Hull, England


Return to Newbie Questions

Who is online

Users browsing this forum: Google [Bot] and 34 guests