[PLUG] changing file system names after installation of RH WS3

Aaron Burt aaron at bavariati.org
Tue Jan 18 22:10:24 UTC 2005


On Tue, Jan 18, 2005 at 12:43:36PM -0800, Norm Coder wrote:
> I installed RH WS3 on a Dell Optiplex GX280 and noticed I named slice 6 of
> the partition of my second disk /hot2 and it should have been /hoth2. Is
> there an easy way to rename a file system? 
> I reinstalled RH and learned a lot about re-registering with RH and up2date
> in the process.
> What I am looking for is a link, white paper, or step-by-step directions on
> how to change the name on a file system.

OK, some silly semantics: There are two things you could be talking
about: the "mount point" (where the file system shows up in the
directory structure, e.g. /boot) and the "label", which is a name
stuck on a file system.  Red Hat likes to make the label of a
filesystem the same as its mount point, so the filesystem mounted at
/boot would be labeled "/boot", but it don't gotta be that way.

I'm gonna guess you want to do both, so it'd be like this:

Figure out what device is /hot2 (e.g. /dev/hdc3)

Become Root

edit /etc/fstab, find the line that looks something like:
  label=/hot2   /hot2   ext3  blahblah  some numbers
and change both instances of /hot2 to /hoth2

umount /hot2

mv /hot2 /hoth2

If it's ext2 or ext3, do:
  tune2fs -L /hoth2 /dev/hdc3  (or whatever device is /hot2)

mount /hoth2

and Bob's yer uncle.

Disclaimer: No warrantees, not tested on live animals and if flying
monkeys steal your data, please do not sue me.



More information about the PLUG mailing list