LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-25-2002, 08:14 PM   #1
tomplate
LQ Newbie
 
Registered: Feb 2002
Distribution: RedHat
Posts: 29

Rep: Reputation: 15
Question Renaming a partition?


I have a partition I need to rename...from its current
hda1 to something more descriptive like MYLINUX. It is
Linux formatted, but is not being picked up on bootup
as existing. It is an additional partition I made with
partition magic, to be storage space. I have RH7.2,
with ext3, and can't seem to figure out how to make it
see this new partition at all. I can't rename it, except under Linux, so I am at a standstill. Help?
 
Old 02-25-2002, 08:18 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
you should be able to add it to /etc/fstab to mount as mylinux or whatever you want to call it..

-trickykid
 
Old 02-25-2002, 08:43 PM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Or you can create a symlink
ln -s /dev/hda1 /dev/mylinux
and edit the /etc/fstab file to reflect the change, but I don't see a sense on doing so, but anyway. To be able to see it you have to mount it
mount -text3 /dev/myllinux /mnt/mylinux
NOTE: /dev/mylinux must be a symlink to /dev/hda1 and /mnt/mylinux must exist on the system, create it using mkdir /mnt/mylinux), then you can add the following line to /etc/fstab
/dev/mylinux /mnt/mylinux ext3 defaults 1 1

Last edited by neo77777; 02-25-2002 at 08:48 PM.
 
Old 02-25-2002, 09:43 PM   #4
tomplate
LQ Newbie
 
Registered: Feb 2002
Distribution: RedHat
Posts: 29

Original Poster
Rep: Reputation: 15
But how does that rename partition?

Okay, I can add it to .etc/fstab to mount this way..

And this causes Linux to name this partition ?

Oh, and neo77777, I don't have a clue what you are saying.
Well, maybe a clue, but that's about all...I have been in Linux,
oh, about 7 weeks, off and on. (As to the sense of this,
I am using it as a recovery partition or backup so as not to
lose all the updating I have spent hours doing, since I have
no external way to backup anything. Best I could come up with.)
The symlink is like an icon, so that I will know that
it is mounted on my desktop? A mount indicator? Okay....
Now then, I add a line to etc/fstab and I call the partition
what I want and save the edited change? Do my mount points
come into play at all?

Thanks for quick responses.
 
Old 02-25-2002, 09:59 PM   #5
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Yes.
You don't usually change the actual device/paritition name, but rather you would create a mount point with a descriptive name and mount the partition there. This is somewhat akin to what happens in DOS/Win: you can't change the device name (e.g.: the master drive on your primary IDE channel will always be C:, but you can give it a description using the "label" command.

Look in /etc/fstab- you'll see that your devices (fd0, hdc) and your partitions (hda1, hda2, hda5, ect.)
are mounted under meaningfully-named mount points (/mnt/floppy, /mnt/cdrom, /boot, /, /tmp, etc.).
The upshot is that the system needs to reference devices and partitions by certain names, and you can't change that- but you can mask the way the names are seen by the user via the mount points. Clear as mud?

 
Old 02-27-2002, 02:41 PM   #6
tomplate
LQ Newbie
 
Registered: Feb 2002
Distribution: RedHat
Posts: 29

Original Poster
Rep: Reputation: 15
Thumbs up DMR, you were most excellent...

No, you filled in the gap...There was something I just didn't
understand, and you made it clear. And it is now done...
NO MUD IN YOUR NOTE. AND I THANK YOU. It works well!
Meanwhile, say a prayer for me, DMR, because I think I stirred
up the Indians at another posting over here. ("Terminal")
I guess we all get tired of having READTHIS thrown at us,
at least once in a while. You answered me...from your knowledge.
And I do so appreciate that. In fact, at this site, this last batch
of READTHIS is really the first time someone has told me, in
effect, RTFM, at this site. But then, my question may have caused
that...I must learn to ask better. And maybe I am misinterpreting..
Have a good day and thanks again,

Tom P
 
Old 02-27-2002, 09:18 PM   #7
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Something told me...

LOL!
Without even looking at your "terminal" thread, I knew you referring to an incident in a dark alley with acid_kewpie. You got luckly, though- I've seen him chomp off a Newbie's butt-cheek in one bite.

However, all who responded to your post did give the right answer. You asked how one learns command line, and they gave you the most popular method (another would be to take UNIX classes, but you would still be reading books). There really is no single, step-by-step recipe for learning something as complex as UNIX; it's a long process, and everyone has a different approach. The purpose of support forums is mainly to help you work through a particular, specific problem when you get in too deep and have exhausted the resources available to you. That's why you might get a lot of what could by misconstrued as RTFM type answers, but I think most of the people will only be trying to help by pointing you to resouces of which you might not have been aware.

Some people just have a better bedside manner than others...



Anyway, glad I could help- good luck!
 
Old 02-28-2002, 01:53 PM   #8
tomplate
LQ Newbie
 
Registered: Feb 2002
Distribution: RedHat
Posts: 29

Original Poster
Rep: Reputation: 15
Exclamation Thanks, DMR

Note: you almost didn't get this because of the poor mechanical
problems...I had to sign in twice, and it was hard to find the
thread again. OH, well...or is it the internet today? Could be either....to be fair. Or a combination. STANDARD DISCLAIMER..

THANK YOU!

Your answer is reasonable, thoughtful and sane, DMR.
I did some research before I asked the question,
but I asked the question poorly, in hindsight, I will
admit. (The Terminal Thread)
I do appreciate your reasoned and reasonable
reply. Trying to make a new Partition for Linux was interesting in
that I got such blatantly wrong answers. And, worse, I caught
one prominent site putting an interesting GIF with a hidden
URL in it, every time I signed in. I think that is called a WEBBUG,
which is like spying to me. So, all in all, I guess I am in
the process of deciding which forums are LEGITIMATE
and which are NOT, as well as learning Linux. SHEESH!
I guess when someone says come to my site, and I went
last week and CRASHED there....and everybody has a book,
when I have bought too many now. On recommendations, too,
and many of them are useless.... Should have just said thanks
and gone off...in hindsight.
DMR, on that note, then, I take an overdue vacation. And
try to clear my head. Like you, I am one of the guys who is
willing to take time for others. In fact, I am helping an ArchBishop
right now fix a Windows problem... And unless they have some
distro in Latin, I will be doing good to get him to even stay computing, let alone trying to convert Him-- to Linux, that is.
Have a good week...
Tom
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Renaming a user? Nuvious Linux - Newbie 3 08-27-2005 12:58 AM
Help with renaming machine MbowerARA Linux - General 5 07-29-2005 05:23 PM
Renaming files in one go saurya_s Linux - Software 1 01-12-2004 01:16 PM
renaming to lowercase locazor Linux - Software 1 01-02-2004 08:29 AM
Renaming folder jeffpoulsen Linux - General 2 10-21-2002 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:53 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration