LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to mount (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-mount-937223/)

amartlk 03-30-2012 02:27 AM

unable to mount
 
Hi

I have centos 5.3 installed , i make one partition of free space using fdisk , i create mount point and manually add it is mounted and accessible but when i make entry of this mount point in fstab it is stuck at boot give error "unable fsck.ext3 unable to ressolve 'LABEL=/mountpoint name"

catkin 03-30-2012 02:54 AM

Did you format the partition and label it?

What does the fstab line look like?

amartlk 03-30-2012 03:03 AM

Hi

I already format the partition

fstab line look as follows

LABEL=/mountpoint name /mountpoint name ext3 defaults 1 2

singhjc 03-30-2012 03:17 AM

hi put the entry manually like in fstab.


/dev/sda(labelname) /mountpoint ext3 defaults 1 2




may your system got boot successfully if any error persist then paste the output of fstsb .

amartlk 03-30-2012 04:38 AM

Hi

I tried LABEL=/dev/hda6 /mountpoint ext3 defaults 1 2 but still same error as

"unable fsck.ext3 unable to ressolve 'LABEL=/dev/hda6 "

Satyaveer Arya 03-30-2012 05:17 AM

Please post the output of fdisk -l

jschiwal 03-30-2012 05:32 AM

Quote:

Originally Posted by amartlk (Post 4640490)
Hi

I tried LABEL=/dev/hda6 /mountpoint ext3 defaults 1 2 but still same error as

"unable fsck.ext3 unable to ressolve 'LABEL=/dev/hda6 "

A label is the name you gave the filesystem, not the device name. If you know the device node is /dev/hda6, then just use /dev/hda6. However, for modern versions of the kernel, the device node would be /dev/sda6.

You could also use "UUID=<UUID #>" instead, where the UUID # is the UUID of the filesystem. This will allow you to mount the filesystem, even if you changed the partitioning.

You can discover the Label, UUID and filesystem type using "blkid":
sudo /sbin/blkid /dev/sda6
or
sudo /sbin/blkid /dev/sda*
to list info about all partitions on the first hard drive.

Code:

jschiwal@qosmio:~> sudo /sbin/blkid /dev/sda*
/dev/sda1: LABEL="TOSHIBA SYSTEM VOLUME" UUID="14D23645D2362AFE" TYPE="ntfs"
/dev/sda2: LABEL="SQ004753V05" UUID="145266D35266B95E" TYPE="ntfs"
/dev/sda4: LABEL="HDDRECOVERY" UUID="7CEC8E10EC8DC4BC" TYPE="ntfs"
/dev/sda5: UUID="d2b1c4ed-b440-1894-4ddb-6bd9e7081e1e" TYPE="swap"
/dev/sda6: UUID="6bb36361-d9bd-43a8-bdb8-bc2eb23105d5" TYPE="ext4"
/dev/sda7: UUID="cc874c16-bfcf-4b71-ba7f-8d6cdb212347" TYPE="ext4"

The device nodes are in the first column. The LABEL is listed only if the filesytem has one.

amartlk 03-31-2012 12:16 AM

hi


output of fdisl -l is as follows--
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 32 257008+ 83 Linux
/dev/hda2 33 3856 30716280 83 Linux
/dev/hda3 3857 6406 20482875 83 Linux
/dev/hda4 6407 9729 26691997+ 5 Extended
/dev/hda5 6407 6661 2048256 82 Linux swap / Solaris
/dev/hda6 6662 9729 24643678+ 83 Linux




the partition i created is /dev/hda6
when i manually mount this new partition it will mount and also it shown under df -h
but when i make mount entry in fstab shows the error as describe in my previous post

jschiwal 03-31-2012 03:28 AM

Your /etc/fstab entry could look similar to this:
Code:

/dev/hda6          /mountpoint  ext3    defaults 1 2
If you use "sudo /sbin/blkid /dev/hda6", you can see what the LABEL, UUID and filetype is.
Then the entry could look like:
Code:

UUID=cc874c16-bfcf-4b71-ba7f-8d6cdb212347 /mountpoint ext3  defaults 1 2
I don't know if this form is supported on your system. Check the man page for mount to be certain. Using "/dev/hda6" will work even in very old systems.

Look at the fstab entry for /home or /usr. Maybe your system recommends other boot option in the 4th column, such as user_xattr, acl, or quota. The /etc/fstab format is explained in it's own manpage: "man 5 fstab".
The manpage for mount will contain more mount options.


All times are GMT -5. The time now is 09:33 PM.