LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-26-2006, 12:12 AM   #1
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
yet another fstab thread


There are some things I just can't figure out.

1) How do I execute fstab without rebooting?

2) I'd like to mount /dev/hdb via uuid, because I have two reiserfs exchange drives, one of them should be mounted with write permission for root only. How do I get the uuid? I remember using lshal to get the uuid for my usb device, but that's it.

er.. well. that's it

I saw ubuntu added a umask=0222 - option of the ntfs disk I had in my box while installing. What does the fourth digit do? Is it vital for something? I kept using this for my other ntfs drives, since 444 didn't work (would make more sense to me, since I can't write to it anyway)

My fstab, just for fun:

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc            /proc           proc    defaults        0       0

#ex1
/dev/hda1       /               ext3    defaults,errors=remount-ro 	0       1
/dev/hda5       none            swap    sw          				0       0

/dev/hdc        /media/cdrom0	udf,iso9660 user,noauto		0       0
/dev/hdd        /media/cdrom1	udf,iso9660 user,noauto		0       0


/dev/hde1       /mnt/hde1		ntfs    umask=0222			0	 0
/dev/hde5       /mnt/hde5		ntfs    umask=0222			0       0

#/dev/fd0        /media/floppy0	auto    rw,user,noauto 		0       0

#ex2
/dev/hdg1		/mnt/hdg1		ntfs    umask=0222			0       0
/dev/hdg2		/mnt/hdg2		reiserfs	defaults			0	 2

/dev/hdb1		/mnt/hdb1		reiserfs   defaults			0       2

##usb-drive
/dev/sda1		 /mnt/sda1	vfat	defaults,umask=000 	0	0
/dev/sda2           /mnt/sda2	vfat	defaults,umask=000		0	0
/dev/sda3           /mnt/sda3	vfat 	defaults,umask=000		0	0
In my fstab file the code looks tidy... I use alot of <tab>
Anyhow.
hdg1 and hdg2 are on two different drives. So it just fails to mount one and mounts the other, or mounts none if it isn't in there, depending on what drive is in there at the moment. I guess this is alright.

Last edited by oskar; 05-26-2006 at 12:14 AM.
 
Old 05-26-2006, 12:32 AM   #2
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
Hello oskar,

You can use the command 'mount -a' to mount all devices depicted in /etc/fstab.
Also you can use the function 'LABEL' for linux device file systems on mounting.

Thanks,,
 
Old 05-26-2006, 12:56 AM   #3
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by vimal
'mount -a'
*slaps forehead*
I knew I once knew this.
Going to check out that label thing, thanks.

---edit---
I must return to report I have the same problem with the label. I can't find it, and I don't know how to write it to an existing reiserfs filesystem. (you label the filesystem, not the partition, right?)

Last edited by oskar; 05-26-2006 at 01:11 AM.
 
Old 05-26-2006, 01:57 AM   #4
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
Hello oskar,

The directive LABEL is used for filesystems. We can assign a Label for an existing linux partition so that even if the HD is changed and connected to a seperate connector, the OS detects it.

Thanks,,
 
Old 05-26-2006, 02:07 AM   #5
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Original Poster
Rep: Reputation: 49
found it!

"blkid" shows the uuid of all the harddrives.
 
  


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
Test thread (Ignore this thread) operatester General 2 07-07-2005 03:04 PM
[thread control suggestion] add a "solved" button that the thread starter can click atom LQ Suggestions & Feedback 3 03-24-2005 12:55 PM
Main thread sending notification to child thread rajesh_b Programming 1 09-22-2004 10:15 AM
configure qt thread issue (just compiled qt w/ -thread option) cleff Linux - Software 8 05-08-2004 12:11 AM
Can a thread starter close the thread? ppuru LQ Suggestions & Feedback 3 07-26-2003 07:51 PM

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

All times are GMT -5. The time now is 09:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration