LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Ubuntu (http://www.linuxquestions.org/questions/forumdisplay.php?f=63)
-   -   Partition disappears after removing FSTAB entry. (http://www.linuxquestions.org/questions/showthread.php?t=4175443526)

Prabhu.Are 12-30-2012 09:38 PM

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..

michaelk 12-30-2012 10:10 PM

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.

Prabhu.Are 12-31-2012 01:31 AM

Quote:

Originally Posted by michaelk (Post 4859806)
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.

michaelk 12-31-2012 07:28 AM

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.


All times are GMT -5. The time now is 10:29 AM.