LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-21-2012, 01:47 PM   #1
$u$hil_k$
LQ Newbie
 
Registered: Jan 2012
Posts: 23

Rep: Reputation: Disabled
Lost fedora partition when installing ubuntu?


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
 
Old 03-21-2012, 01:50 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Seems to me you need to mount the partition.

Kind regards
 
Old 03-21-2012, 01:58 PM   #3
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi $u$hil_k$,

Welcome to LQ!!!

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.
 
Old 03-21-2012, 02:23 PM   #4
$u$hil_k$
LQ Newbie
 
Registered: Jan 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
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?
 
Old 03-21-2012, 02:34 PM   #5
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Paste the output of the following commands:

1.
Code:
sudo df -h
2.
Code:
sudo cat /etc/fstab
3.
Code:
parted -l /dev/sda
 
Old 03-21-2012, 02:36 PM   #6
WarTurkey
Member
 
Registered: Jun 2009
Posts: 67

Rep: Reputation: 16
Did you try to mount sda6? That looks like that might be the one. Open a Terminal in Ubuntu and type:
Code:
sudo -s
mkdir /mnt/fedora
mount -t ext2 /dev/sda6 /mnt/fedora
Then you should be able to access the partition from the Filesystem in Ubuntu, as long as it's an ext2 partition. Otherwise, try ext3/ext4.
 
Old 03-21-2012, 02:40 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by WarTurkey View Post
Did you try to mount sda6? That looks like that might be the one. Open a Terminal in Ubuntu and type:
Code:
sudo -s
mkdir /mnt/fedora
mount -t ext2 /dev/sda6 /mnt/fedora
Then you should be able to access the partition from the Filesystem in Ubuntu, as long as it's an ext2 partition. Otherwise, try ext3/ext4.
Or just omit the -t flag ... w/ Linux file-systems mount is pretty good with
guessing what it's dealing with.




P.S.: Sushil, I took the liberty to rename your thread; the title you chose
was pretty pointless.
 
Old 03-21-2012, 02:40 PM   #8
$u$hil_k$
LQ Newbie
 
Registered: Jan 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
sudo df -h

Filesystem Size Used Avail Use% Mounted on
/dev/sda1 4.6G 4.0G 422M 91% /
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 791M 820K 790M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 132K 2.0G 1% /run/shm
/home/sushilks/.Private 4.6G 4.0G 422M 91% /home/sushilks
/dev/sr0 4.2G 4.2G 0 100% /media/20120114_1237

----------------------------------------------------------------------------

sudo cat /etc/fstab

# /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


-----------------------------------------------------------------------------------------------------

parted -l /dev/sda


/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
 
Old 03-21-2012, 02:51 PM   #9
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

After looking at the output it appears that the partition that we are looking for is /dev/sda6. You can mount it using:

Code:
sudo mount /dev/sda6 /media
You can create a separate folder as suggested by WarTurkey or you can using either /mnt or /media (as mentioned above)

And I forgot to mention that for parted -l /dev/sda you have to use sudo. So basically it will look like:

Code:
sudo parted -l /dev/sda
But we have the information we were looking for. Try mounting the partition /dev/sda6 and see if that works.

Last edited by T3RM1NVT0R; 03-21-2012 at 02:52 PM.
 
Old 03-21-2012, 02:54 PM   #10
$u$hil_k$
LQ Newbie
 
Registered: Jan 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by WarTurkey View Post
Did you try to mount sda6? That looks like that might be the one. Open a Terminal in Ubuntu and type:
Code:
sudo -s
mkdir /mnt/fedora
mount -t ext2 /dev/sda6 /mnt/fedora
Then you should be able to access the partition from the Filesystem in Ubuntu, as long as it's an ext2 partition. Otherwise, try ext3/ext4.
the partion type is Linux(0x83)
 
Old 03-21-2012, 03:00 PM   #11
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

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
 
Old 03-21-2012, 03:04 PM   #12
$u$hil_k$
LQ Newbie
 
Registered: Jan 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by T3RM1NVT0R View Post
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
 
Old 03-21-2012, 03:08 PM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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...
 
Old 03-24-2012, 04:59 AM   #14
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Now if you want to recover your data you could use DD, that also will increase your skills quite a bit. There is a lot to learn from that!

Regards
 
Old 03-30-2012, 09:05 AM   #15
WarTurkey
Member
 
Registered: Jun 2009
Posts: 67

Rep: Reputation: 16
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.
 
  


Reply

Tags
fedora 12, ubuntu 11.04



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Lost Ubuntu after installing OpenSUSE Marlboroman Linux - Newbie 3 03-02-2012 11:23 AM
[SOLVED] Ubuntu Reinstall with same /home partition, all seems lost but still 13gb disk space TwoGuesses Linux - Software 9 08-19-2011 10:29 AM
Is ubuntu or fedora supports installing on GPT-based partition? gabeyg Linux - General 1 08-19-2007 06:58 PM
Fedora 2 - (KDE 3.2.2-4 Red Hat) Lost Partition? dns21 Linux - Newbie 6 08-03-2004 03:36 AM
I have lost my xp after installing fedora core 1 hamidreza_gh Linux - Newbie 4 07-25-2004 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration