Find the answer to your Linux question:
Results 1 to 8 of 8
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Unhappy need help with file recovery

    i am a complete newb with linux here. ive dabbled in ubuntu but never did much at command line. for work, someone broght me an old redhat box that crashed. I am using a knoppix livecd right now and need to know how to make an image of the hard drives on an external hdd that on my network. this is the closest ive come: but i really dont know how close that is lol

    This command is designed to be run from within /bin/mount by giving
    the option '-t smbfs'. For example:
    mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test
    root@2[knoppix]# smbmount // /mnt/remote_share -o guest
    4149: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
    SMB connection failed
    root@2[knoppix]# smbmnt // /mnt/remote_share -o guest
    Failed to find real path for mount point // No such file or directory

    please need help ASAP

  2. #2
    Linux Enthusiast
    Join Date
    Jul 2005
    How about doing it the other way around -- access Knoppix from the network computer (I understand it's Windows computer) on wich you want to save the files and then copy the files over to that external drive. I think this will be easier for you if you are new to Linux and Samba in particular.
    In Knoppix (in my case version 3.7), down on the panel you should see a penguin icon (if your Knoppix version is different, look for it in the programs menu). Click on it --> Services --> Start Samba Server. It will ask you to set password for user knoppix, so enter knoppix as password. Then it will ask you if you want to export all partitions to be shared on the network, choose "yes".
    Now, on the network Windows computer, right click on the My Computer --> Map Network Drive --> Microsoft Windows Network. It should find Knoppix as a computer on the network. When you click on it you will be asked to authenticate yourself, so enter knoppix as user and knoppix as password. It will open all partitions which knoppix could find, mount and share. Now just copy the files over to the local machine.

    Hope this helps.
    Good luck!

  3. #3
    i mounted the hard drives onb my knoppix machine then did the start samba server and did as you said but when i go tto my other computer it can only see files totalling 5.65 mb. not only that but the hard drives that i need to image are not included. do you have any other ideas or maybe something more to this that im not doing right?

  4. $spacer_open
  5. #4
    SuperMod (Back again) devils casper's Avatar
    Join Date
    Jun 2006
    Chandigarh, India
    HI !

    i think Knoppix didn't mount all partitions/disks..... mount partitions first...

    in Knoppix terminal type

    $ df -H
    it will show you all mounted partitions.

    $ fdisk -l (..its small 'L')
    all partitions... mounted or unmounted...

    now compare the output of both commands and mount rest unmounted partitions manually.
    create Mount point for each partition.

    $ mkdir /media/first_p
    $ mount -t <filesystem> /dev/<partition>/media/first_p

    here filesystem can be ntfs, vfat for FAT32, ext3 .....
    for more details, man mount

    post back if you find anything confusing or stuck. i need output of fdisk -l and df -H.

    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Linux Enthusiast
    Join Date
    Jul 2005
    Could you post here the output of
    /sbin/fdisk -l
    from Knoppix and tell which partition you need to image? Also, can you mount that partition and then post the output of
    df -h
    so we know the size of the partition?

    Edit: man, devils_casper is fast

  7. #6
    knoppix@4[knoppix]$ df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/root             2.5M   30K  2.4M   2% /
    /ramdisk              395M   10M  385M   3% /ramdisk
    /UNIONFS              2.3G  2.0G  385M  84% /UNIONFS
    /dev/hdc              697M  697M     0 100% /cdrom
    /dev/cloop            1.9G  1.9G     0 100% /KNOPPIX
    /dev/hde1              99M  8.2M   86M   9% /media/hde1
    /dev/hde2             101G   23G   73G  25% /media/hde2
    /dev/hdg1              99M  8.2M   86M   9% /media/hdg1
    /dev/hdg2             101G   58G   38G  61% /media/hdg2
    knoppix@4[knoppix]$ fdisk -l
    knoppix@4[knoppix]$ /sbin/fdisk -l
    the command "fdisk -l" i cannot get anything but i know that the ones i want are mounted

    these are the ones that i need to back up:

    dev/hde1              99M  8.2M   86M   9% /media/hde1
    /dev/hde2             101G   23G   73G  25% /media/hde2
    /dev/hdg1              99M  8.2M   86M   9% /media/hdg1
    /dev/hdg2             101G   58G   38G  61% /media/hdg2
    this is the first directory i made to move the files to on my external hdd:

    knoppix@4[knoppix]$ mkdir // /mnt/shared
    but i cannot get it to mount:

    knoppix@4[knoppix]$ smbmount // /mnt/shared -o guest
    4483: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
    SMB connection failed
    from what ive shown anymore suggestions?


    in another forum i was asked to look to see if the device i was imaging to(remote hdd) was samba enable and gave me the command smbtree. the hard drive is called "testshare" and here is what my directory shows:

    root@2[knoppix]# smbtree
            \\KNOPPIX                       Knoppix server (Samba 3.0.22)
                    \\KNOPPIX\ADMIN$                IPC Service (Knoppix server (Samba 3.0.22))
                    \\KNOPPIX\IPC$                  IPC Service (Knoppix server (Samba 3.0.22))
                    \\KNOPPIX\print$                Printer Drivers
            \\TESTSHARE                     testshare
                    \\TESTSHARE\ADMIN$              IPC Service ("testshare")
                    \\TESTSHARE\IPC$                IPC Service ("testshare")
            \\WEBSERVER                     hp from block
            \\RIG1                          RIG1
    root@2[knoppix]# findsmb
    ---------------------------------------------------------------------    TESTSHARE     +[DACPAS] [Unix] [Samba 3.0.2]   KNOPPIX       +[WORKGROUP] [Unix] [Samba 3.0.22]
    dont know if this helps any

  8. #7

    Heres Where Its Really At

    alright i have my hdd's mounted and i have a file mounted that will point to my remote hdd file. everything is good i just need to know how to run rsync like what names go where on the command line to image the folders. heres what ive got:
    root@2[knoppix]#  mkdir /chris1
    root@2[knoppix]# pwd
    root@2[knoppix]# smbmount // /ramdisk/home/knoppix/chris -o guest
    so ive got the file /ramdisk.../chris that will point to the folder on the remote hdd

    /dev/hde1              99M  8.2M   86M   9% /media/hde1
    /dev/hde2             101G   23G   73G  25% /media/hde2
    /dev/hdg1              99M  8.2M   86M   9% /media/hdg1
    /dev/hdg2             101G   58G   38G  61% /media/hdg2

    these are the folders i need to be imaged to the folder /ramdisk../chris. this was sent to me by someone who was helping me with this but im not sure exactly how im supposed to put in my file names as compared to his in order to start the process.

    recommended usage:
    rsync -vac --progress /bill /bill2 
    rsync -vac --progress uploaddir/ bill2/ > bill2/uploaddir.txt --sends output to a file this is a verbose backup, with a error check (checksum), shows how much is done.

    i feel so close(is very exciting to me sorry) anyone who could please help me finish this out id love it

  9. #8

    ive got it

    alright thanks to everyone for your help through my slow newbdome ive got everything figured out now

Posting Permissions

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