LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-14-2004, 06:59 PM   #1
Jiblet
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake 10
Posts: 23

Rep: Reputation: 15
Relabelling drive letters?


Not strictly a linux question I guess but anyone know how to relabel drive partitions - without going into widows and preferably without the use of a floppy disc seeing as my drive is dead.
Think of it as a fun challenge :/
Can I use fdisk to do this?
If so, could someone give me an example or point me in the right direction? I really dont want to break anything else...

It seems something (probably partition magic when I was creating a partition to install Mandrake 10 - which went swimmingly by the way...) has changed "C" drive to be "F" (and created a 30G linux partition as "C") and Im guessing thats why Windows barfs at bootup.

I might start kicking small dogs soon
Help!

Last edited by Jiblet; 04-14-2004 at 07:16 PM.
 
Old 04-14-2004, 07:39 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
The only drive lables that linux recognizes are the device names for the partitions (/dev/hda1, /dev/sda2, etc.) and as far as I know there's absolutely no way to rename these. Windows is what creates a drive label and makes it correspond to a particular partition. Any changes you make there will have to be done in Windows.

Last edited by itsme86; 04-14-2004 at 07:41 PM.
 
Old 04-15-2004, 01:25 AM   #3
Jiblet
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake 10
Posts: 23

Original Poster
Rep: Reputation: 15
So its fully broken then?
Anyone know if deleting the new "C" partition would work? (i make them all fall back into line)
 
Old 04-15-2004, 01:49 AM   #4
Mr.Bill.Gates
Member
 
Registered: Apr 2004
Location: Moscow, Russia
Distribution: Debian
Posts: 55

Rep: Reputation: 15
Why do you call it "C" partition? Do you see it as C: in Windows? If so then it can't be Linux partition.
 
Old 04-15-2004, 01:53 AM   #5
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
I'm sure there's a way to fix it. At the very least you should be able to back up your data from the old C: drive from within linux.

Is the mislabled drive fat32 or ntfs?
 
Old 04-15-2004, 03:24 AM   #6
Jiblet
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake 10
Posts: 23

Original Poster
Rep: Reputation: 15
I call the new linux partition "C" because when I boot from the WindowsXP CD and go to "install", it shows me the current partitions on teh disk, one of which is "C". It doesnt recognise the filesystem on that partition and its the right size (30GB) so deduction leads me to believe its the new linux partition.

The mislabeled drive is NTFS, and yes you're right, I can see it from Mandrake10 and should be able to back up the data. I Wonder if I'll be able to make my dvd burner work in mandrake...

Like itsme86 im also sure there's a way to fix it. Though thats more hope than actual facts :/

Thanks for replies so far.
 
Old 04-15-2004, 03:30 AM   #7
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
can you boot into windows? if so then linux didn't install over your "C:\" partition. if fdisk really shows that what used to be your "C:\" partition is now an unrecognized format and it's exactly the same size as what you gave to your linux install, then you're hosed. you'd have to use fdisk to reformat that partition and to reinstall windows and all your other doo-dads. basically everything that was in windows is now gone.

edit: reread your parent post. if you're sure that what was your windows installation partition has been relabelled as the "F:\" drive in windows, you may be able to use fdisk, or your partition magic rescue discs to delete your linux partition and to move the "F:\" drive up to the start of the hard drive and to set it as the active boot drive. if you can't then like above, you're pretty much hosed and need a complete reinstall of both windows and linux (partition your hard drive correctly this time).

Last edited by megaspaz; 04-15-2004 at 03:37 AM.
 
Old 04-15-2004, 03:36 AM   #8
Jiblet
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake 10
Posts: 23

Original Poster
Rep: Reputation: 15
If I could boot into windows then I could use partition magic to alter the drive letters.
The problem is that something at bootup is looking for drive "C", however the file is now actually on drive "F".
I just need a way of switching the active partition back to the windows partition I guess.
Though I'm not particularly au fait with partitioning... Hence the problem
 
Old 04-15-2004, 03:37 AM   #9
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Quote:
Originally posted by megaspaz
can you boot into windows? if so then linux didn't install over your "C:\" partition. if fdisk really shows that what used to be your "C:\" partition is now an unrecognized format and it's exactly the same size as what you gave to your linux install, then you're hosed. you'd have to use fdisk to reformat that partition and to reinstall windows and all your other doo-dads. basically everything that was in windows is now gone.

edit: reread your parent post. if you're sure that what was your windows installation partition has been relabelled as the "F:\" drive in windows, you may be able to use fdisk, or your partition magic rescue discs to delete your linux partition and to move the "F:\" drive up to the start of the hard drive and to set it as the active boot drive. if you can't then like above, you're pretty much hosed and need a complete reinstall of both windows and linux (partition your hard drive correctly this time).
you responded before i could finish my edit.
 
Old 04-15-2004, 03:41 AM   #10
Jiblet
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake 10
Posts: 23

Original Poster
Rep: Reputation: 15
Heh yeah im keeping quite a close eye on this topic as you can imagine

"you may be able to use fdisk, or your partition magic rescue discs"
Yeah... I guess I really should have gone ahaead and created those rescue discs when it told me to

Though someone here at work says he can make a bootable partition magic CD that might let me off the hook.
Here's hoping.

Thanks for the help guys,let me know if you have any more ideas.

"(partition your hard drive correctly this time)."
Yep, I have 20/20 hindsight now
 
Old 04-15-2004, 03:42 AM   #11
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
good luck to ya.
 
Old 04-15-2004, 03:45 AM   #12
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
The drive letters windows set on partions are a real headache. They are dynamically set during boot and have nothing to do with the actual physical partitions other than the fact that windows give the partitions letters to partitions as it detects them.

If your windows can see this partition it therefore give it the drive letter c as it is the first in the disk. I guess that your windows installation got messed up because the reorganizing of partitions. This should be taken care of by partition magic I think.

The problem probably lies in the boot.ini file which would be pointing to the partition you had before. Probably that is the first partition, that is now a linux system. To fix this you would have to change boot.ini to reflect the changes in partitioning.
I think this can be done from the windows install cd using recovery console.
 
Old 04-15-2004, 03:47 AM   #13
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Oh, there might also be another problem. The MBR may point to the first partition for the second stage of bootloding (NTLDR.EXE) which now is moved. This problem I don't know how to fix, other than to let Grub do the chain loading. ???
 
Old 04-15-2004, 03:47 AM   #14
Jiblet
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake 10
Posts: 23

Original Poster
Rep: Reputation: 15
I could even take a look at boot.ini from Linux seeing as I can still access the windows partition from there...
Thanks for the tip, I'll take a look.

Edit:
Ah... That sounds hairy.
Fingers crossed that Partition Magic will fix this. Though Im not convinced :/

Last edited by Jiblet; 04-15-2004 at 03:49 AM.
 
Old 04-15-2004, 04:17 AM   #15
Jiblet
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake 10
Posts: 23

Original Poster
Rep: Reputation: 15
Just found the following info on a PM messageboard:

Quote:
U can go to linux and fdisk , change the windows partions from hidden NTFS to NTFS type(17). Restart pc and everything will be ok.
Could anyone give a little more detail about how to use fdisk from Linux to do this?
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why are the letters so far apart in MandrakeLinux 10.0 WanabeLinus Mandriva 2 07-18-2004 01:06 PM
Wine problem- cannot define drive letters minister_fister Linux - Software 1 10-01-2003 02:21 PM
non english letters bynaar Slackware 8 01-21-2003 01:23 PM
saving my letters blotch Linux - Newbie 4 11-28-2001 05:47 PM
Swapping Drive Letters in Windows while multibooting with LILO akfnphx2 Linux - General 2 05-27-2001 08:34 AM


All times are GMT -5. The time now is 02:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration