Find the answer to your Linux question:
Results 1 to 8 of 8
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. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2006
    Posts
    6

    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 //192.168.0.33/shared /mnt/remote_share -o guest
    4149: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
    SMB connection failed
    root@2[knoppix]# smbmnt //192.168.0.33/ex1 /mnt/remote_share -o guest
    Failed to find real path for mount point //192.168.0.33/ex1: No such file or directory
    root@2[knoppix]#

    please need help ASAP

  2. #2
    Linux Enthusiast
    Join Date
    Jul 2005
    Location
    Maryland
    Posts
    522
    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
    Just Joined!
    Join Date
    Sep 2006
    Posts
    6
    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
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    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.


    casper
    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
    Location
    Maryland
    Posts
    522
    Could you post here the output of
    Code:
    /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
    Code:
    df -h
    so we know the size of the partition?

    Edit: man, devils_casper is fast

  7. #6
    Just Joined!
    Join Date
    Sep 2006
    Posts
    6
    Code:
    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:

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

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

    Code:
    
    knoppix@4[knoppix]$ smbmount //192.168.0.33/shared /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?



    ADDED:

    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:


    Code:
    root@2[knoppix]# smbtree
    Password:
    WORKGROUP
            \\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
    DACPAS
            \\TESTSHARE                     testshare
                    \\TESTSHARE\ADMIN$              IPC Service ("testshare")
                    \\TESTSHARE\IPC$                IPC Service ("testshare")
                    \\TESTSHARE\shared
                    \\TESTSHARE\ex1
                    \\TESTSHARE\xdrive
                    \\TESTSHARE\NetFolder
                    \\TESTSHARE\config
    CHRISAPARTMENT
            \\WEBSERVER                     hp from block
            \\RIG1                          RIG1
    root@2[knoppix]# findsmb
    
                                    *=DMB
                                    +=LMB
    IP ADDR         NETBIOS NAME     WORKGROUP/OS/VERSION
    ---------------------------------------------------------------------
    192.168.0.33    TESTSHARE     +[DACPAS] [Unix] [Samba 3.0.2]
    192.168.0.103   KNOPPIX       +[WORKGROUP] [Unix] [Samba 3.0.22]
    dont know if this helps any

  8. #7
    Just Joined!
    Join Date
    Sep 2006
    Posts
    6

    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:
    Code:
    root@2[knoppix]#  mkdir /chris1
    root@2[knoppix]# pwd
    /ramdisk/home/knoppix
    root@2[knoppix]# smbmount //192.168.0.33/shared /ramdisk/home/knoppix/chris -o guest
    so ive got the file /ramdisk.../chris that will point to the folder on the remote hdd

    Code:
    /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.


    Code:
    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
    Just Joined!
    Join Date
    Sep 2006
    Posts
    6

    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
  •