[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems with partitions



Romulo Sousa wrote:
 > My girlfriend's box has 40GB IDE disk and it has the following layout:
> 
> hda1   10GB NTFS              windows
> hda2   512M  swap                swap
> hda3   15MB   Linux              /boot            
> hda4   5GB   Extended          /var
> hda5   5GB    Linux                /
> 
Try fdisk -l to see the partitions--what was pasted here doesn't make
sense to me.  Extended partitions hold logical partitions, so /var
cannot be an extended partition (but it can be on a logical partition
within the extended partition).

On my box it shows:
# fdisk -l /dev/hdb

Disk /dev/hdb: 30.7 GB, 30735581184 bytes
255 heads, 63 sectors/track, 3736 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1        1621    13020651   83  Linux
/dev/hdb3            1792        3736    15623212+  83  Linux
/dev/hdb4            1622        1791     1365525    5  Extended
/dev/hdb5            1622        1791     1365493+  82  Linux swap / Solaris


On my box, /dev/hdb5 is a logical partition within the extended
partition of /dev/hdb4.

> After the installation of the whole system (unstable), i noticed that
> the there were something strange at df -h cuz i had almost 50% of the
> disk space being used!
> 1 - I would like to know how can i mount the hda4 partition. 
> I read the man-page, but i couldn't find any clue to to that. since
> Extended is not a file system, i have a doubt about how can i mount
> that.

Correct, you wouldn't be able to mount the extended partition, but you
can mount the logical partition(s) that are within the extended partition.

> 
> 2 - Further, how can i put it into my rc2 for mounting the system all
> the time it is rebooted.
> 
That would be done within /etc/fstab, so you'd have an entry like the
following:

partition     /mountpoint     filesystemtype options     0       0


For example, I have my /home partition mounted at boot-up with the
following entry:

/dev/hda2   /home       xfs     defaults           0       2

> Moreover, i think i have space not used (i'm not sure about the /
> partition size).
> 3 - Assuming that the information about hda5 above is correct, how can
> i reorganize the whole file systems? Is it possible to see the
> remaining space available into the physical disk?
> 
Paste the output of "fdisk -l" and I'll try to go from there.



Reply to: