LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   more newbie questions (https://www.linuxquestions.org/questions/linux-newbie-8/more-newbie-questions-229408/)

DarkCaesar 09-11-2004 03:17 PM

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
:newbie:

Tinkster 09-11-2004 05:01 PM

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

DarkCaesar 09-11-2004 05:20 PM

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.

Tinkster 09-11-2004 05:29 PM

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


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