LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 11-15-2005, 09:00 AM   #1
rx7haze
LQ Newbie
 
Registered: Oct 2005
Posts: 7

Rep: Reputation: 0
Angry Missing hard drive space


Not sure where to start. I have windows xp on a 10gb hard drive from an old computer. I made this drive the slave on my newer pc where i have linux on a 60gb drive. I made the 10gig win drive the slave only to find out that windows only likes to be on the primary disk (surprise!). I tried the trick of trying to make the windows drive look like the primary but no success. So i changed the drives such that the 10gig win drive was the primary and the 60 gig linux drive was the slave. This worked and windows booted up. Since it came from a different pc there were tons of issues starting win. So i reinstalled win. I ened up reinstalling win 3 times for various reasons. Each time i did so, the size of my hard drive shrunk. Now when i fdsik the drive it shows no partitions (2gig free space) and a total capacity of 2gig. Where did the other 8gig go? If i try to install any of my linux distros on this drive it also shows as total capacity of 2gig and 2 gig free. Can anyone help me recover this space so i can claim it for my linux distro?
 
Old 11-15-2005, 10:52 AM   #2
sjoerdvvu
LQ Newbie
 
Registered: Nov 2005
Location: the Netherlands
Distribution: Ubuntu, Mandrake, DSL
Posts: 24

Rep: Reputation: 15
harddrive lost

hi there,

did you try formatting the disk?

does your linux system support ntfs or is your windows a fat32 partition?

maybe try bootable knoppix, gives lots of info and locates all your partitions on harddrive.

good luck,

sjoerdvvu
 
Old 11-15-2005, 11:06 AM   #3
rx7haze
LQ Newbie
 
Registered: Oct 2005
Posts: 7

Original Poster
Rep: Reputation: 0
I tried formatting by using the windows xp cd recovery tools. Still only see 2gig. Is there another formatting tool that will wipe the drive from beginning to end? Are there any portions of the hard drive that would normally be hidden to fdisk? And if so, is it possible that the missing space is buried there?
Thanks.
 
Old 11-15-2005, 11:20 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Some distros do not come with NTFS support out of the box, it needs to be added, this might be why it doesn't show the 8gig, i dont remember seeing NTFS as an option when partitioning with fdisk. So maybe your partition with windows on is NTFS and fdisk doesn't recognise (read, ignores) it. if you boot into windows how big does it say it is??
 
Old 11-15-2005, 11:40 AM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I laugh at this post because a user installed XP and used a DOS floppy (with fdisk) to interrogate the disk. Of course DOS reports 2Gb because DOS is short-sighted and can't see a distance beyond 2Gb.

FAT16 DOS can only address 2Gb of space and if that is what was used to format the disk then it is only natural that the partition cannot exceed 2Gb.
 
Old 11-15-2005, 11:41 AM   #6
rx7haze
LQ Newbie
 
Registered: Oct 2005
Posts: 7

Original Poster
Rep: Reputation: 0
The last time i booted into win it said 2+gig. Is there a partition tool that can view ntfs?
Thank you.
 
Old 11-15-2005, 12:02 PM   #7
rx7haze
LQ Newbie
 
Registered: Oct 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by saikee
I laugh at this post because a user installed XP and used a DOS floppy (with fdisk) to interrogate the disk. Of course DOS reports 2Gb because DOS is short-sighted and can't see a distance beyond 2Gb.

FAT16 DOS can only address 2Gb of space and if that is what was used to format the disk then it is only natural that the partition cannot exceed 2Gb.
I used the recovery utilities on the win xp install cd. It's actually called diskpart. Looks the same as fdisk. Is there anything about diskpart that would cause it not to show some of the space?
 
Old 11-15-2005, 12:22 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
If you used DOS fdisk to format it then the partition can only be 2Gb.

Why don't you run a Linux Live CD, do a fdisk -l and all will be revealed?

It will tell you the total disk size, every partition you have, its partition type and the size. The exact locations of each partition are also shown.

How about giving it a try?
 
Old 11-15-2005, 12:26 PM   #9
sjoerdvvu
LQ Newbie
 
Registered: Nov 2005
Location: the Netherlands
Distribution: Ubuntu, Mandrake, DSL
Posts: 24

Rep: Reputation: 15
just check out some linux distro's, you have them bootable as well,

knoppix 3.9 (from cd)
suse
mandrake
lots more

I know they all can handle ntfs ( at least reading, but some of them don't fully support ntfs, like formatting)

there must be lots of windows tools on the net as well!

sjoerdvvu
 
Old 11-15-2005, 12:31 PM   #10
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
In answering to your original problem you can have your XP in a slave position if you re-map the two disks in Grub using these two statement in /boot/grub/menu.lst

map (hd1) (hd0)
map (hd0) (hd1)

XP bought it every time!

That is what I did to have 2 DOS, a Win3x, a Win9x, a Win2k and XP in a company of quite a few Linux and BSD in one box. Grub has "hide" (also unhide)statement to hide any DOS/Windows partition in front of the partition to be booted. That satisfied M$ system's fantasy of being in the first primary of the first bootable disk!

If you haven't got Grub install one or load a distro that has it. Grub is available in DOS7 and Solaris now.
 
Old 11-15-2005, 12:32 PM   #11
rx7haze
LQ Newbie
 
Registered: Oct 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks all. I have a copy of DSL that I'll try tonight.
 
Old 11-15-2005, 06:21 PM   #12
rx7haze
LQ Newbie
 
Registered: Oct 2005
Posts: 7

Original Poster
Rep: Reputation: 0
I don't know what else to do. I'm typing this from my live cd copy of DSL. I tried fdisk in DSL and it said it could not read hda and hdb. I also tried cfdisk and i got a fatal error. I tried 2 other linux distros and both said the drive is 2 gig. The drive is definitely 10gig. I tried the windows xp recovery tools. Is it possible that in hte process of all the partitioning and installation of OSs that I did permanent damage to the hard drive?
 
Old 11-15-2005, 06:44 PM   #13
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
list the content of

fdisk-l

here. The only possibility I can think of is your disk may have been messed up by the BIOS causing the cylinder/head/sector to have incorrect entries. Some programs are can also cause such mishaps.

Usually Linux sees modern disk with 63 sectors and 255 heads.
 
Old 11-16-2005, 07:38 AM   #14
rx7haze
LQ Newbie
 
Registered: Oct 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Is there any way to get a hard drive back to its original state?
 
  


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
suse and hard drive space missing SuSE05 Suse/Novell 1 04-30-2005 08:51 AM
Available hard drive space totalrockage Linux - Newbie 3 04-08-2005 06:53 PM
Hard Drive Space exaudiomag Linux - Newbie 3 01-05-2005 06:47 PM
Hard Drive space doralsoral Linux - Software 1 11-08-2003 04:19 PM
Hard Drive Space Odd_Bloke Linux - Newbie 4 09-13-2003 08:44 AM


All times are GMT -5. The time now is 10:57 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