Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Linux newbie problem

Linux newbie problem

Scheduled Pinned Locked Moved System Admin
questiondatabasesql-servercomsysadmin
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Daniel Turini
    wrote on last edited by
    #1

    As you'll soon notice, I'm a newbie in RH administration: I've setup a Linux RH 7.2 some time ago, and, as I don't know which are the best practices in it, let it to "auto-partition" the disk. I've put a cron job to up2date -f -u daily the updates, so I have a updated setup and it is working fine until today. But now, the problem is, my RH box is trying to download the new kernel version and can't, because there is no 6Mb of disk space free on the '/' partition:

    [root@linux /root]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/hda8 251M 216M 22M 91% /
    /dev/hda1 53M 14M 37M 27% /boot
    /dev/hda6 3.9G 95M 3.6G 3% /home
    /dev/hda5 3.9G 1.3G 2.5G 33% /usr
    /dev/hda7 251M 68M 170M 29% /var

    As you can see I have plenty of space on the other partitions. My questions are: 1. How can I resize the '/' partition without destroying the machine, or, at least, free some space on it? 2. Why does it says it needs 6Mb if there is 22Mb free? My latest article: SQL Server DO's and DONT's[^]

    M 1 Reply Last reply
    0
    • D Daniel Turini

      As you'll soon notice, I'm a newbie in RH administration: I've setup a Linux RH 7.2 some time ago, and, as I don't know which are the best practices in it, let it to "auto-partition" the disk. I've put a cron job to up2date -f -u daily the updates, so I have a updated setup and it is working fine until today. But now, the problem is, my RH box is trying to download the new kernel version and can't, because there is no 6Mb of disk space free on the '/' partition:

      [root@linux /root]# df -h
      Filesystem Size Used Avail Use% Mounted on
      /dev/hda8 251M 216M 22M 91% /
      /dev/hda1 53M 14M 37M 27% /boot
      /dev/hda6 3.9G 95M 3.6G 3% /home
      /dev/hda5 3.9G 1.3G 2.5G 33% /usr
      /dev/hda7 251M 68M 170M 29% /var

      As you can see I have plenty of space on the other partitions. My questions are: 1. How can I resize the '/' partition without destroying the machine, or, at least, free some space on it? 2. Why does it says it needs 6Mb if there is 22Mb free? My latest article: SQL Server DO's and DONT's[^]

      M Offline
      M Offline
      markkuk
      wrote on last edited by
      #2

      1. If there's unpartitioned space after /dev/hda8 you can use parted to extend the root partition. In Red Hat Linux 8 you could use LVM to dynamically resize your partitions. 2. Did you run that df -h while up2date was running? It may have created some temporary files (in /tmp) before giving the error message about missing space.

      D 1 Reply Last reply
      0
      • M markkuk

        1. If there's unpartitioned space after /dev/hda8 you can use parted to extend the root partition. In Red Hat Linux 8 you could use LVM to dynamically resize your partitions. 2. Did you run that df -h while up2date was running? It may have created some temporary files (in /tmp) before giving the error message about missing space.

        D Offline
        D Offline
        Daniel Turini
        wrote on last edited by
        #3

        markkuk wrote: 1. If there's unpartitioned space after /dev/hda8 you can use parted to extend the root partition. In Red Hat Linux 8 you could use LVM to dynamically resize your partitions. Unfortunately, this is not my case:

        Using /dev/hda
        Information: The operating system thinks the geometry on /dev/hda is
        1247/255/63. Therefore, cylinder 1024 ends at 8032.499M.
        (parted) print
        Disk geometry for /dev/hda: 0.000-9787.148 megabytes
        Disk label type: msdos
        Minor Start End Type Filesystem Flags
        1 0.031 54.909 primary ext2 boot
        2 54.910 9781.765 extended
        5 54.940 4141.757 logical ext2
        6 4141.789 8228.605 logical ext2
        7 8228.637 8487.465 logical ext2
        8 8487.497 8746.325 logical ext2
        9 8746.356 9005.185 logical linux-swap
        (parted)

        Is there a way of moving the '/' filesystem (is that the word?) into another partition? Or will I have to completely rebuild the machine? My latest article: SQL Server DO's and DONT's[^]

        M 1 Reply Last reply
        0
        • D Daniel Turini

          markkuk wrote: 1. If there's unpartitioned space after /dev/hda8 you can use parted to extend the root partition. In Red Hat Linux 8 you could use LVM to dynamically resize your partitions. Unfortunately, this is not my case:

          Using /dev/hda
          Information: The operating system thinks the geometry on /dev/hda is
          1247/255/63. Therefore, cylinder 1024 ends at 8032.499M.
          (parted) print
          Disk geometry for /dev/hda: 0.000-9787.148 megabytes
          Disk label type: msdos
          Minor Start End Type Filesystem Flags
          1 0.031 54.909 primary ext2 boot
          2 54.910 9781.765 extended
          5 54.940 4141.757 logical ext2
          6 4141.789 8228.605 logical ext2
          7 8228.637 8487.465 logical ext2
          8 8487.497 8746.325 logical ext2
          9 8746.356 9005.185 logical linux-swap
          (parted)

          Is there a way of moving the '/' filesystem (is that the word?) into another partition? Or will I have to completely rebuild the machine? My latest article: SQL Server DO's and DONT's[^]

          M Offline
          M Offline
          markkuk
          wrote on last edited by
          #4

          Moving the root fs ('/') is possible, but tricky. You could split your '/home' partition into two to create your new '/' partition, then format it and copy everything from old '/' (use cp -ax, edit /etc/fstab and /boot/grub/grub.conf to match the new partition layout.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups