Find the answer to your Linux question:
Results 1 to 6 of 6
Hello everyone output of fdisk -l on my Redhat 5.5 is as follows Code: Device Boot Start End Blocks Id System /dev/sda1 * 1 2490 20000893+ 83 Linux /dev/sda2 2491 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User bilal_jan's Avatar
    Join Date
    Mar 2008
    Location
    Pakistan
    Posts
    281

    getting data back from a partition after installing new RHEL 5.5.


    Hello everyone output of fdisk -l on my Redhat 5.5 is as follows
    Code:
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        2490    20000893+  83  Linux
    /dev/sda2            2491        9729    58147267+   5  Extended
    /dev/sda5            2491        2614      995998+  82  Linux swap / Solaris
    /dev/sda6            2615        7594    40001818+  83  Linux
    /dev/sda7            7595        9729    17149356   83  Linux
    While mount commad output is as follows
    Code:
    /dev/sda1 on / type ext3 (rw)
    proc on /proc type proc (rw)
    sysfs on /sys type sysfs (rw)
    devpts on /dev/pts type devpts (rw,gid=5,mode=620)
    tmpfs on /dev/shm type tmpfs (rw)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
    sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
    none on /var/lib/xenstored type tmpfs (rw)
    before installing Redhat i was using Ubuntu on my system and i have some very precious data stored on sd6 and sd7.
    what should i do to mount sd6 and sd7 into my Redhat distro to get my data on sd6 and sd7 read by rhel 5.5
    thanks
    Linux is basically a simple operating system, but you have to be a genious to understand the simplicaity - Dennis Ritchie

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    It looks like data is intact in sda6 and sda7 because RH is using only sda1 partition.
    In which filesystem sda6 and sda7 have been formatted?
    Have you tried to mount sda6 partition manually?
    Code:
    su -
    cd /media
    mkdir sda6 sda7
    mount -t  filesystem  /dev/sda6  /media/sda6
    mount  -t  filesystem /dev/sda7  /media/sda7
    Check /media/sda6 and sda7 folders.

    In case it doesn't work, you have to boot up from Ubuntu LiveCD and mount both partitions.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux User bilal_jan's Avatar
    Join Date
    Mar 2008
    Location
    Pakistan
    Posts
    281
    u got it so right
    thanks man
    i tried ext2,ext3 both of them didnt worked so i treid ext4 it worked.
    is there any way to check wt filesystem these partitions are using?
    Linux is basically a simple operating system, but you have to be a genious to understand the simplicaity - Dennis Ritchie

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,737
    Usually if you omit the type information when mounting a partition, mount will figure it out for you. However, sometimes it can't and you will have to supply the type to it. At least you were able to get the ext4 drivers with your RHEL system. I think it has been included in the latest kernel updates. I know it is now on my CentOS 5.5 system (running latest kernel) and the dates on the ext4 tools (fsck, mkfs) are March 31, 2010. Of course that may correspond with the last time I configured and built a custom kernel as well...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Execute blkid command with root privileges to check filesystem of partitions.
    In Ubuntu, execute this
    Code:
    sudo blkid
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #6
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,737
    Re. blkid - thanks DC. I forgot about that. Must be one of those senior Fritz (as in Alzheimer) moments!
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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