LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Wasted sector (http://www.linuxquestions.org/questions/linux-hardware-18/wasted-sector-59078/)

Kocil 05-10-2003 03:55 PM

Wasted sector
 
Hi.

I installed Linux Redhat, and partitioned the harddisk with diskdruid.
/dev/hda1 -> fat32, windows
/dev/hda5 -> fat32, shared between linux/windows
/dev/hda6 -> swap
/dev/hda7 -> tmp
/dev/hda8 -> windows

Somehow, the start sector of hda6, 7 and 8 was not placed right after the end of previous partition.
I run fdisk after installation, check, and it said
310 sectors not allocated.
Totally, it's only around 150 KBytes.
But I'm curious. How can i reclaim them ? Should I repartitioned the harddisk ?

Thanks.

Kocil 05-10-2003 03:57 PM

Sorry. typo. should be:
/dev/hda7 ext3 linux /tmp
/dev/hda8 ext3 linux /.

slakmagik 05-10-2003 06:49 PM

Crap like that drives me nuts - "I don't care if it's 5K - I don't want a hole in my drive!" *g* If it's swap and has nothing valuable, just use fdisk to delete it and put it back bigger. Possibility it will freak Windows out though, I'm not sure. You *can* delete and recreate partitions with data on them, but it's risky.

- edit - Part was dumb. Maybe all of it is. *g*

Kocil 05-14-2003 10:40 PM

I reinstalled the Linux,
repartitioned the partition /dev/hda6 - /dev/hda8,
the same problem still happened.

Is the problem has correlation with :
* LBA or not LBA. Currently the LBA is not set
* the end sector of hda5. What should it end up compare to physical disk layout (sectors/track, tracks, etc) ?.
* the position of hda2 (the logical partition that contains hda5-hda8)

Thanks

camelrider 05-16-2003 12:58 PM

I suppose that /dev/hda2 (primary) needs a sector to store info related to the logical partitions. I don't know if that's what is reported as unallocated.


All times are GMT -5. The time now is 04:15 PM.