LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-28-2005, 11:06 AM   #1
mouldy_punk
Member
 
Registered: Jul 2004
Distribution: Slackware/SuSE/Mandriva/Ubuntu
Posts: 78

Rep: Reputation: 15
Does this fstab look OK?


Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hdc3       /               ext3    defaults,errors=remount-ro 0       1
/dev/hdc1	/mnt/C		ntfs	ro		0	0
/dev/hdc5       /mnt/D     	fat	defaults	0       0
/dev/hdc6	/mnt/E		ntfs	ro		0	0
/dev/hdc7       none            swap    sw              0       0
/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
Before I save and reboot, and probably mess up my computer - does that look OK? The only lines I added were:
Code:
/dev/hdc1	/mnt/C		ntfs	ro		0	0
/dev/hdc5       /mnt/D     	fat	defaults	0       0
/dev/hdc6	/mnt/E		ntfs	ro		0	0
/dev/hdc1 being an NTFS windows C drive
/dev/hdc5 being a FAT windows D drive
/dev/hdc6 being an NTFS windows E drive. Does that look OK?
 
Old 09-28-2005, 11:12 AM   #2
bunnyrage
Member
 
Registered: Sep 2005
Distribution: Fedora Core 2
Posts: 34

Rep: Reputation: 15
they dont have to line up, init, is your proccess that mounts all your hardware in your fstab file,

fstab reads in whitespace to separate fields, init knows what feild is which so spacing doesnt matter,

if you SWITCHED the feilds around, init would take a big poop on you
 
Old 09-28-2005, 11:16 AM   #3
bunnyrage
Member
 
Registered: Sep 2005
Distribution: Fedora Core 2
Posts: 34

Rep: Reputation: 15
sorry wasnt paying attention,

that works most of the time if you are adding entries maunally to your fstab,

ive had problems though, init would take that entry method sometimes

have the system enter those into fstab for you, because i think the system links them for init

i tried adding a HD as a slave manually, and init didnt recognize
 
Old 09-28-2005, 11:18 AM   #4
mouldy_punk
Member
 
Registered: Jul 2004
Distribution: Slackware/SuSE/Mandriva/Ubuntu
Posts: 78

Original Poster
Rep: Reputation: 15
Yeah I know, it's just easier to read by people if it's set out all nicely


Perhaps I worded it wrong - not if it looks OK, but is the actual text OK? Like, that configuration won't mess up my system or anything and it'll do what I'm expecting it to do, Eg, mount my C, D and E drives as /mnt/C /mnt/D and /mnt/E respectively?


What's this about init? You kinda lost me there xD
 
Old 09-28-2005, 11:43 AM   #5
bunnyrage
Member
 
Registered: Sep 2005
Distribution: Fedora Core 2
Posts: 34

Rep: Reputation: 15
init is short for initialization proccess

it is like the 2nd most powerfull proccess on unix

the first is called root

a proccess is just a daemon, a set of code that is executable by thr root proccess (the parent)
proccesses have PID's or proccess id's

root = pid 0
init = pid 1
pid's 2 - like 14 or 15
are all reserved for system proccesses that make the core run

root proccess is the kernel itself, the parent

the parents spawns child proccesses that do jobs in your system

try going to your terminal and type in the command "top"

this will list all active proccesses on you CPU in real time

do you understand, or is it still cryptic
no insults

just sharing info
 
Old 09-28-2005, 11:49 AM   #6
bunnyrage
Member
 
Registered: Sep 2005
Distribution: Fedora Core 2
Posts: 34

Rep: Reputation: 15
the entries in your fstab follow correct syntax,

abd its likley that unix will see the physical drive itself

but the information will not likely be accessable

like if you had a win sys file of word document, you wont be able to just mount it and get it,

your HD has a MBR that contains a file system type, linux can access foreign types like fat and ntfs, but not use them, do you understand,

you may be able to see files, but unix will say "this file system is speaking greek"
if you tell it to USE the file system.

it might want to see them a slave partitions.
 
Old 09-28-2005, 11:54 AM   #7
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
You might want to throw the "user" option in so your users can access your Win partitions.

I've never had any problems adding partitions to my fstab, in fact the only problem I can forsee, other than crappy syntax, is if your kernel isn't configured to support the necessary filesystem.

Last edited by Charred; 09-28-2005 at 12:13 PM.
 
Old 09-28-2005, 12:15 PM   #8
bunnyrage
Member
 
Registered: Sep 2005
Distribution: Fedora Core 2
Posts: 34

Rep: Reputation: 15
hey there you go, never messed with filesystems when configing the kernel
 
Old 09-28-2005, 12:46 PM   #9
mouldy_punk
Member
 
Registered: Jul 2004
Distribution: Slackware/SuSE/Mandriva/Ubuntu
Posts: 78

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by bunnyrage
init is short for initialization proccess

it is like the 2nd most powerfull proccess on unix

the first is called root

a proccess is just a daemon, a set of code that is executable by thr root proccess (the parent)
proccesses have PID's or proccess id's

root = pid 0
init = pid 1
pid's 2 - like 14 or 15
are all reserved for system proccesses that make the core run

root proccess is the kernel itself, the parent

the parents spawns child proccesses that do jobs in your system

try going to your terminal and type in the command "top"

this will list all active proccesses on you CPU in real time

do you understand, or is it still cryptic
no insults

just sharing info
Thanks for clearing that up

Quote:
the entries in your fstab follow correct syntax,
That is mainly what I was hoping somebody would check for me, just to make sure.

Quote:
You might want to throw the "user" option in so your users can access your Win partitions.
Would that be along side default? Eg;

Code:
<snip> defaults, user <snip>
and
Code:
<snip> ro, user <snip>
Quote:
if your kernel isn't configured to support the necessary filesystem.
I think it does, I've had it working before - but I mesed up something pretty badly and had to start again. Same kernel though.

Last edited by mouldy_punk; 09-28-2005 at 12:47 PM.
 
Old 09-28-2005, 03:16 PM   #10
p_garg
LQ Newbie
 
Registered: Sep 2005
Location: delhi
Posts: 11

Rep: Reputation: 0
no u added three lines, out of three, two r wrong. first thing, linux cannot read data from a partition formated with ntfs. It is able to read data from fat partition only. so do one thing delete the two lines of ntfs and third line keep as it is.

parveen
 
Old 09-28-2005, 03:21 PM   #11
bunnyrage
Member
 
Registered: Sep 2005
Distribution: Fedora Core 2
Posts: 34

Rep: Reputation: 15
if anything linux will be able to "see" those partitions but youll get errors
 
Old 09-28-2005, 03:37 PM   #12
p_garg
LQ Newbie
 
Registered: Sep 2005
Location: delhi
Posts: 11

Rep: Reputation: 0
no u cann't access the window partitions formated with ntfs. bcaz linux did not give this permission. there is no other tool with which u can access ntfs formated partition data.

parveen
 
Old 09-28-2005, 04:23 PM   #13
mouldy_punk
Member
 
Registered: Jul 2004
Distribution: Slackware/SuSE/Mandriva/Ubuntu
Posts: 78

Original Poster
Rep: Reputation: 15
I thought linux could read and write to NTFS - but writing to NTFS is too risky at the moment and will probably corrupt your data so they disabled it in the kernel. But as far as I'm aware, it can still read NTFS partitions?
 
Old 09-28-2005, 04:30 PM   #14
mouldy_punk
Member
 
Registered: Jul 2004
Distribution: Slackware/SuSE/Mandriva/Ubuntu
Posts: 78

Original Poster
Rep: Reputation: 15
ok, I just rebooted and it did mount the NTFS partitions, and they are readable There is one problem though - I must be logged in as root to access them. How can I make it so that any user can access them?

Edit: Proof that they are readable - incase someone doesn't believe me :\ /mnt/C and /mnt/E are NTFS, /mnt/D is fat.

Last edited by mouldy_punk; 09-28-2005 at 04:32 PM.
 
Old 09-28-2005, 04:57 PM   #15
bunnyrage
Member
 
Registered: Sep 2005
Distribution: Fedora Core 2
Posts: 34

Rep: Reputation: 15
chmod 777 /dev/hd*

i know you can access them but i dont know what good its going to do, who knows you may very weel be able to

chmod should change your permissions
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 05:54 AM
What is fstab? sceadu Linux - Newbie 2 11-02-2004 07:25 PM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM
Help with /etc/fstab wawosz Linux - General 3 04-24-2003 02:12 PM

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

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