LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-11-2010, 10:31 PM   #1
t1nm@n
Member
 
Registered: Aug 2009
Location: Trivandrum, Kerala, India.
Distribution: Slackware 14.2 x86_64
Posts: 96
Blog Entries: 3

Rep: Reputation: 25
Fstab doubt.


Hello.. in ubuntu in the places bar we see our windows partitions and is mostly mounted in the /media directory...

however when i edit the fstab file in /etc ican setit to mount in /mnt/sdXX folders...
i was just wondering after i do the above when i click on the partitions in places menu it takes me to /mnt/sdXX ... i wanted to know how that works.... how the menu updates itself...

Also just wondering if gnome latest is better than the older versions...like i love gnome in hardy but in lucid it's slaggy.... so i'm in xfce now..
 
Old 08-11-2010, 11:54 PM   #2
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 290

Rep: Reputation: 70
In Linux when you are changing options in fstab, it is very similar to how Windows assigns drive letters to logical drives. Of course in windows we are so used to seeing C: D: and so on. In Linux everything starts with "/". The "/" is a partition. Perhaps you may have a separate "/boot/" partition. So lets say we have a SCSI based hard drive and we will call that "/dev/sda" which is short for "Device SCSI Drive - A"

So the first partition would be /dev/sda1 and that would be mounted on "/" Then we would have a second partition called /dev/sda2. In "/" we create a folder called "/boot/" and then in fstab mount "/dev/sda2" on "/boot/". I am not going into the exact details of how to program fstab and then run the mount commands but rather just trying to explain the features. This would look something like the following:

/dev/sda1 / ext3 defaults,usrquotea 1 1
/dev/sda2 /boot ext3 defaults,usrquotea 1 1

So now when you change directories in Linux you are seamlessly changing drives. We can even make a network mount from a windows share and mount it as "/home2/". Now we are crossing drives from different computers without even knowing it.

//12.34.56.78/myshare /home2 cifs auto,user,username=_windows_user_name_,password=_windows_password_,uid=0,gid=0,file_mode=0777,dir_mo de=0777,rw 0 0

Just remember that mounts happen on top of directories. So for example if we unmounted /home2/ the folder would still exist on "/" which is the /dev/sda1 partition. If we write to "/home2/" with the network shar unmounted it will take disk space on "/dev/sda1". If we mount the network share the files are still there, you just can not access them as the path to "/home2/" no longer leads to the same drive, much less the same computer. You would need to unmount the network drive again to move the files somewhere else so as to not waste drive space. That or you now have a very sneaky way of hiding backup files.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Suse won't boot after fstab changes - fstab not editable baking-a-77 Linux - Newbie 10 06-02-2007 11:51 AM
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 07:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 06:54 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 06:55 PM


All times are GMT -5. The time now is 12:34 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration