LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 01-14-2003, 01:16 PM   #1
rivethead
Member
 
Registered: Jan 2003
Distribution: Red Hat 8.0
Posts: 36

Rep: Reputation: 15
quick silly question regarding fstab


My 3rd windows physical drive e: (hdc1) has a dir off the root I'd like to mount directly too. The dir is E:/mp3. Here is the line in my fstab I need to modify:

/dev/hdc1 /mnt/mp3 vfat defaults 0 0

because the mp3 dir is directly uner the root of hdc1 why can't I change the line to this?

/dev/hdc1/mp3 /mnt/mp3 vfat defaults 0 0

I've tried this and it doesn't work. How do I do it?
 
Old 01-14-2003, 01:27 PM   #2
FredrikN
Member
 
Registered: Nov 2001
Location: Sweden
Distribution: GNU/Linux since -97
Posts: 149

Rep: Reputation: 15
Hi
I'm not sure you you can do that

/dev/hdc1/mp3 is not a device as /dev/hdc1 is

You can mount the device and then create a link to /mnt/mp3 from another folder

Like ln -s /mnt/mp3
 
Old 01-14-2003, 01:27 PM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
mkdir /mp3
in fstab '/dev/hdc1 /mp3 vfat defaults 0 0'

I would also recommend that you change it so that the drive is mounted by individual users rather than root. try noauto,user instead of default.

SuSE 81 uses this funky setup that generates nice little errors every time you write to the vfat drive... 'users,gid=users,umask=0002,iocharset=iso8859-1,code=437' You could probably mess with the umask and make it a little less annoying.
 
Old 01-14-2003, 07:09 PM   #4
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Re: quick silly question regarding fstab

Quote:
Originally posted by rivethead
My 3rd windows physical drive e: (hdc1) has a dir off the root I'd like to mount directly too. The dir is E:/mp3. Here is the line in my fstab I need to modify:

/dev/hdc1 /mnt/mp3 vfat defaults 0 0

because the mp3 dir is directly uner the root of hdc1 why can't I change the line to this?

/dev/hdc1/mp3 /mnt/mp3 vfat defaults 0 0

I've tried this and it doesn't work. How do I do it?
You can mount devices onto directories. Not directories residing on those devices. Mount the partition somewhere and create a link to the directory like FredrickN said.
 
  


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
just edited fstab and quick question cjae Linux - Newbie 1 08-12-2005 02:24 PM
quick fstab solution louie055 Linux - Newbie 1 09-01-2003 03:00 PM
Silly ls question R4z0r Linux - Newbie 3 07-15-2003 07:08 AM
Silly question that no one will like. xjester Linux - Newbie 9 11-17-2002 02:58 AM
quick FSTAB question duaux Linux - Newbie 2 10-10-2002 07:39 PM


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