Find the answer to your Linux question:
Results 1 to 7 of 7
hi everybody. i have installed ubuntu to my pc. i made 3 partitions. one for system, one for data and one for swap. two of them were ext4. after some ...
  1. #1
    sey
    sey is offline
    Just Joined!
    Join Date
    Jan 2011
    Posts
    2

    ext3/ext4 filesystem

    hi everybody. i have installed ubuntu to my pc. i made 3 partitions. one for system, one for data and one for swap. two of them were ext4. after some time i have reinstalled ubuntu again. but this time i didn't put to format the second partition, but just mount it using ext4. after that i cannot open my files. checked with gparted shows that 2GB used, but with df 188MB. and in properties writes ext3/ext4 filesystem. i used chown, chgrp but didn't help. please help, these data are ver important. i cannot lose them. thanks.

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    You should be able to mount the partition normally, despite not formatting it. Please post the output of
    Code:
    sudo fdisk -l
    df -h
    and the contents of the file /etc/fstab.

    You may want to try booting up a live CD and see if the partition mounts ok. If so, backup your files to an external drive. (You should always backup important files before messing with installation or partitioning in the future.)

  3. #3
    Linux User sgosnell's Avatar
    Join Date
    Oct 2010
    Location
    Baja Oklahoma
    Posts
    358
    If it was originally an ext3 system, and you're mounting it as ext4, you'll have problems. If it was an ext3 system, mount it as ext3 and it should work.

  4. #4
    sey
    sey is offline
    Just Joined!
    Join Date
    Jan 2011
    Posts
    2
    partition is mounted.

    Code:
    tural@prog:~$ sudo fdisk -l
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xaed45716
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        5593    44920832   83  Linux
    /dev/sda2            5593       19457   111365473+   f  W95 Ext'd (LBA)
    /dev/sda5            5739       19457   110197836   83  Linux
    /dev/sda6            5593        5738     1167360   82  Linux swap / Solaris
    
    Partition table entries are not in disk order
    
    
    tural@prog:~$ sudo df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1              43G  2.0G   39G   5% /
    none                  491M  248K  491M   1% /dev
    none                  497M  1.3M  495M   1% /dev/shm
    none                  497M   84K  497M   1% /var/run
    none                  497M     0  497M   0% /var/lock
    none                   43G  2.0G   39G   5% /var/lib/ureadahead/debugfs
    /dev/sda5             104G  188M   99G   1% /var/docs
    you see df shows 188M but gparted shows 2GB. i have reinstalled ubuntu, now i choosed to mount this partition as ext3. the same 2GB used but no files i can see.

  5. #5
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    You have a root partition /dev/sda1 43G with 2G used, you also have /dev/sda5 for some reason you have this mounted to /var/docs ... my guess is you have wiped data from this partition - hence only 188M used.

    I think your only hope is to shutdown the system, boot from a live CD and you can then try running something like testdisk.

    I suggest you boot from a live CD, and run sudo blkid and confirm partition types.

  6. #6
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    Jonathan183`s view might be correct.
    And after format and an OS installation, your data is at least partly gone.
    Even for tools like testdisk

    Do you have backups?
    You must always face the curtain with a bow.

  7. #7
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    looks like you picked the wrong partition not to reformat, you needed to pick partition #5, not #2 which is just the logical container for your extended partitions

Posting Permissions

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