LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-03-2006, 08:54 AM   #1
linda
Member
 
Registered: Apr 2001
Location: New Jersey
Distribution: Slackware
Posts: 222

Rep: Reputation: 30
Editing Fstab


I would like to change the names of the directories for my Windows partitions. At the moment, they are mounted under /windows/various letters.
What do I do first (or does it even matter?) Do I create the new directories using Konqueror and THEN edit fstab? Or do I edit fstab and THEN create the directories? Or can I just edit the names of the directories in fstab and then everything will magically appear?

Here is a snippet of my fstab (as you can see, 2 hard drives are here and very confusing):

/dev/sda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sdb1 /windows/D ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sda5 /windows/E ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sda7 /windows/F ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sda8 /windows/G ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sda13 /windows/H ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sdb5 /windows/I vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/sdb6 /windows/J vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/sdb7 /windows/K vfat users,gid=users,umask=0002,utf8=true 0 0
 
Old 09-03-2006, 09:00 AM   #2
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
It doesn't really matter in which order that you do it. You can change /etc/fstab and then create the directories, or you can do it the other way around. In order to "see" the changes, you're going to have to unmount the present directories and mount the new ones. With a setup like that, you could achieve that with a reboot. Otherwise, you'll have to unmount each and remount. Either way will work.

If you're just looking to change the naming scheme, you could also leave things as they are and create a symbolic link to each from your new directory names.
 
Old 09-03-2006, 09:04 AM   #3
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
Re : Editing fstab

Hi

It doesn't matter whether one edits fstab or creates dir first as long as both actions are completed before reboot OR executing the mount command. Though better to create dir and accordingly edit fstab in my opinion.

sda is the first disk and subsequent number denotes partition number similarly sdb is the second disk
 
Old 09-03-2006, 12:52 PM   #4
linda
Member
 
Registered: Apr 2001
Location: New Jersey
Distribution: Slackware
Posts: 222

Original Poster
Rep: Reputation: 30
Thanks! I'll create the dir first, and then edit accordingly, then.
I don't want to create symlinks because I still think windowsically.
 
Old 09-03-2006, 01:59 PM   #5
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Thought that you'd do it that way. It'll work. By the way, just FYI, a symlink can be thought of like a "shortcut to"
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab editing similar Linux - Newbie 4 03-15-2006 05:52 AM
editing /etc/fstab Mad Malc Linux - Newbie 6 09-19-2005 01:25 AM
editing the fstab nkoplm Linux - Newbie 1 06-30-2005 02:21 AM
Editing fstab GingerMegs Linux - Software 1 06-04-2005 04:24 PM
Who is editing my fstab???!!! laszlo Linux - Newbie 5 06-30-2004 05:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:43 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