Find and add UUID in fstab

Status
Not open for further replies.

phreak0ut

The Thread Killer >:)
There were problems installing Linux Mint and found that it was because of my secondary HD. Now, after connecting the HD, I need to know the UUID so that I can add the partitions in the fstab. How to do that?
 

mehulved

18 Till I Die............
But, it really isn't needed to add UUID, you can just use the device name. But, using UUID can actually be good sometimes.
And, BTW you need blktool for blkid command.
praka123 is it vol_group? I am having vol_id on gentoo.
 
OP
phreak0ut

phreak0ut

The Thread Killer >:)
I added the UUID in the fstab, but somehow it doesn't seem to mount. Here is my fstab output:

# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
# Entry for /dev/sda3 :
UUID=28ae081f-b449-4b44-9950-ceecaf932f4d / ext3 defaults,errors=remount-ro 0 1
# Entry for /dev/sda1 :
UUID=F04873C4487387DC /media/sda1 ntfs-3g defaults,locale=en_IN 0 1
# Entry for /dev/sda5 :
UUID=66D82060D82030AB /media/sda5 ntfs-3g defaults,locale=en_IN 0 1
# Entry for /dev/sda6 :
UUID=F0B89767B8972B5C /media/sda6 ntfs-3g defaults,locale=en_IN 0 1
# Entry for /dev/sda7 :
UUID=EC1CA0DF1CA0A654 /media/sda7 ntfs-3g defaults,locale=en_IN 0 1
# Entry for /dev/sda8 :
UUID=25f87c9d-5ae8-4a5d-b5ac-214eff9cdce2 /media/sda8 ext3 defaults 0 2
# Entry for /dev/sda4 :
UUID=db294005-c287-4b9a-8153-e4e0c4eab71a none swap sw 0 0
# Entry for /dev/sda9 :
UUID=77156dbf-6c10-445e-85e6-b8a81df936a9 none swap sw 0 0
# Entry for /dev/hdd3
UUID=E044-2FA9 /media/hdd3 vfat defaults,locale=en_IN 0 1
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdb /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

It is hdd3 which I want to mount. Have I done something wrong?
 
OP
phreak0ut

phreak0ut

The Thread Killer >:)
OMG!! What an oversight! I didn't realise that at all! I actually see all my mounted drives in /media. Strange!! I'll try though. Thanks Praka :D

Well, it still doesn't auto-mount.
 
Last edited:
OP
phreak0ut

phreak0ut

The Thread Killer >:)
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/sda2 3825 17514 109964925 f W95 Ext'd (LBA)
/dev/sda3 17515 18261 6000277+ 83 Linux
/dev/sda4 18262 18347 690795 82 Linux swap / Solaris
/dev/sda5 3825 8923 40957686 7 HPFS/NTFS
/dev/sda6 8924 12747 30716248+ 7 HPFS/NTFS
/dev/sda7 12748 15816 24651711 7 HPFS/NTFS
/dev/sda8 15817 17383 12586896 83 Linux
/dev/sda9 17384 17514 1052226 82 Linux swap / Solaris

Disk /dev/hdd: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 653 5245191 83 Linux
/dev/hdd2 654 784 1052257+ 82 Linux swap / Solaris
/dev/hdd3 785 4865 32780632+ c W95 FAT32 (LBA)
 

praka123

left this forum longback
can you try manually mount ur fat partition /dev/hdd3?
Code:
sudo mount /dev/hdd3  /mnt
go to the /mnt dir and see if it mounts.
else see the messages,
Code:
 dmesg |tail
If it doesnot mount some fs problem i suppose.OK,u just try!
 

NucleusKore

TheSaint
Please modify your fstab entry for hdd3 as follows
UUID=E044-2FA9 /media/hdd3 vfat defaults,user,users,umask=0002,locale=en_IN 0 1

and reboot
 

mehulved

18 Till I Die............
NucleusKore said:
Please modify your fstab entry for hdd3 as follows
UUID=E044-2FA9 /media/hdd3 vfat defaults,user,users,umask=0002,locale=en_IN 0 1

and reboot
No need to reboot.
Code:
mount -a
works just as fine.
*nix usually has a way to reload the services without restarting the whole system. Only exception which I know of is the kernel and it's modules.
 
OP
phreak0ut

phreak0ut

The Thread Killer >:)
NucleusKore said:
Please modify your fstab entry for hdd3 as follows
UUID=E044-2FA9 /media/hdd3 vfat defaults,user,users,umask=0002,locale=en_IN 0 1

and reboot

Still not working. Reboot also has no effect :(
 

praka123

left this forum longback
do this @phreakout:
Code:
sudo blkid |grep hdd3
^it will show the current uuid.sometimes it changes :-| .edit /etc/fstab entry accordingly to the new UUID(most prolly)
 
OP
phreak0ut

phreak0ut

The Thread Killer >:)
dmesg | tail came up with this:
[ 46.998458] Bluetooth: L2CAP ver 2.8
[ 46.998462] Bluetooth: L2CAP socket layer initialized
[ 47.145729] Bluetooth: RFCOMM socket layer initialized
[ 47.145741] Bluetooth: RFCOMM TTY layer initialized
[ 47.145743] Bluetooth: RFCOMM ver 1.8
[ 5401.573262] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
[ 5412.527886] eth0: link down
[ 5414.015095] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
[ 5799.708698] FAT: Unrecognized mount option "locale=en_IN" or missing value
[ 6752.232186] FAT: Unrecognized mount option "locale=en_IN" or missing value

What is the missing value? Please check my fstab above.
 

praka123

left this forum longback
locale error will be becoz u dont have that locale generated.u can do it via sudo dpkg-reconfigure locales

main:
try sudo blkid |grep hdd3
^^o/p here
a typical fstab value which can mount ur partition.
/dev/hdd3 /media/hdd3 vfat defaults 0 0
 
OP
phreak0ut

phreak0ut

The Thread Killer >:)
sudo dpkg-reconfigure locales gives this:
Generating locales...
de_AT.UTF-8... done
de_BE.UTF-8... done
de_CH.UTF-8... done
de_DE.UTF-8... done
de_LU.UTF-8... done
el_CY.UTF-8... done
el_GR.UTF-8... done
en_AU.UTF-8... done
en_BW.UTF-8... done
en_CA.UTF-8... done
en_DK.UTF-8... done
en_GB.UTF-8... done
en_HK.UTF-8... done
en_IE.UTF-8... done
en_IN.UTF-8... up-to-date
en_NZ.UTF-8... done
en_PH.UTF-8... done
en_SG.UTF-8... done
en_US.UTF-8... up-to-date
en_ZA.UTF-8... done
en_ZW.UTF-8... done
es_AR.UTF-8... done
es_BO.UTF-8... done
es_CL.UTF-8... done
es_CO.UTF-8... done
es_CR.UTF-8... done
es_DO.UTF-8... done
es_EC.UTF-8... done
es_ES.UTF-8... done
es_GT.UTF-8... done
es_HN.UTF-8... done
es_MX.UTF-8... done
es_NI.UTF-8... done
es_PA.UTF-8... done
es_PE.UTF-8... done
es_PR.UTF-8... done
es_PY.UTF-8... done
es_SV.UTF-8... done
es_US.UTF-8... done
es_UY.UTF-8... done
es_VE.UTF-8... done
fr_BE.UTF-8... done
fr_CA.UTF-8... done
fr_CH.UTF-8... done
fr_FR.UTF-8... done
fr_LU.UTF-8... done
ro_RO.UTF-8... LC_MONETARY: value of field `int_curr_symbol' does not correspond to a valid name in ISO 4217
failed
sv_FI.UTF-8... done
sv_SE.UTF-8... done
tr_CY.UTF-8... done
tr_TR.UTF-8... done
Generation complete.

sudo blkid | grep hdd3
sudo blkid |grep hdd3
Password:
/dev/hdd3: UUID="E044-2FA9" TYPE="vfat"
 

praka123

left this forum longback
Code:
 /dev/hdd3      /media/hdd3      vfat    defaults        0       0
^edit /etc/fstab to above will solve.will post the permissions for local users later.
 
Status
Not open for further replies.
Top Bottom