LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 10-14-2012, 01:38 PM   #1
roopeshvp
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Rep: Reputation: Disabled
Hard disk partition disappeared


I am using Linux Mint 13 Maya on my desktop with a 500 GB hard disk.
I had partitions as shown below when i installed this system.
To my surprise, i see that my hard disk entries have just disappeared. I am simply not able to find them in my media directory or in my computer. To check if it is a problem with my the whole hard disk, i created a new partition in the unused 240 GB of 500 Gb. this new partition was detected correctly and i am able to use it.
How do i recover my other partitions on the disk????

roopesh@Rroopesh-Minto ~ $ sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0x000d0438

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 19531775 9764864 83 Linux
/dev/sda2 19533822 488282111 234374145 5 Extended
/dev/sda3 488295675 498047129 4875727+ 83 Linux
/dev/sda5 19533824 29296639 4881408 82 Linux swap / Solaris
/dev/sda6 29298688 78125055 24413184 83 Linux
/dev/sda7 78127104 488282111 205077504 83 Linux

Disk /dev/sdb: 4020 MB, 4020240384 bytes
92 heads, 27 sectors/track, 3161 cylinders, total 7852032 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: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 * 8192 7852031 3921920 b W95 FAT32
 
Old 10-14-2012, 03:51 PM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,542

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
From your message I don't understand clearly what disappeared.

To help us investigate, please provide full outputs of following commands:
Code:
cat /etc/fstab
and
Code:
df -h
 
Old 10-14-2012, 10:40 PM   #3
roopeshvp
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi Didier,
here is fstab output
roopesh@Rroopesh-Minto ~ $ 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/sda6 during installation
UUID=fcd695f5-8e1a-4e86-a91e-e91ca6a32275 / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=cf318471-e5b2-4b6e-8b28-476c89ea9d9e /boot ext4 defaults 0 2
# /home was on /dev/sda7 during installation
UUID=5af90dea-d993-4761-a14c-682711697ff7 /home ext4 defaults 0 2
# swap was on /dev/sda5 during installation
UUID=6b645a71-62bb-4b7e-91aa-a1e1fc03f5de none swap sw 0 0



output of df -h
roopesh@Rroopesh-Minto ~ $ sudo df -h
[sudo] password for roopesh:
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 24G 3.8G 19G 17% /
udev 1.6G 4.0K 1.6G 1% /dev
tmpfs 656M 1.1M 655M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.6G 612K 1.6G 1% /run/shm
/dev/sda1 9.3G 292M 8.6G 4% /boot
/dev/sda7 196G 29G 158G 16% /home
/dev/sda3 4.7G 198M 4.3G 5% /media/test2
 
Old 10-15-2012, 04:41 AM   #4
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,542

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Everything you had at time of installation is still there :
/dev/sda6 mounted as /
/dev/sda1 mounted as /boot
/dev/sda7 mounted as /home

and in addition:
/dev/sda3 mounted as /media/test2 (the new one you did set up yourself)

So I do not understand your question. What do you miss?
If this is /dev/sdb1, you have to provide an entry for it in /etc/fstab so that it be mounted whilst booting.

Do you know how to edit that file to do that?
 
Old 10-15-2012, 01:58 PM   #5
roopeshvp
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi Didier,

Thank you for pointing this out. I am afraid that i was confused here in understanding the partition. Please pardon my ignorance in the Linux area.
No, i dont know how to edit fstab file. But i am trying my bit after finding some good instructions in web.

Again, thank you so much for all your patience and time.

Roopesh
 
Old 10-15-2012, 02:17 PM   #6
roopeshvp
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi Didier,

Thank you for pointing this out. I am afraid that i was confused here in understanding the partition. Please pardon my ignorance in the Linux area.
No, i dont know how to edit fstab file. But i am trying my bit after finding some good instructions in web.

Again, thank you so much for all your patience and time.

Roopesh
 
Old 10-15-2012, 02:26 PM   #7
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,542

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
First make sure your second hard disk is connected to the system (plugged in, in case it is an USB one).

Then issue following command:
Code:
blkid
For instance here I get following output:
Code:
/dev/sda1: LABEL="RM-CM-)servM-CM-) au systM-CM-(me" UUID="9A185F24185EFF27" TYPE="ntfs" 
/dev/sda2: UUID="78D46329D462E938" TYPE="ntfs" 
/dev/sda5: UUID="97df7ada-41af-4a97-80e8-7d46eba3f099" TYPE="ext4" 
/dev/sda6: UUID="1d717df8-c2db-45ee-9b2e-f06e55ef4f13" TYPE="swap" 
/dev/sda3: UUID="ce9a87aa-1748-4e3a-ac3d-dc782cae358d" TYPE="ext4" 
/dev/sdb1: UUID="ADC0-969D" TYPE="vfat" LABEL="USBSLACKINS"
Then use a text editor as root to append this line at the end of /etc/fstab:
Code:
UUID=ADC0-969D       /media            auto          noauto,user,rw 0   0
Of course replace ADC0-969D with the output of blkid you will get for /dev/sdb1.

After that you will be able to mount the drive with :
Code:
mount /media
But probably your system will detect it when you plug it in then mount it automatically.

If instead it is always attached to your computer, just delete "noauto," so it be automatically mounted at start-up.

Last word: you can replace /media with any existing mount point if you prefer.

Last edited by Didier Spaier; 10-15-2012 at 02:29 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
USB flash disk partition disappeared as well as partition table openmind Linux - Newbie 3 02-17-2011 06:20 PM
Hard disk disappeared after trying to install Ubuntu mohitdaksh Ubuntu 2 08-13-2010 07:52 AM
Hard disk disappeared in system:/media. sloteel Mandriva 11 01-03-2007 08:22 PM
Copy files from partition to partition too slow, SATA hard disk.What should I do£¿ Ryanlee Suse/Novell 20 10-31-2005 08:30 AM
Reclaim disk partition from hard disk installation EStester Linux - General 1 03-09-2005 12:25 PM


All times are GMT -5. The time now is 04:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration