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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-15-2005, 09:00 AM
|
#1
|
LQ Newbie
Registered: Oct 2005
Posts: 7
Rep:
|
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?
|
|
|
11-15-2005, 10:52 AM
|
#2
|
LQ Newbie
Registered: Nov 2005
Location: the Netherlands
Distribution: Ubuntu, Mandrake, DSL
Posts: 24
Rep:
|
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
|
|
|
11-15-2005, 11:06 AM
|
#3
|
LQ Newbie
Registered: Oct 2005
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
11-15-2005, 11:20 AM
|
#4
|
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522
Rep:
|
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??
|
|
|
11-15-2005, 11:40 AM
|
#5
|
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Rep: 
|
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.
|
|
|
11-15-2005, 11:41 AM
|
#6
|
LQ Newbie
Registered: Oct 2005
Posts: 7
Original Poster
Rep:
|
The last time i booted into win it said 2+gig. Is there a partition tool that can view ntfs?
Thank you.
|
|
|
11-15-2005, 12:02 PM
|
#7
|
LQ Newbie
Registered: Oct 2005
Posts: 7
Original Poster
Rep:
|
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?
|
|
|
11-15-2005, 12:22 PM
|
#8
|
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Rep: 
|
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?
|
|
|
11-15-2005, 12:26 PM
|
#9
|
LQ Newbie
Registered: Nov 2005
Location: the Netherlands
Distribution: Ubuntu, Mandrake, DSL
Posts: 24
Rep:
|
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
|
|
|
11-15-2005, 12:31 PM
|
#10
|
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Rep: 
|
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.
|
|
|
11-15-2005, 12:32 PM
|
#11
|
LQ Newbie
Registered: Oct 2005
Posts: 7
Original Poster
Rep:
|
Thanks all. I have a copy of DSL that I'll try tonight.
|
|
|
11-15-2005, 06:21 PM
|
#12
|
LQ Newbie
Registered: Oct 2005
Posts: 7
Original Poster
Rep:
|
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?
|
|
|
11-15-2005, 06:44 PM
|
#13
|
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Rep: 
|
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.
|
|
|
11-16-2005, 07:38 AM
|
#14
|
LQ Newbie
Registered: Oct 2005
Posts: 7
Original Poster
Rep:
|
Is there any way to get a hard drive back to its original state?
|
|
|
All times are GMT -5. The time now is 09:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|