Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
i using df -h to check my partition space, below is the result I get Filesystem Size Used Avail Use% Mounted on /dev/sda6 1.9G 1.6G 244M 87% / /dev/sda8 226G ...
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    9

    about filesystem /dev/sda

    i using df -h to check my partition space, below is the result I get

    Filesystem Size Used Avail Use% Mounted on
    /dev/sda6 1.9G 1.6G 244M 87% /
    /dev/sda8 226G 8.5G 206G 4% /home
    /dev/sda7 965M 19M 897M 3% /tmp
    /dev/sda3 76G 4.4G 68G 6% /usr
    /dev/sda2 142G 1.4G 134G 2% /var
    /dev/sda1 1.9G 79M 1.8G 5% /boot
    tmpfs 986M 0 986M 0% /dev/shm

    Now my question is how to access /dev/sda6 drive and clean up some files?

  2. #2
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    Hello and Welcome.
    It looks to me as /dev/sda6 is your root partition. 2 GB is not much space for a distro /root partition, perhaps you should switch one of the other /var/ /usr /tmp partitions with /sda6 since they are so big.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    Which Linux distro are you using? As MikeTbob mentioned already, 2GB is very less space for / partition. You have plenty of disk space (/var 142GB and /home 226GB ).

    Lets check if you can resize partitions. Post the output of fdisk -l command here. You must have root privileges to execute fdisk command.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Sep 2010
    Posts
    9
    Quote Originally Posted by devils casper View Post
    Hi and Welcome !

    Which Linux distro are you using? As MikeTbob mentioned already, 2GB is very less space for / partition. You have plenty of disk space (/var 142GB and /home 226GB ).

    Lets check if you can resize partitions. Post the output of fdisk -l command here. You must have root privileges to execute fdisk command.
    Below is the result for fdisk -l command:

    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 255 2048256 83 Linux
    /dev/sda2 256 19377 153597465 83 Linux
    /dev/sda3 19378 29576 81923467+ 83 Linux
    /dev/sda4 29577 60801 250814812+ 5 Extended
    /dev/sda5 29577 30086 4096543+ 82 Linux swap / Solaris
    /dev/sda6 30087 30341 2048256 83 Linux
    /dev/sda7 30342 30468 1020096 83 Linux
    /dev/sda8 30469 60801 243649791 83 Linux

    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 60801 488384001 83 Linux

  5. #5
    Just Joined!
    Join Date
    Sep 2010
    Posts
    9
    Quote Originally Posted by MikeTbob View Post
    Hello and Welcome.
    It looks to me as /dev/sda6 is your root partition. 2 GB is not much space for a distro /root partition, perhaps you should switch one of the other /var/ /usr /tmp partitions with /sda6 since they are so big.

    The server is not install by me. I'm new in Linux. May I know how to switch folder from one partition to another partition without effect my server system and setup.

  6. #6
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    Quote Originally Posted by albertkhor View Post
    The server is not install by me. I'm new in Linux. May I know how to switch folder from one partition to another partition without effect my server system and setup.
    Can you please explain exactly what you want to do. I would hate to give you bad advice, not knowing exactly what you are trying to do.

    You are wanting to free up some disk space on the /root partition? Or just copy some files?
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  7. #7
    Just Joined!
    Join Date
    Sep 2010
    Posts
    9
    Quote Originally Posted by MikeTbob View Post
    Can you please explain exactly what you want to do. I would hate to give you bad advice, not knowing exactly what you are trying to do.

    You are wanting to free up some disk space on the /root partition? Or just copy some files?
    I want to free up some disk space on the /root partition. if after clean still not enough space then i want to do copy files.

    I have another question, for my server is all "/home", "/tmp", "/usr", "/var", "/boot" under "/" directory?
    Code:
    /dev/sda6 1.9G 1.6G 244M 87% /
    /dev/sda8 226G 8.5G 206G 4% /home
    /dev/sda7 965M 19M 897M 3% /tmp
    /dev/sda3 76G 4.4G 68G 6% /usr
    /dev/sda2 142G 1.4G 134G 2% /var
    /dev/sda1 1.9G 79M 1.8G 5% /boot

  8. #8
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    Quote Originally Posted by albertkhor View Post
    I want to free up some disk space on the /root partition. if after clean still not enough space then i want to do copy files.

    I have another question, for my server is all "/home", "/tmp", "/usr", "/var", "/boot" under "/" directory?
    Code:
    /dev/sda6 1.9G 1.6G 244M 87% /
    /dev/sda8 226G 8.5G 206G 4% /home
    /dev/sda7 965M 19M 897M 3% /tmp
    /dev/sda3 76G 4.4G 68G 6% /usr
    /dev/sda2 142G 1.4G 134G 2% /var
    /dev/sda1 1.9G 79M 1.8G 5% /boot
    No, those are all separate partitions. How are you accessing this machine? Are you working over a network or something? I'm curious about your system, are you concerned that /sda6 is getting low on disk space? There shouldn't be anything on / to delete because everything is going to /var, /usr, /tmp and /home, this means that the / partition shouldn't be getting full. Do you understand what I mean? How long has this machine been running?
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  9. #9
    Just Joined!
    Join Date
    Sep 2010
    Posts
    9
    Quote Originally Posted by MikeTbob View Post
    No, those are all separate partitions. How are you accessing this machine? Are you working over a network or something? I'm curious about your system, are you concerned that /sda6 is getting low on disk space? There shouldn't be anything on / to delete because everything is going to /var, /usr, /tmp and /home, this means that the / partition shouldn't be getting full. Do you understand what I mean? How long has this machine been running?
    I access the server using Putty. This server is only use for 2 months. I scare in future /sda6 will full and make my server down. The server is install by web hosting company, I purchase a dedicated server.

  10. #10
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    That's good to know. I feel like you would be better served by waiting until someone else can chime in on this topic. I'm not very good at servers and I don't know much about system administration over a network. I'm sure someone will be along shortly.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

Page 1 of 2 1 2 LastLast

Posting Permissions

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