Find the answer to your Linux question:
Results 1 to 4 of 4
Respective sir, I have Centos-6.2 on my system(P-4,1GB RAM, 80GB hdd).While working on my system I just face one problem my all folder get symbol of lock so I go ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2012
    Posts
    5

    Post Kernel Panic in centos -6.2


    Respective sir,
    I have Centos-6.2 on my system(P-4,1GB RAM, 80GB hdd).While working on my system I just face one problem my all folder get symbol of lock so I go for open terminal but my terminal is also not opened.So I shut down my pc without proper way.After restart my system I got shell prompt.their is one message (Give root password or press Ctrl-d)
    so I give my password I got root system#rompt which is saying run fsck manually without -a -p so I run this option and again restart my system.In single mode user Here on root prompt I just type fsck -t ext3 /dev/sda3 and press enter that time I got warning message that checking mounted filesystem may damage your filesystem but I ignor the warning and I start file checking and pressing Enter continously. after some time I restart my computer and when I try to start in normal mode that time I got following error.

    mount:/dev/sda3 already mounted or /sysroot busy
    according to mtab,/dev/sda3 is already mounted on /syroot.


    I know I myself created this problem by forcefully checking mounted filesystem but after this I try take another hard disk in that harddisk I have Ubuntu 12.04 LTS I start ubuntu in single user mode and here when I try to mount the centos root partition (i.e mount -t ext3 /dev/sda3 /media) in ubuntu that time I got message on prompt as follow

    mount: mount point /mount does not exist
    root kiran-System-Name:/# mount -t ext3 /dev/sda3 /media
    mount: wrong fs type, bad option, bad superblock on /dev/sda3,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so

    After this when I try to check file system by(fsck this is also not working)

    Then after this I start my system in normal mode and when Idouble click on my centos root partition that time it is showing only lost+found folder in it no other folders are their so how can I take my system to its prevoius mode.

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757
    Quote Originally Posted by kiranursal View Post
    Respective sir,
    root kiran-System-Name:/# mount -t ext3 /dev/sda3 /media
    mount: wrong fs type, bad option, bad superblock on /dev/sda3,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    Please post the output for following commands

    Code:
    blkid
    Code:
    fdisk -l
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  3. #3
    Just Joined!
    Join Date
    Mar 2012
    Posts
    5
    Respective sir actually I was using wrong mount command to mount when I use
    Code:
    mount -t ext4  /dev/sda3 /media
    that time my centos patition is mounted in ubuntu12.04 but it shows only lost+found folder in it this folder contains so many files name starting with#(eg.#76345252) so I think this are files with inode number so will u please told me how to recover this files from this mode and as you told totry commands I try it and I got out put as follows
    Code:
    root@kiran-System-Name:/# blkid
    /dev/sda1: UUID="f73f27b6-2ce8-4a96-9954-59927a85f79f" TYPE="ext4" 
    /dev/sda2: UUID="406ebf08-bb1e-4335-a784-a114d9ac2a1e" TYPE="swap" 
    /dev/sda3: UUID="bc4c81e4-6c4d-4cf0-9072-ff4cd8ebb070" TYPE="ext4" 
    /dev/sda5: UUID="ebd475eb-8a4c-4f92-965e-1760a5c25847" SEC_TYPE="ext2" TYPE="ext3" 
    /dev/sdb1: LABEL="REDHAT1" UUID="EEC5-9F32" TYPE="vfat" 
    /dev/sdb2: LABEL="REDHAT2" UUID="2ED0-0C20" TYPE="vfat" 
    /dev/sdb5: UUID="5783dc40-b87a-4ffb-85cc-1ce3a596b6b0" TYPE="ext4" 
    /dev/sr0: LABEL="Idea Net Setter" TYPE="iso9660" 
    
    root@kiran-System-Name:/# fdisk -l
    
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x101b101a
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048     1435647      716800   83  Linux
    /dev/sda2         1435648     5531647     2048000   82  Linux swap / Solaris
    /dev/sda3         5531648    56324095    25396224   83  Linux
    /dev/sda4        56326142   156301311    49987585    5  Extended
    /dev/sda5        56326144   156301311    49987584   83  Linux
    
    Disk /dev/sdb: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xda466af2
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *          63    55295729    27647833+   c  W95 FAT32 (LBA)
    /dev/sdb2        55295730   110591459    27647865    c  W95 FAT32 (LBA)
    /dev/sdb3       110591998   156301311    22854657    5  Extended
    /dev/sdb5       110592000   156301311    22854656   83  Linux
    root@kiran-System-Name:/#
    It possible to recover this inodes

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757
    Thanks for the outputs

    HTML Code:
     it shows only lost+found folder in it this folder contains so many files name starting with#(eg.#76345252) so I think this are files with inode number so will u please told me how to recover this files from this mode
    When you ran the fsck commands - these files got recovered and placed under lost+found directory. I don't think there exist a way to convert these filename (#<inodenum>) into actual file-names.

    I think you have to rename the files from lost+found manually.



    Quote Originally Posted by kiranursal View Post
    Respective sir
    Btw, you don't need to be so formal :P We are just Linux users like you
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

Posting Permissions

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