Find the answer to your Linux question:
Results 1 to 3 of 3
Hi While using LVM GUI (SLES10 SP2) I accentually increased the size of /opt to 160GB, when I tried to reduce it , I got an error message stating you ...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    4

    damaged /opt need to repair it manually :(

    Hi

    While using LVM GUI (SLES10 SP2) I accentually increased the size of /opt to 160GB, when I tried to reduce it , I got an error message stating you could not reduce /opt as it was mounted, So
    I uncounted /opt using umount –l, but some the LVM GUI stopped working, (obviously using something in /opt) so I rebooted then opened up a ssh session from my desktop, umounted /opt with umount –l /opt the ran the following to reduce the size of /opt

    # resize_reiserfs -s-8G /dev/system/opt
    # lvreduce -L-8G /dev/system/opt
    # mount –t reiserfs /dev/system/opt /opt

    I rebooted but could not get the GUI to load, when I got the the following message “ Fsck failed for at least one filesystem
    (not /)Please Repair manually”

    I have obviously damaged /opt, is their a way I can boot up using the rescue disk and copy /opt on the rescue disk to replace the /opt which I have damaged??

    I am fairly new to all this so I am stuck big time.



    Thanks in advance

  2. #2
    Linux User
    Join Date
    Sep 2008
    Location
    UK
    Posts
    353
    Have you tried doing just what the error msg says and running fsck manually?
    The command is:
    fsck /dev/opt-partiton
    where opt-partiton is the name of the /opt partiton (sda(or b)1,2,3 or hda(or b) etc).
    If you do fsck --help it will give you the syntax.
    If the system doesn't boot to a recovery mode, you should be able to use any live dvd to do it.

  3. #3
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    I think it would be handy to know exactly how you are partitioned?

    as root

    fdisk -l

    post results

    also the results of
    mount
    might be handy

Posting Permissions

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