Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 265933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:48:45+00:00 2026-05-11T22:48:45+00:00

Through a bit of digging, I’ve discovered how to set and get the volume

  • 0

Through a bit of digging, I’ve discovered how to set and get the volume name of an ext3 partition on my Linux box:

set the volume label

tune2fs -L MY-NEW-NAME /dev/disk/by-path/pci-0000:00:1f.2-scsi-2:0:0:0-part1

get the volume’s current level

dumpe2fs -h /dev/disk/by-path/pci-0000:00:1f.2-scsi-2:0:0:0-part1 | grep ‘volume name’

Those work fine, but I have several questions:

1) Are those commands the best way to set/get the volume name? Or is there an easier method that I don’t know about?

2) How likely is changing a volume’s label to break something? i.e. does a standard Linux system rely on volumes having certain names? Or can I rename volumes to any names I like, without causing problems?

3) At some point I would like to include in my program a GUI interface to the above functionality. One way to do that would be to have my program execute the above shell commands (via system() or whatever), but that seems a bit clunky and heavyweight… are there direct functions that I can call to do the same thing? If so, what are they?

Thanks,
Jeremy

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:48:45+00:00Added an answer on May 11, 2026 at 10:48 pm

    1) What about e2label?
    2) The ‘mount’ command can identify devices via their label, so changing a label could break something inside /etc/fstab.. Anyway normally they aren’t used. (At least on Ubuntu and Fedora IIRC)
    3) What language are you using? Anyway, it looks like e2label doesn’t use any particular API.. It reads and writes to the device directly

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm digging through two legacy cross-compiled ARM Linux builds. There isn't much documentation other
I am little bit confuse that I am showing images through css it's working
I am going through some example assembly code for 16-bit real mode. I've come
Trying to learn a bit about PDO and is going through this tutorial .
Okay so this is a bit complex but I need to loop through this
I'm going through a Fortran code, and one bit has me a little puzzled.
With some help from SO, I have a bit of javascript/jquery that cycles through
I am writing a small application with Qt 4.6 (64-bit Arch Linux, though that
While digging through some old code put together by a former co-worker who's talents
So I'm working through a bit of a problem, and some advice would be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.