Results 1 to 9 of 9

Thread: sharing files over a network

  1. #1
    Junior Member
    Join Date
    Nov 2005
    Location
    Minneapolis, Minnesota, USA
    Posts
    1

    sharing files over a network

    Long story short, I erased my partition table installing gentoo, and now i can't boot windows to resize my partitions or recover them. Nor did I finish the gentoo install, so I wouldn't erase data from my hard drive. I would like to recover the data from my drive. I then turned to my only real option for recovery.

    I booted my knoppix cd (ver 3.3), and all my data is still on the drive and readable, but I need to get it off the drive in order to rebuild the machine. How can I share my drive in knoppix, and how can I get another computer (winME) to see it? Both boxes can ping each other. I can't figure out how to get knoppix to see the shares on the winME box, and I don't know how to share the drive on the knoppix box.

    Your help is appreciated.

  2. #2
    Member registered user
    Join Date
    Dec 2002
    Location
    Thousand Oaks, CA
    Posts
    96
    This is why KNOPPIX is so great.

    Boot your KNOPPIX CD to and at boot prompt enter knoppix 2 (root shell).
    Mount your Windows partition, probably hda1
    Code:
    mount /dev/hda1 /mnt/hda1
    Delete the /etc/samba/smb.conf file.
    Code:
    rm /etc/samba/smb.conf
    Replace it with this:
    Code:
    # Global parameters
    [global]
    workgroup = MIDEARTH
    netbios name = HOBBIT
    security = share
    [data]
    comment = Data
    path = /mnt/hda1
    read only = Yes
    guest ok = Yes
    This is from http://us4.samba.org/samba/docs/man/...FastStart.html

    Restart Samba with
    Code:
    /etc/init.d/samba restart
    From any Windows box you should be able to map a drive to \\hobbit\data and copy what ever you need.

    Good Luck!

    Mike

  3. #3
    Junior Member
    Join Date
    Dec 2005
    Posts
    9
    Hi mike,

    Would you have any advice/instruction on how to share files over a small network (the network is a mac and a pc (pc now dead and im booting in KNOPPIX to save data) networked through a Belkin router so we share our internet connection and a folder (which happens to be in Windows XP)) but from a PC running XP Home ed accessed through KNOPPIX (PC is crapped out and cant access any data) to a MAC running OS X.2.8.
    Before this happened it was a simple question of using the Go function on the mac to access the shared folder (which was actually on the PC).
    However while in KNOPPIX i dont seem to have any net connection or network access. You should also know i'm very new to LInux and have no real idea of what i can do/need to do.

    Any advice/help would be greatly appreciated.

    Laurent

  4. #4
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by Laurent
    .... a small network .... through a Belkin router so we share our internet connection and a folder (which happens to be in Windows XP)) ...
    However while in KNOPPIX i dont seem to have any net connection or network access.
    You haven't given us much to work with yet. If you are trying to connect wirelessly then you may have some issues, as wireless support in Linux of many cards for the PC is hit and miss, the makers often don't provide Linux drivers and treat the hardware as top secret. If you are connecting by a normal wired NIC then this should work, you should be on the Internet as soon as you boot Knoppix (try putting a URL in the Knoquror window that opens up at boot time).

    That's the good news. The bad news is that of about 10 routers I have tested with Knoppix, one compeletly failed to set up the NIC by DHCP from the router, and that one strange router was a Belkin (version 1, hardware revision 1 of their 802.11b model, no longer made or supported). If you think this is what is happening to you, try the following:
    • 1) Run netcardconfig and take the dhcp option and see if it sets up the NIC.

      2) When that fails, run netcatrdconfig again and do not take the DHCP option. netcardconfig will then let you set up the network manually. that's what worked for me with this router.

  5. #5
    Junior Member
    Join Date
    Dec 2005
    Posts
    9
    Quote Originally Posted by Harry Kuhman
    Quote Originally Posted by Laurent
    .... a small network .... through a Belkin router so we share our internet connection and a folder (which happens to be in Windows XP)) ...
    However while in KNOPPIX i dont seem to have any net connection or network access.
    You haven't given us much to work with yet. If you are trying to connect wirelessly then you may have some issues, as wireless support in Linux of many cards for the PC is hit and miss, the makers often don't provide Linux drivers and treat the hardware as top secret. If you are connecting by a normal wired NIC then this should work, you should be on the Internet as soon as you boot Knoppix (try putting a URL in the Knoquror window that opens up at boot time).

    That's the good news. The bad news is that of about 10 routers I have tested with Knoppix, one compeletly failed to set up the NIC by DHCP from the router, and that one strange router was a Belkin (version 1, hardware revision 1 of their 802.11b model, no longer made or supported). If you think this is what is happening to you, try the following:
    • 1) Run netcardconfig and take the dhcp option and see if it sets up the NIC.

      2) When that fails, run netcatrdconfig again and do not take the DHCP option. netcardconfig will then let you set up the network manually. that's what worked for me with this router.
    thanks harry. sorry i thought i gave enough info. and yes it isnt a wireless router or network. didnt think of mentioning that.
    im not a 100% sure what version of the Belkin router i've got (i can check when i get home), but i've tried booting into KNOPPIX and opening Firefox or Konqueror and typing a url. I think everytime i get the same error - cannot find server for http://whateversiteientered.
    thanks for the suggestions to make it work tho, will try this as soon as i get home.

    While you're here. with regards to my query about getting the network that existed between my mac and pc before the pc died... the network was working as i've explained above (i hope that was enough detail), tho i forgot to mention the PC is connected to the router (and thus the network and internet) by a USB cable, and involved me using the Go function on my mac to mount a shared folder on the desktop, from which we could swap files. that shared folder was on the PC tho.
    In KNOPPIX i cant seem to see the shared folder anywhere (tho i can see all other folders and flies that are there) and i've been told that because the PC is connected to the router through USB it might make connecting the Mac and PC running KNOPPIX together more difficult...
    would you happen to know of a way to get my KNOPPIX to see my Mac (or vice versa) so that i can transfer files from the PC to the mac?

    many thanks

    Laurent

  6. #6
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by Laurent
    tho i forgot to mention the PC is connected to the router (and thus the network and internet) by a USB cable,
    I suspect that this is your problem more than anything else, and the router being Belkin may not even be an issue (I sure hope they got that fixed).

    USB was never designed for networking and is an awful choice for networking. I do have one USB to Ethernet interface that I've tried to make work, but it never would for more than about a minute (also, you guessed it, Belkin). This was under Windows. If you can get the USB device to work at all under Linux you'll have to jump through some hoops to do it and I can't talk you through it. My best advice, if you don't have an ethernet port, is to get an inexpensive PCI NIC (assuming this isn't a laptop) and install it. I remember paying over $150 for Ethernet cards in quanity about 15 years ago, now you can buy a much faster NIC for about $5 if you shop around a bit. You also need a CAT-5 ethernet cable, about $1 to $5 for mail order houses or from small but honest PC stores, beware that some major PC or Office stores and sleezy small stores will try to rip you off for as much as $29.99 for a simple $1 cable (you could buy a router with a cable indise the box, throw away the router and still save money at that price). If this is a Laptop I would suggest a PCMCIA ethernet card. This is usually more expensive than a PCI NIC, but still a bargan and worth it. Without USB in the way you'll see a much faster Internet connection when you get Windows back up and running too.

  7. #7
    Junior Member
    Join Date
    Dec 2005
    Posts
    9
    Quote Originally Posted by Harry Kuhman
    Quote Originally Posted by Laurent
    tho i forgot to mention the PC is connected to the router (and thus the network and internet) by a USB cable,
    I suspect that this is your problem more than anything else, and the router being Belkin may not even be an issue (I sure hope they got that fixed).

    USB was never designed for networking and is an awful choice for networking. I do have one USB to Ethernet interface that I've tried to make work, but it never would for more than about a minute (also, you guessed it, Belkin). This was under Windows. If you can get the USB device to work at all under Linux you'll have to jump through some hoops to do it and I can't talk you through it. My best advice, if you don't have an ethernet port, is to get an inexpensive PCI NIC (assuming this isn't a laptop) and install it. I remember paying over $150 for Ethernet cards in quanity about 15 years ago, now you can buy a much faster NIC for about $5 if you shop around a bit. You also need a CAT-5 ethernet cable, about $1 to $5 for mail order houses or from small but honest PC stores, beware that some major PC or Office stores and sleezy small stores will try to rip you off for as much as $29.99 for a simple $1 cable (you could buy a router with a cable indise the box, throw away the router and still save money at that price). If this is a Laptop I would suggest a PCMCIA ethernet card. This is usually more expensive than a PCI NIC, but still a bargan and worth it. Without USB in the way you'll see a much faster Internet connection when you get Windows back up and running too.
    thanks again harry.
    yeah this isnt a laptop btw. tbh the connection by USB to the router has never really caused us major problems, and we've been using it for 2 years now to surf the net and exchange files between pc and mac. tho come to think of it, the net was never that fast on the PC.
    Im not sure if we have an ethernet port on the PC either. But thanks for your advice and instructions. I guess if my only other option of using a USB HD (as highlighted in the other thread you saw with my query about it) does not work i'll have to try this. Or slaving the hard drive to another pc.

    Laurent

  8. #8
    Junior Member
    Join Date
    Dec 2005
    Posts
    1

    Also sent by PM

    Mike:
    I am trying to do the same thing as the first question in http://www.knoppix.net/forum/viewtopic.php?t=22234 which has to do with getting data off of a HD using Knoppix via ethernet to a HD on a Windows system.

    Your instructions start out with mounting the hda1. Easy enough.
    Then deleting smb.conf. Also easy.

    Then comes the part that I do not know how to do. Replace it with this .. then you give the code. I assume that you create a file called smb.conf with some sort of edit function and put the data in. That is where I hit a snag. I do not know how to do that.

    Also, can the workgroup be WORKGROUP instead of MIDEARTH?

    I read the samba.org site you mentioned, but that was no help to me.

    I appreciate your help.

    boeingpilot
    Real name Al

  9. #9
    Member registered user
    Join Date
    Dec 2002
    Location
    Thousand Oaks, CA
    Posts
    96
    Use any text editor of your choice. I personally use vi, but if you don't know vi it is difficult to expalin. Open one of the editors from the KDE start button...Editors. Probably kedit.

    Paste the code below into the editor:
    Code:
    # Global parameters
    [global]
    workgroup = MIDEARTH
    netbios name = HOBBIT
    security = share
    [data]
    comment = Data
    path = /mnt/hda1
    read only = Yes
    guest ok = Yes
    Save the file as /etc/samba/smb.conf

    You can replace MIDEARTH with anything you like.

    Good luck!

    Mike

Similar Threads

  1. Sharing network connection
    By Jeffr680J in forum Networking
    Replies: 3
    Last Post: 01-08-2004, 10:46 AM
  2. internet connection sharing with 2 network cards
    By tealeaf in forum Networking
    Replies: 3
    Last Post: 11-04-2003, 09:56 AM
  3. Sharing Files With A Windows Machine
    By nickelbacker in forum Networking
    Replies: 2
    Last Post: 09-01-2003, 11:48 PM
  4. Network sharing
    By piet in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 03-26-2003, 02:17 PM
  5. Sharing files
    By WT in forum General Support
    Replies: 1
    Last Post: 12-12-2002, 06:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM picture

Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM

$1625.00



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell PowerEdge 2950 EMS01 2U Server 6x 146GB 15K SAS PERC 5/i Dual PSU Xeon picture

Dell PowerEdge 2950 EMS01 2U Server 6x 146GB 15K SAS PERC 5/i Dual PSU Xeon

$200.00



867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001 picture

867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001

$245.00



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W

$409.99



Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p picture

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p

$499.88



Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO picture

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO

$308.00



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99



Microsoft Windows Server 2025 Datacenter 64Bit 24 Core 50 cal Freeshipping picture

Microsoft Windows Server 2025 Datacenter 64Bit 24 Core 50 cal Freeshipping

$54.99



VMware vCenter Server 8 STANDARD Perpetual License Key VC-STD-C (Legacy Pack) picture

VMware vCenter Server 8 STANDARD Perpetual License Key VC-STD-C (Legacy Pack)

$1599.95