LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2009, 02:09 AM   #1
linux4samir
LQ Newbie
 
Registered: Aug 2009
Posts: 19

Rep: Reputation: 0
Renaming a FILESYSTEM


Hi...ALL

I M new to LINUX

During installation of Linux (RHEL 5) i have created a filesystem Named "/oracle"....now i want to rename the same to "/oracledbase"

(The content of the "/oracle" file system is zero and the file system is... ext3)

Please help me

Thanks
 
Old 08-18-2009, 02:24 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You just need to create the directory /oracledbase and mount the relevant filesystem (i.e. partition, NFS share, etc) there.
 
Old 08-18-2009, 04:46 AM   #3
linux4samir
LQ Newbie
 
Registered: Aug 2009
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Nylex View Post
You just need to create the directory /oracledbase and mount the relevant filesystem (i.e. partition, NFS share, etc) there.

I have aleady done the same...create a folder named "oracledbase" given "chmod 777" permission and edited the /etc/fstab file...by simply modified the value "oracle" to "oracledbase" ....but nothing happend...bcoz..after completion the above job ...when i tried to reboot the system.....it was directly go to mantanance level bootup option....

Last edited by linux4samir; 08-18-2009 at 06:41 AM.
 
Old 08-18-2009, 04:55 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
The name in fstab must be the same as the new name you gave the directory (mount point). (You have "oracledbase" and "oradbase")

But: If it is now booting into maintenance mode, there is something else wrong. Can you post the complete content of /etc/fstab, and also the results of "fdisk -l" (ell, not one---and run this as root)
 
Old 08-18-2009, 04:59 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Since you renamed the mount point, the entry in /etc/fstab fails, dropping you into the maintenance console if you don't have the noauto option.
 
Old 08-18-2009, 05:01 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by linux4samir View Post
I have aleady done the same...create a folder named "oracledbase" given "chmod 777" permission and edited the /etc/fstab file...by simply modified the value "oracle" to "oradbase" ....but nothing happend...bcoz..after completion the above job ...when i tried to reboot the system.....it was directly go to mantanance level bootup option....
Have you tried commenting out the changed file system line in fstab? Does it boot OK then? If it does then we know that line was the cause of the boot problem. If it does not then there is some other reason for the boot problem. Please post your fstab here.
 
Old 08-18-2009, 09:57 AM   #7
linux4samir
LQ Newbie
 
Registered: Aug 2009
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pixellany View Post
The name in fstab must be the same as the new name you gave the directory (mount point). (You have "oracledbase" and "oradbase")

But: If it is now booting into maintenance mode, there is something else wrong. Can you post the complete content of /etc/fstab, and also the results of "fdisk -l" (ell, not one---and run this as root)



output of "fdisk -l"

Disk /dev/hdd: 20.8 GB, 20847697920 bytes
255 heads, 63 sectors/track, 2534 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 25 200781 83 Linux
/dev/hdd2 26 286 2096482+ 83 Linux
/dev/hdd3 287 426 1124550 82 Linux swap / Solaris
/dev/hdd4 427 2534 16932510 5 Extended
/dev/hdd5 427 1204 6249253+ 83 Linux
/dev/hdd6 1205 1907 5646816 83 Linux
/dev/hdd7 1908 2223 2538238+ 83 Linux
/dev/hdd8 2224 2478 2048256 83 Linux
/dev/hdd9 2479 2533 441756 83 Linux


AND


entries in /etc/fstsb is

LABEL=/ / ext3 defaults 1 1
LABEL=/home /home ext3 defaults 1
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/oradata /oradata ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/oracle /oracle ext3 defaults 1 2
LABEL=/boot1 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-hdd3 swap swap defaults 0 0
 
Old 08-18-2009, 02:18 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Now you have "oracle" and "oradata" in fstab, but not either of the other two names you mentioned. Again, the directory (mount point) must have the same name as the fstab entry.

Have you tried catkin's suggestion?

You could also try bypassing the LABEL method and mount the partitions by actual device names----e.g.:
Code:
/dev/hdd1 / ext3 defaults 1 1
Make a backup of the fstab file before making any more changes.
 
Old 08-18-2009, 02:51 PM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
It might be helpful to post the output from this command, too
Code:
/bin/ls -l /dev/disk/by-label/
 
Old 08-19-2009, 01:00 AM   #10
linux4samir
LQ Newbie
 
Registered: Aug 2009
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pixellany View Post
Now you have "oracle" and "oradata" in fstab, but not either of the other two names you mentioned. Again, the directory (mount point) must have the same name as the fstab entry.

Have you tried catkin's suggestion?

You could also try bypassing the LABEL method and mount the partitions by actual device names----e.g.:
Code:
/dev/hdd1 / ext3 defaults 1 1
Make a backup of the fstab file before making any more changes.


No..actually I have reverted back by "fstab" entries to earlier stage...bcoz of my sytem bootup problem...
 
Old 08-19-2009, 01:25 AM   #11
linux4samir
LQ Newbie
 
Registered: Aug 2009
Posts: 19

Original Poster
Rep: Reputation: 0
THANK YOU VERY MUCH..everybody..I have solved my problem....using following Steps.

1) Make a directory in root named "oracledbsae" given "chmod 777" permission.
2) unmount /oracle filesystem
3) changed the /etc/fstab entries...from

LABEL=/oracle /oracle ext3 defaults 1 2

TO

LABEL=/oracledbase /oracledbae ext3 defaults 1 2

4) changed the LABEL using the following command "e2label /dev/hdd5 oracledbase"

5) Reboot the system

Last edited by linux4samir; 08-19-2009 at 01:27 AM.
 
Old 08-19-2009, 01:55 AM   #12
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Glad you got it working. 777 permissions are more open than necessary and so less secure. That may not matter in your situation.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Renaming files Viablade Linux - Newbie 11 10-10-2008 01:54 PM
Confusing USB Filesystem Problem (Can't Wipe Ext3 Filesystem) dkaplowitz Linux - Hardware 3 04-14-2007 06:30 PM
Renaming Zmyrgel Linux - General 1 08-06-2006 07:59 AM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration