LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 12-30-2012, 10:38 PM   #1
Prabhu.Are
LQ Newbie
 
Registered: Oct 2012
Posts: 24

Rep: Reputation: Disabled
Partition disappears after removing FSTAB entry.


HI, I'm using ubuntu 10.10. I have 3 partition, in this I have added a partition in fstab successfully few days back and it was mounting exactly where I want the partition to be mount. But now I removed the added partition in fstab, and then I restarted it. It should suppose to appear all the three partition in computer but I'm able to see only one partition after restarting. I did the ubuntu recovery as well, but still the same.

FDISK OUTPUT
Code:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 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: 0x9c683389

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       12450    99998720   83  Linux
/dev/sda2           12450       60802   388384769    5  Extended
/dev/sda5           12450       13072     4999168   82  Linux swap / Solaris
/dev/sda6           13073       25521    99995648   83  Linux
/dev/sda7           13072       13072         872+  83  Linux

Partition table entries are not in disk order

Disk /dev/sdb: 4005 MB, 4005560320 bytes
20 heads, 21 sectors/track, 18627 cylinders
Units = cylinders of 420 * 512 = 215040 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c8662

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       18628     3911648+   b  W95 FAT32

BLKID OUTPUT
Code:
/dev/sda1: UUID="ff837c69-af5d-45ac-96ca-687a7ac2b0ec" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda5: UUID="97fc8669-933c-4d2c-b0fa-1ec4875b1b12" TYPE="swap" 
/dev/sda6: LABEL="GIFFLIN" UUID="e7e01f20-86f1-481c-962a-9f37070f1dba" TYPE="ext4" 
/dev/sdb1: LABEL="SRISIVA ST" UUID="BCD0-1038" TYPE="vfat"

FSTAB OUTPUT
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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
/dev/sda1       /               ext3    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=97fc8669-933c-4d2c-b0fa-1ec4875b1b12 none            swap    sw              0       0
#LFS=/mnt/lfs
UUID=d755fe37-40d2-4a51-aa42-1dfd8badbde5 /mnt/lfs	ext3	 errors=remount-ro 0       1

how to resolve this..

Last edited by Prabhu.Are; 12-30-2012 at 10:41 PM.
 
Old 12-30-2012, 11:10 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,152

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
The UUID d755fe37-40d2-4a51-aa42-1dfd8badbde5 posted in your fstab does not match any existing UUID from the output of the blkid command so whatever partition it was will not mount. If you reformat a partition its UUID will change. If sda7 was never formatted with a filesystem it will not have a UUID and it is a bit small too.

So it is difficult to determine exactly what you were doing or trying to accomplish without more information. You can mount a partition by its device ID i.e. /dev/sda6, its label or by its UUID.
 
Old 12-31-2012, 02:31 AM   #3
Prabhu.Are
LQ Newbie
 
Registered: Oct 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
The UUID d755fe37-40d2-4a51-aa42-1dfd8badbde5 posted in your fstab does not match any existing UUID from the output of the blkid command so whatever partition it was will not mount. If you reformat a partition its UUID will change. If sda7 was never formatted with a filesystem it will not have a UUID and it is a bit small too.

So it is difficult to determine exactly what you were doing or trying to accomplish without more information. You can mount a partition by its device ID i.e. /dev/sda6, its label or by its UUID.
This UUID belongs to sda7 I tried to format using fdisk It was throughing me a error. even I tried to mount that partition, It says that it cant find the partition in fstab or mtab.
 
Old 12-31-2012, 08:28 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,152

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Only root can format a file system and mount if it is not in fstab (with the proper options). What were the errors messages?

Quote:
Device Boot Start End Blocks Id System
/dev/sda6 13073 25521 99995648 83 Linux
/dev/sda7 13072 13072 872+ 83 Linux
Have you tried to manually mounting /sda6 as root or adding it to fstab?

/sda7 start block is overlapping /sda6 and without actually calculating the numbers might be to small for a journaling file system. You will need to delete sda7 and recreate it.
 
  


Reply

Tags
fdisk, linux, partition, ubuntu


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
does wrong type entry in fstab corrupts the partition ? ununun Linux - Hardware 10 06-16-2011 03:53 AM
what I type for given entry in /etc/fstab for mounting a partition dipanjan Linux - General 11 07-28-2008 10:22 AM
Making an entry in fstab for new xfs partition Cinematography Linux - Hardware 2 09-16-2007 10:39 PM
fstab entry for windows partition stratotak Debian 2 02-15-2007 07:09 AM
Mounting USB-Stick - entry in fstab disappears at reboot??? rot Linux - General 5 08-07-2003 04:37 AM


All times are GMT -5. The time now is 05:30 AM.

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