 |
31-10-2007, 07:32 AM
|
#1 (permalink)
|
|
The Thread Killer >:)
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
|
Find and add UUID in fstab
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?
__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
31-10-2007, 07:42 AM
|
#2 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Find and add UUID in fstab
command "vol_group" or "blkid" will show uuid.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
31-10-2007, 08:49 AM
|
#3 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: Find and add UUID in fstab
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.
__________________
http://www.bash.org/?258908
|
|
|
31-10-2007, 08:55 AM
|
#4 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Find and add UUID in fstab
^ur correct vol_id is the cmd.im on debian that command is lacking in debian.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
02-11-2007, 11:12 AM
|
#5 (permalink)
|
|
The Thread Killer >:)
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
|
Re: Find and add UUID in fstab
I added the UUID in the fstab, but somehow it doesn't seem to mount. Here is my fstab output:
Quote:
# /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?
__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
|
|
|
03-11-2007, 12:45 PM
|
#6 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Find and add UUID in fstab
^why dont change uuid with /dev/hdd3  in ur fstab entry?
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
05-11-2007, 11:24 AM
|
#7 (permalink)
|
|
The Thread Killer >:)
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
|
Re: Find and add UUID in fstab
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
Well, it still doesn't auto-mount.
__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
Last edited by phreak0ut; 05-11-2007 at 11:24 AM.
Reason: Automerged Doublepost
|
|
|
05-11-2007, 01:45 PM
|
#8 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Find and add UUID in fstab
then post ur sudo fdisk -l o/p here.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
05-11-2007, 06:25 PM
|
#9 (permalink)
|
|
The Thread Killer >:)
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
|
Re: Find and add UUID in fstab
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)
__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
|
|
|
06-11-2007, 07:50 AM
|
#10 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Find and add UUID in fstab
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,
If it doesnot mount some fs problem i suppose.OK,u just try!
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
06-11-2007, 09:03 AM
|
#11 (permalink)
|
|
The Thread Killer >:)
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
|
Re: Find and add UUID in fstab
praka, I can mount it manually, but it's not mounting automatically
__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
|
|
|
06-11-2007, 09:43 AM
|
#12 (permalink)
|
|
TheSaint
Join Date: Jun 2004
Location: Antigua
Posts: 3,447
|
Re: Find and add UUID in fstab
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
|
|
|
06-11-2007, 09:50 AM
|
#13 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: Find and add UUID in fstab
Quote:
|
Originally Posted by NucleusKore
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.
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.
__________________
http://www.bash.org/?258908
|
|
|
06-11-2007, 12:44 PM
|
#14 (permalink)
|
|
The Thread Killer >:)
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
|
Re: Find and add UUID in fstab
Quote:
|
Originally Posted by NucleusKore
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
__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
|
|
|
06-11-2007, 12:53 PM
|
#15 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Find and add UUID in fstab
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)
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
06-11-2007, 01:01 PM
|
#16 (permalink)
|
|
The Thread Killer >:)
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
|
Re: Find and add UUID in fstab
dmesg | tail came up with this:
Quote:
[ 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.
__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
|
|
|
06-11-2007, 01:12 PM
|
#17 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Find and add UUID in fstab
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
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
06-11-2007, 06:58 PM
|
#18 (permalink)
|
|
The Thread Killer >:)
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
|
Re: Find and add UUID in fstab
sudo dpkg-reconfigure locales gives this:
Quote:
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
Quote:
sudo blkid |grep hdd3
Password:
/dev/hdd3: UUID="E044-2FA9" TYPE="vfat"
|
__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
|
|
|
06-11-2007, 07:08 PM
|
#19 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Find and add UUID in fstab
Code:
/dev/hdd3 /media/hdd3 vfat defaults 0 0
^edit /etc/fstab to above will solve.will post the permissions for local users later.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
07-11-2007, 09:15 AM
|
#20 (permalink)
|
|
The Thread Killer >:)
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
|
Re: Find and add UUID in fstab
@Praka-Still not working
__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
|
|
|
07-11-2007, 09:40 AM
|
#21 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Find and add UUID in fstab
^shud work.did u removed or prefixed a "#" before previous entry for /dev/hdd3 as below:
Code:
# Entry for /dev/hdd3
#UUID=E044-2FA9 /media/hdd3 vfat defaults,locale=en_IN 0 1
and have the above lines there in my last post.
If this too fails,i suppose some harddisk problems which is out of my knowledge(bad superblocks?)
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
07-11-2007, 09:45 AM
|
#22 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: Find and add UUID in fstab
Why set a locale? Remove it and try.
For example, my FSTAB entry looks like:
Code:
UUID=74C44BA7C44B6B06 /media/sda5 ntfs defaults,umask=007,gid=46
|
|
|
07-11-2007, 12:41 PM
|
#23 (permalink)
|
|
The Thread Killer >:)
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
|
Re: Find and add UUID in fstab
@Praka-I don't have a '#' I know it's used for commenting. @Qwerty-There is no locales set.
__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|