LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-09-2010, 11:36 AM   #1
damonx
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Rep: Reputation: 0
fstab problems


I have two external hard drives connected to my computer. One of them is FAT32 and the other NTFS. Right now the box they're connected to is acting as a sort of "file server" for my network. Anyway, I added the two drives to the fstab file, but there's just one problem. Being the noob that I am, I'm not sure what the correct nomenclature is for this, but the "designations" of the drives (e.g. /dev/sdb1/) seem to flip flop at random. On one reboot the FAT32 is /dev/sdb1/ and the NTFS is sdc1 and the next it's visa versa.

My question is, is there any way to make it so that these two drives get the same designation every time the computer reboots?

I could just convert the FAT32 to NTFS, but I haven't gotten around to that yet. The main thing is I have them mounting to particular directories. One that is writable (The FAT32) and the other would be read only.

Last edited by damonx; 06-09-2010 at 01:05 PM.
 
Old 06-09-2010, 11:50 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Hi,

you could use the UUID to identify and mount them.
Read
Code:
man UUID
man blkid
Adjust your fstab accordingly.

Hope this helps.

[EDIT]
You might need to be root for blkid to work, at least on my system I cannot use it as normal user.

Last edited by crts; 06-09-2010 at 11:55 AM.
 
Old 06-09-2010, 12:31 PM   #3
damonx
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Well, I think I did this right, but even still it doesn't seem to work. I'm a little curious about the two UUID's, since they seem to be in two completely different formats. Anyway, with these two entries the drives should mount to their respective directories on startup, nay?

Code:
FED2-EA7D       /mnt/exchange   vfat auto,rw,fat=32,umask=000,noexec,quiet 1 1

74EC7C4DEC7C0B9C /mnt/leechme2  ntfs ro,auto 1 1
Also, thank you for the fast response.

EDIT: Also, if you're curious about the options on the fat32, I was having some trouble getting the that drive to be writeable as a samba share and I read elsewhere that those options would allow me to change the permissions of the mounted directory. Anyway, just a side note.

Last edited by damonx; 06-09-2010 at 12:33 PM.
 
Old 06-09-2010, 12:50 PM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by damonx View Post
Well, I think I did this right, but even still it doesn't seem to work. I'm a little curious about the two UUID's, since they seem to be in two completely different formats. Anyway, with these two entries the drives should mount to their respective directories on startup, nay?

Code:
FED2-EA7D       /mnt/exchange   vfat auto,rw,fat=32,umask=000,noexec,quiet 1 1

74EC7C4DEC7C0B9C /mnt/leechme2  ntfs ro,auto 1 1
Also, thank you for the fast response.

EDIT: Also, if you're curious about the options on the fat32, I was having some trouble getting the that drive to be writeable as a samba share and I read elsewhere that those options would allow me to change the permissions of the mounted directory. Anyway, just a side note.
OK, assuming that one of your drives is /dev/sda1, what is the output of
Code:
blkid /dev/sda1
Here is some sample output of my drive:
Code:
blkid /dev/sda1
/dev/sda1: UUID="317q543b-14v8-1j9n-ab36-2r67h390g712" TYPE="ext2"
... and the corresponding entry in fstab
Code:
...
UUID=317q543b-14v8-1j9n-ab36-2r67h390g712 /boot ext2   defaults  0   2
...
 
Old 06-09-2010, 01:04 PM   #5
damonx
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Success. Was just a case of user error. I forgot to put in the UUID= in front of the UUID, heh. Thanks for the help.
 
  


Reply



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
Problems with my fstab StrangePL MEPIS 2 06-24-2007 05:57 PM
Are there problems with my fstab cheetahman SUSE / openSUSE 3 03-26-2005 04:17 AM
Problems with fstab? SiLiCoN Debian 2 10-01-2004 04:21 AM
problems with fstab Jeebizz Slackware 10 09-21-2004 05:58 AM
Problems in fstab! marksstroud Linux - Newbie 2 10-27-2001 08:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:41 PM.

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
Open Source Consulting | Domain Registration