Feather This forum is for the discussion of Feather Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-12-2007, 01:42 PM
|
#1
|
Member
Registered: Mar 2005
Distribution: ubuntu
Posts: 74
Rep:
|
networking vs mounting advice needed
well, there aren't many feather fans out there judging by the number of threads in this section!
do people go for dsl instead for some reason?
anyway, I have an external usb hdd that feather doesn't seem to pick up. Also, I have, well, I wouldn't exactly call it a network, but it is connected via crossover cable to an xp machine, I want to cram the hdd of feather with files from the external hdd.
my question is this, which would be easier? getting the external hdd to mount, or setting up networking between xp and feather?
has anyone had experience of either?
|
|
|
05-13-2007, 06:29 AM
|
#2
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,376
|
Which is easier all depends on your experience. With that said, if you are editing config files, it doesn't matter too much what the distro is you are using. I do use DSL, never had a need to try something like Feather.
On the HD, if you open a konsole, and run 'lsusb' can you see the drive? If yes, and it is formatted, then making a mount point with 'mkdir' and adding a mount command to /etc/fstab should get the drive connected. I'm assuming you have a linux supported file system on the drive. If it is NTFS you need a driver loaded on some distros. You would need to look into NTFS support on Feather.
As for the network connection, if all you ned tis linux to win connection, then set up static IP addresses on both sides on the same sub-net. ie 192.168.1.1 and 192.168.1.2 and a mask of 255.255.255.0. Edit your hosts file on both sides, and add entries for the other side. Set a default route to the other machine.
If you want internet access from linux through win, it can be set up in XP to do that. Never done it myself. See what you can find with google. Linux can also be the box connected to the internet. ( Never done that one either, but I know it will work ). Easy way is to buy a router.
Once you have a router you set up the router, connect what ever to it, and everything is online, and interconnected...
|
|
|
05-13-2007, 09:44 AM
|
#3
|
Member
Registered: Mar 2005
Distribution: ubuntu
Posts: 74
Original Poster
Rep:
|
I'll probably do both in the long run anyway, thanks for the advice.
My experience level is pretty low, but I've looked into fstab before, so that may be the quickest way for me as it's formatted to fat32 and I have experience of having that working for both sides, although I must have got something wrong because I couldn't write to it from linux! But that worked out ok when I found yareg to bring files in from the windows end  that won't be happening this time though, but that's ok, it should be a one way trip for these files
thanks for the thoughts cliff, it's much appreciated
|
|
|
05-14-2007, 09:14 AM
|
#4
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,376
|
You should be able to write from the linux side, as long as the partition is not mounted as 'ro'. Here is what my fstab entries for my fat32 partitions look like.
Code:
/dev/hda1 /mnt/win_c vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
/dev/hda5 /mnt/win_d vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
If your system defaults is 'ro' try entering 'rw' as an oprion, no quotes.
|
|
|
05-14-2007, 06:28 PM
|
#5
|
Member
Registered: Mar 2005
Distribution: ubuntu
Posts: 74
Original Poster
Rep:
|
got the external drive working(at least for getting files off the external drive, I haven't tried sending from the feather box just yet), thanks for the help    , next on the list is this bit I guess...
Quote:
Originally Posted by camorri
As for the network connection, if all you ned tis linux to win connection, then set up static IP addresses on both sides on the same sub-net. ie 192.168.1.1 and 192.168.1.2 and a mask of 255.255.255.0. Edit your hosts file on both sides, and add entries for the other side. Set a default route to the other machine.
|
It's unlikely that I'll put this machine online, so I needn't bother with that just yet.
Could I get you to elaborate a little on how to set these ip addresses? As I think I mentioned, I'm a bit of a networking noob...
|
|
|
05-15-2007, 09:04 AM
|
#6
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,376
|
Quote:
Could I get you to elaborate a little on how to set these ip addresses?
|
Sure, the first thing to determine is if you have a driver loaded for your nic. I'm going to describe most things from a command line point of view. I have not used Feather linux, it may have gui tools to do a lot of this stuff. If it does, then using them is probably the easier way. What I describe should work on any linux system.
For the driver, open a bash screen ( bourne again shell ) and run the command '/sbin/ifconfig ' ( without the quotes ). If you have a driver loaded and the nic is there, you will see something like this -
Code:
/sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:D0:B7:26:B3:78
inet addr:192.168.1.21 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2486 errors:0 dropped:0 overruns:0 frame:0
TX packets:2443 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1774080 (1.6 MiB) TX bytes:346118 (338.0 KiB)
Interrupt:11
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:135 errors:0 dropped:0 overruns:0 frame:0
TX packets:135 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:14048 (13.7 KiB) TX bytes:14048 (13.7 KiB)
The left column is the name linux knows the hardware resource by; eth0 on my system is the network interface. lo is known as the loopback interface. Note the second line on eth0, I have an inet addr. This is my IP address. If you see this for your system, you are miles ahead. If you don't get anything at this point, or no IP address, we may need to load a driver, or just define an IP addr for the interface.
If you get nothing, run the command 'lsmod' and post the results. lsmod shows loaded kernel modules that work with your hardware. Have a look through the list to see if you can see a driver for your nic. If not, then post the output of lsmod and as much information as you can about your nic. Make, model and if you know it chip set.
Go that far, let me know...
|
|
|
05-16-2007, 09:15 PM
|
#7
|
Member
Registered: Mar 2005
Distribution: ubuntu
Posts: 74
Original Poster
Rep:
|
hmmm ifconfig gave only lo information, so I tried ifconfig -a, lo and behold....
Quote:
eth0 Link encap:Ethernet HWaddr 00:30:84:3C:A2:43
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:2052 (2.0 KiB)
Interrupt:11 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 B) TX bytes:100 (100.0 B)
|
lsmod gave...
Quote:
Module Size Used by Not tainted
apm 9736 1 (autoclean)
mousedev 3832 0 (unused)
hid 22372 0 (unused)
input 3168 0 [mousedev hid]
cloop 39364 0 (unused)
af_packet 13544 0 (autoclean)
agpgart 42660 0 (unused)
esssolo1 27528 1
gameport 1388 0 [esssolo1]
soundcore 3428 4 [esssolo1]
8139too 13704 0
mii 2240 0 [8139too]
crc32 2816 0 [8139too]
ext3 64452 0 (autoclean)
jbd 46516 0 (autoclean) [ext3]
ntfs 50944 0 (autoclean)
msdos 4684 0 (autoclean)
nls_iso8859-1 2844 4 (autoclean)
nls_cp437 4348 2 (autoclean)
serial 52068 0 (autoclean)
usb-storage 61952 1
usb-ohci 18088 0 (unused)
usbcore 57824 1 [hid usb-storage usb-ohci]
pcmcia_core 39840 0
ide-cd 28704 0
ide-scsi 9040 0
rtc 7004 0 (autoclean)
|
this is the same type of card, as for chipset, I believe it to be RTL8139, but unfortunately, this is my only evidence... :S
Last edited by daveoily; 05-16-2007 at 09:41 PM.
|
|
|
05-17-2007, 08:57 AM
|
#8
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,376
|
Good stuff so far. It appears you do have a driver loaded for eth0. 1839too is the driver.
The reason /sbin/ifconfig did not show anything and ifconfig -a does; the first without the -a switch shows only active interfaces. The -a shows everything defined, up or down.
So as try to activate the interface, try 'ifconfig eth0 up' and post the results. It should activate the interface. You may, or may not see an IP address on the second line. If one doesn't show up, I'll need to knwo how you want to configure it. DHCP or static IP addresses, type of connection you have, router, etc.
If you see an IP address, try a browser and see what happens.
Let me know.
|
|
|
05-18-2007, 03:27 PM
|
#9
|
Member
Registered: Mar 2005
Distribution: ubuntu
Posts: 74
Original Poster
Rep:
|
okay, I had to do that via sudo, but it went up I think as there was a 1 to the side of it when listed using lsmod.
also, ifconfig now gives eth0 as...
Quote:
eth0 Link encap:Ethernet HWaddr 00:30:84:3C:A2:43
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3908 (3.8 KiB) TX bytes:2052 (2.0 KiB)
Interrupt:11 Base address:0xb000
|
As you can see, there's no i.p. address, but isn't that a internet sort of thing? I guess they are used locally, but whether they get called something different, I don't know.
The connection is just a crossover cable (actually it was cat5 cable till I switched a couple of wires over, but it works, tested on windows) between the 2 machines, all I really want it for at the moment is to delete the files I don't want on the computer without having to go to it (Well, it is all the way downstairs!  )
I'm trying to refine my ever expanding music collection, it seems a good idea to have it all happening on one computer which won't get used for anything else, mainly because it's not much good for anything else  also, I have one of those little fm broadcasting things so all I have to do to hear the music is have a radio in the room with me I'm checking for dodgy files and the like.
So it's doubtful this machine will ever go online, but it might happen eventually, just not at the moment
So erm, what's next?
Are we nearly there yet?
|
|
|
05-18-2007, 07:22 PM
|
#10
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,376
|
Quote:
The connection is just a crossover cable (actually it was cat5 cable till I switched a couple of wires over, but it works, tested on windows) between the 2 machines
|
This will work just fine, and it appears you have the correct wires switched to make it work as a direct cable. For now, we'll assume the cable is good.
You do need an IP address assigned to the nic's on both ends of the cable for this to work. There are two ways to get an IP address. One is if you have a DHCP server, most routers preform this funciton, or you can set one up in linux.
The second way is to define static IP addresses for each end of the connection. This is by far the easest way. To set up your eth0 nic in linux, you can edit a file, /etc/sysconfig/network-scripts/ifcfg-eth0.
I'm going to cut and paste mine, you would only need to modify the IP addresss.
Code:
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.21
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
METRIC=2
MII_NOT_SUPPORTED=no
USERCTL=yes
IPV6INIT=no
IPV6TO4INIT=no
PEERDNS=yes
Note two things, the NETWORK field, and the IPADDR field. Anything that starts with 192.168 is a private non-routable address. That is fine for what you want to do. The third field can be anything from 0 to 254 with a mask of 255.255.255.0 The last digits, the 21 is my machine. Other machines on my network only have the last number different. So, if you make you windoze side 192.168.1.1 then make linux 192.168.1.2 same mask on both machines.
You will need a /etc/hosts file. Here is a sample of what to put in there. The hosts file is one place the TCP/IP stack looks to resolve how to route a IP packet. So on one machine you define the IP addresses and names of the other machines on your network. Here is part of mine.
Code:
192.168.1.22 Presto
127.0.0.1 localhost desktop desktop.none sluggy
192.168.1.23 Snail
Presto is a laptop I have, and Snail is my old W98 machine in the basement. The IP addr 127.0.0.1 is my loopback interface. I added extra names to make life easier for me. You don't have to. Your file on the linux side will have the ip address and name of the windoze machine. In windoze you need to define a hosts file, in there you add the linux machine.
You need to edit these files with root privledges.
The last thing to do, other than test is to set up a default route. That is done with the 'route' command. Yu can look at the man page if you type in a konsole 'man route'
To add a route, 'route add 192.168.1.0 netmask 255.255.255.0 dev eth0' should do it. You can dump the routing table with the command 'route' by itself. Your route should be there.
Piece of cake, right? You will need to define the windoze side, i'm guessing you know how. Just make sure both ends belong to the same sub net, ( third decmial field ).
Active the linux end, 'ifconfig eth0 up' and try to ping the windoze machine. 'ping 192.168.1.1' hit enter. CTRL c cancels the ping command.
Let me know how it goes...
|
|
|
All times are GMT -5. The time now is 01:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|