LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-11-2004, 03:17 PM   #1
DarkCaesar
Member
 
Registered: Oct 2003
Distribution: Slackware 10 Kernel 2.4.26
Posts: 35

Rep: Reputation: 15
more newbie questions


i tried looking for answers in the man pages in linux already but still cant get a simple answer. any help would be appreciated

1. how do i translate the following commands into commands in the fstab file?
mount --bind /home/ftp /home/user1/ftp
mount --bind /home/ftp /home/user2/ftp
i tried "/home/ftp /home/user1/ftp reiserfs defaults 1 2" and "/home/ftp /home/user2/ftp reiserfs defaults 1 2", and it didnt work =(. it tells me no such block device

2.Say if i want to share my music folder in windows with different users in my linux box, should i "smbmount //windows/music /home/music", then "mount --bind /home/music /home/user1/music" and "mount --bind /home/music/user2/music"? or should i do the mounts first then do the smbmount?

3.how do i identify which NIC is eth0 eth1 etc... in command prompt?

thx in advance
 
Old 09-11-2004, 05:01 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Re: more newbie questions

Quote:
Originally posted by DarkCaesar
1. how do i translate the following commands into commands in the fstab file?
mount --bind /home/ftp /home/user1/ftp
mount --bind /home/ftp /home/user2/ftp
i tried "/home/ftp /home/user1/ftp reiserfs defaults 1 2" and "/home/ftp /home/user2/ftp reiserfs defaults 1 2", and it didnt work =(. it tells me no such block device
I don't think that's possible from fstab, try working around
it with putting the invocation into rc.local


Quote:
2.Say if i want to share my music folder in windows with different users in my linux box, should i "smbmount //windows/music /home/music", then "mount --bind /home/music /home/user1/music" and "mount --bind /home/music/user2/music"? or should i do the mounts first then do the smbmount?
I appreciate that you're taking a liking to --bind,
but why not mount it to some place, and just
create a symlink to the users directory?

Quote:
3.how do i identify which NIC is eth0 eth1 etc... in command prompt?
lspci

The first one in the list (given it's PCI number) will
be eth0 ...


Cheers,
Tink
 
Old 09-11-2004, 05:20 PM   #3
DarkCaesar
Member
 
Registered: Oct 2003
Distribution: Slackware 10 Kernel 2.4.26
Posts: 35

Original Poster
Rep: Reputation: 15
the reason i use bind is that if i do a chroot in proftp that's the only way to access things that is not under user's home directory. as for lspci i get something like this:
Host bridge: VIA ....
ISA bridge: VIA ...
IDE interface: VIA ...
00:08.0 Ethernet controller: .... (my eth2 for some reason?)
00:09.0 Ethernet controller: .... (eth0)
00:0a.0 Ethernet controller: .... (eth1)
Are these "00:08.0", "00:08.0" and "00:0a.0" the pci number u mentioned? However when i do ifconfig i dont see anything that's the same as those numbers.
 
Old 09-11-2004, 05:29 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by DarkCaesar
as for lspci i get something like this:
Host bridge: VIA ....
ISA bridge: VIA ...
IDE interface: VIA ...
00:08.0 Ethernet controller: .... (my eth2 for some reason?)
00:09.0 Ethernet controller: .... (eth0)
00:0a.0 Ethernet controller: .... (eth1)
Are these "00:08.0", "00:08.0" and "00:0a.0" the pci number u mentioned? However when i do ifconfig i dont see anything that's the same as those numbers.
Yes, they are, and no, ifconfig doesn't mention them.

Rule of thumb: the closer the device to the power
supply, the lower its PCI number, the lower its
ethX ...


Cheers,
Tink
 
  


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
Help the newbie...:D Got some questions... desperate_penguin Linux - Software 8 11-22-2005 07:34 AM
3 newbie questions Bry Linux - Newbie 13 02-22-2005 05:09 AM
Some newbie questions... koswo Linux - Newbie 7 02-04-2004 10:34 PM
Newbie questions ashley75 Linux - General 2 09-15-2003 12:59 PM
Newbie Questions Bucolic Buffalo Linux - Newbie 4 01-08-2003 08:53 AM


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