Find the answer to your Linux question:
Results 1 to 4 of 4
I recently got a server advertised as being 80G I got it basicaly to the same specs as a server I am present ly on but have to leave due ...
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    5

    partitions

    I recently got a server advertised as being 80G I got it basicaly to the same specs as a server I am present ly on but have to leave due to to many network outages and down time.
    any ways it came pre installed with directadmin as requested and last night set out to setting up and basicaly mirroring my present server (copying /creating files to same directories) I run a site that hosts a lot of tech how to videos so was proceeding to upload all these vids when I started getting disk full errors, I calculated how much I had uploaded and it was not even 10G. so looked in /var directory and found sda1 through to 8, I dont really know anything about Linux so googled sda1 and found these where partitions, so seems my 80G drive has been partitioned into smaller 10G chunks.
    My question is several parts
    1 - how can I see whats on these other partitions
    2 - is there way to join them all or delete the un needed ones
    3 if I delete these un needed ones will I loose everything like directadmin and all the other work I have done.

    both servers I have the old and new have the same OS same control panel and same HD size and same use of 5 IP the only real difference is the company and location and I check on the old server and there are no partitions I could find and I have full use of all 80G

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,935
    What does "I got a server" mean? Are you talking about a physical hard drive?

    1 - how can I see whats on these other partitions
    Run the fdisk -l command as root.

    2 - is there way to join them all or delete the un needed ones
    You can delete and/or resize them using fdisk or a GUI program like GParted.

    3 if I delete these un needed ones will I loose everything like directadmin and all the other work I have done.
    I don't know what directadmin is but if you delete a partition, you generally lose access to the data on that partition. You could save the data before changing the partitions.

    Post the output of fdisk -l command.

  3. #3
    Just Joined!
    Join Date
    Jan 2009
    Posts
    5
    fdisk -l shows
    Disk /dev/sda: 81.9 GB, 81964302336 bytes
    255 heads, 63 sectors/track, 9964 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 13 104391 83 Linux
    /dev/sda2 14 1318 10482412+ 83 Linux
    /dev/sda3 1319 2623 10482412+ 83 Linux
    /dev/sda4 2624 9964 58966582+ 5 Extended
    /dev/sda5 2624 2884 2096451 83 Linux
    /dev/sda6 2885 3015 1052226 83 Linux
    /dev/sda7 3016 3272 2064321 82 Linux swap / Solaris
    /dev/sda8 3273 9964 53753458+ 83 Linux

    directadmin is just a control panel and makes it easier working with phpmyadmin.

    running CentOS 4 - 32-BIT

    as for ? 1 I knew I could use the fdisk command, but what I ment was how could I actualy see what was on those partitions, example, I upload all my stuff, I am not sure even what partition I am in, I do see how ever sda4 is near 58G and obviously not the partition I am using I just am not sure how to navigate to other partitions to see whats there

  4. #4
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,112
    Your /etc/fstab file will show you where the partitions
    are mounted. Each partition will have a directory as its normal
    mount point. When you put files into that directory, they are
    on the partition that is mounted there. People running servers
    usually love to have a lot of separate partitions so that, if you need
    to reinstall the OS, your data are untouched.

    The command cat /etc/fstab will show the /etc/fstab
    file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •