View previous topic :: View next topic |
Author |
Message |
-=GGW=- $ol!d $n4>|e Veteran
Joined: 12 Apr 2004 Posts: 1616 Location: USA
|
Posted: Sun Dec 26, 2004 3:27 am Post subject: Partitions are confusing me... |
|
|
I've been having some partition trouble. I've got a 200GB hard drive and according to cfdisk it looks like this:
hde1 - primary - 10 GB (ext3)
hde2 - primary - 120 GB (ext3)
hde5 - logical 50 GB (3xt3)
hde6 - logical 500 MB (swap)
Hde4 - primary - 10 GB (ext3)
I've cleared most of my data, deleted and repartitioned most of the drive. But I still get various problems when I go to install or move files. And I want in to be stable before I go through with another installation
I ran e2fsck and got something like this:
Code: | e2fsck -v -y hde1'
the size of the filesystem (according to the superblock) is 4899817. The physical size of the filesystem is 2455613.
Either the superblock or the partition table is corrupt |
I would just wipe it and start over but I've got about 30 GB of data left that I really can't loose. help. |
|
Back to top |
|
|
ebrostig Bodhisattva
Joined: 20 Jul 2002 Posts: 3152 Location: Orlando, Fl
|
Posted: Sun Dec 26, 2004 4:10 am Post subject: |
|
|
A 200GB disk normally give you less than 200Gb of available space.
Disk manufacturers give the raw size and not the size that is usable.
check the capacity with:
cat /proc/ide/hde/capacity
The number given is in 512-byte blocks.
Erik _________________ 'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.' |
|
Back to top |
|
|
hoochiepapa Tux's lil' helper
Joined: 02 Oct 2002 Posts: 105
|
Posted: Sun Dec 26, 2004 4:21 am Post subject: |
|
|
how do you plan on laying out your filesystem?
I'm now building off a 200G disk.
my (incomplete) layout is:
/dev/a1 /boot 100M
/dev/hda2 swap 2G
/dev/hda3 / 4G
/dev/hda4 extended (rest of disk)
/dev/hda5 /usr 6
/dev//hda6 /var 6G
/dev/hda7 /opt 2G
/dev/hda8 /tmp 2G (that large for vmware)
/dev/hda9 /usr/local 20G
/dev/hda10 /home 10G
that leaves me with a lot of yet to be allocated space. |
|
Back to top |
|
|
ebrostig Bodhisattva
Joined: 20 Jul 2002 Posts: 3152 Location: Orlando, Fl
|
Posted: Sun Dec 26, 2004 4:37 am Post subject: |
|
|
Be careful when sizing partitions, you may soon run out of space unless you are well versed into sizing them.
I personally prefer to partition my disks as little as possible in order to avoid running out of space.
I normally partition the main disk in 3 parts, /boot, swap and /
If I have more than 1 disk, I normally make a single partition on the second disk as /home
It all depends on what you are going to use the disks for.
Erik _________________ 'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.' |
|
Back to top |
|
|
thechris Veteran
Joined: 12 Oct 2003 Posts: 1203
|
Posted: Sun Dec 26, 2004 4:45 am Post subject: |
|
|
i agree. you may concider lvm2, or sylinks. making stuff like:
ln -s /opt/.usr/local /usr/local
this way all files put in /usr/local are put in the opt partition. |
|
Back to top |
|
|
-=GGW=- $ol!d $n4>|e Veteran
Joined: 12 Apr 2004 Posts: 1616 Location: USA
|
Posted: Sun Dec 26, 2004 7:40 am Post subject: |
|
|
Cool, but how do I fix the superblock. The main problem I'm having is that the size according to the superblock is not the same as what is actually on the drive, how do I fix this so that I don't loose any more data....
peace |
|
Back to top |
|
|
|