Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
guys basically my problem is i had a 250Gb hard disk(without partion) installed with Fedora12 today i installed ubuntu by partioning my hard disk by 5gb for / and 299 mb for swap in ubuntu and i made rest partion as do not format...Now, the thing is am not able to view my old data which is of 240 GB....if i open the file system in Ubuntu its showing only the 5Gb filesystem but how to view my fedora12 data which i didnt format
If I am getting it correctly you had a 250 GB hdd on which you had Fedora installed. That was installed on a single partition which I can take as default partition scheme you have selected during install. Is that correct? If that is the case the default layout would have been:
Quote:
/dev/sda1 /
/dev/sda2 swap
or something similar.
Thing that I would like to know is how did you create the partition this time? If /dev/sda1 was in use by / then how can you leave it aside while partitioning?
Can you explain in detail the partition layout that you had earlier and the way you created partition this time.
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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: 0x00062891
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 9764863 4881408 83 Linux
/dev/sda2 9766910 488394751 239313921 5 Extended
/dev/sda5 9766912 10348543 290816 82 Linux swap / Solaris
/dev/sda6 10350592 488394751 239022080 83 Linux
Disk /dev/mapper/cryptswap1: 297 MB, 297795584 bytes
255 heads, 63 sectors/track, 36 cylinders, total 581632 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: 0x723fd529
Disk /dev/mapper/cryptswap1 doesn't contain a valid partition table
this is how it looks can u please tell me how to mount the file system?
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=be17b9d2-0396-40bd-ad20-5240d45da75c / ext3 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
#UUID=e3174672-1218-46c6-9ed8-df1b6875c71f none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
/dev/mapper/control: open failed: Permission denied
Failure to communicate with kernel device-mapper driver.
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: /dev/sr0: unrecognised disk label
0x83 is a code for Linux type partition. That does not tell you anything about the filesystem format. You can find out the filesystem format using parted:
0x83 is a code for Linux type partition. That does not tell you anything about the filesystem format. You can find out the filesystem format using parted:
Code:
sudo parted -l /dev/sda
Model: ATA ST3250318AS (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 5000MB 4999MB primary ext3 boot
2 5001MB 250GB 245GB extended
5 5001MB 5298MB 298MB logical
6 5300MB 250GB 245GB logical
Model: Linux device-mapper (crypt) (dm)
Disk /dev/mapper/cryptswap1: 298MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 298MB 298MB linux-swap(v1)
THIS IS WHAT IT LOOKS.....AND IF I SEE IT IN GPART ITS SHOWING UNKNOWING IS THERE ANY WAY I CAN MOUNT IN GPART
This suggests that what Ubuntu did was repartition your drive, and leave the
last partition w/o a file-system. In other words your Fedora system is no
more, neither is your data...
DD will only enable you to get the data off the hard drive. If the data is *CRUCIAL* to obtain, then I recommend "photorec" and/or "testdisk." Testdisk restores lost partitions (however, if the first 5GB have been overwritten, then the partition will probably be lost), while PhotoRec doesn't even use the filesystem, and searches for fragments of files on the hard drive and attempts to piece them together. Once it finishes, you'll have a whole bunch of file fragments that you're going to have to go through on your own, though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.