We help IT Professionals succeed at work.

Rename a filesystem

pkowal74 asked
Last Modified: 2013-12-15
I incorrectly named a filesystem mount on my server.  What would be the best way to rename the mount system?
Watch Question

Edit /etc/fstab and either reboot or unmount and remount it


I do that and I get the following:

# mount -a
mount: special device LABEL=/mount/point does not exist
Copy your current /etc/fstab in please


IT IS THE LABEL=/oracle/archivelog  /oracle/archivelog I WANT TO CHANGE.

# more /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
LABEL=/home             /home                   ext3    defaults        1 2
LABEL=/oracle           /oracle                 ext3    defaults        1 2
LABEL=/oracle/archivelog  /oracle/archivelog       ext3    defaults        1 2
LABEL=/oracle/oradata1  /oracle/oradata         ext3    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
LABEL=/tmp              /tmp                    ext3    defaults        1 2
LABEL=/usr1             /usr                    ext3    defaults        1 2
LABEL=/var              /var                    ext3    defaults        1 2
LABEL=SWAP-sda8         swap                    swap    defaults        0 0
netapp2-e0a:/vol/orastby        /oracle/stbybackup  nfs rw,bg,rsize=32768,wsize=32768,hard,nointr,vers=3,tcp,noac,timeo=600 0 0
/dev/hda                /media/cdrom            auto    pamconsole,exec,noauto,managed 0 0
/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0
Sorry - neglected to consider the LABL syntax. You've got to relable the partition. Use e2label and then remount

"e2label /dev/sda1" << iterate through your drives until you find /oracle/archivelog
"e2label /dev/sda1 /<newlabel>"
edit /etc/fstab to reference the new label
"mount -o remount,rw /<newlabel>"
Note that you can just do "fdisk -l" to find the /dev partitions


After I have done this:

# mount -o remount,rw /oracle/archivelog
mount: no such partition found

Is there something else I ca look at?

Thanks for your help...
Lets say the old label is /oracle/OLDarchive and the new label is /oracle/NEWarchive

You identified the /dev partition associated with /oracale/OLDarchive - call it /dev/sda1
You confirmed that was correct eith "e2label /dev/sda1"
You renamed it with "e2label /dev/sda1 /oracle/NEWarchive"
You renamed any /oracle/OLDarchive entries in /etc/fstab to /oracle/NEWarchive
You remounted /oracle/NEWarchive << if that doesn't work then remount /oracle/OLDarchive

Can you confirm this?


I'm still having problems getting this:

mount -o remount,rw /oracle/archivelog
mount: no such partition found

I restarted the server, the OS would not boot because it could not verify the /oracle/archivelog
while it was doing the fsck.
I had to enter a record on the /etc/mtab as well.  But still no luck.  Any help would be great.
This one is on us!
(Get your first solution completely free - no credit card required)


Thanks very much!  You were right, the LABLE was /oracle/archivel - I had
/oracle/archivelog in the fstab.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.