I believe it's like:
mount -t cifs -o username=domainname\username //192.168.200.254/work/smb
/home/partimag
If you want to make it a batch file, it's like
mount -t cifs -o username=domainname\username,password=passwordinmsdomain //192.168.200.254/work/smb
/home/partimag
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The cifs mount command built into the LiveCD doesn't seem to pass credentials properly when using a Windows file share. Part of this has to do with the fact that a Windows machine is looking for a domain as part of the authentication credential. The SMBFS mount command ignores the lack of a domain and mounts correctly. Alternately, you have to provide the domainname as indicated below:
I have used this process successfully with a WinXP machine acting as a file server:
- Exit into the command line before starting Clonezilla
- Type 2 to get to the command line
- sudo su -
- mount -t smbfs //<IP Address or FQDN>/<Sharename> /home/partimag -o username=<username>
- Restart Clonezilla by typing "ocs"
- When it asks to mount a location to find the image files, choose skip.
Alternately,
- Exit into the command line before starting Clonezilla
- Type 2 to get to the command line
- sudo su -
- mount -t cifs //<IP Address or FQDN>/<Sharename> /home/partimag -o username=<Machine Name or Domain Name>/<username>
- Restart Clonezilla by typing "ocs"
- When it asks to mount a location to find the image files, choose skip.
Hope that helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Did you check this ? http://clonezilla.sourceforge.net/clonezilla-live/
...
///NOTE/// The image name of Clonezilla is actually a directory name. For example, if you give the image name as 2007-05-NOVISTA, all the info will be saved as in the directory /home/partimag/2007-05-NOVISTA/. Inside that directory, MBR, partition table and partition files will be stored. Therefore when you want to restore an image, remember to mount the /home/partimag as the right device or path. i.e. the directory 2007-05-NOVISTA must be in the clonezilla home directory (Ex. /home/partimag)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What the error messages when you said "failed" ?
Actually I do not have many experience about mounting M$ windows server. Maybe someone reading in this forum can give more info. If so, please.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was struggling to mount a home NAS share. CZ obstinately refused with error -13.
After some searching and some experimentation on the command line, I discovered that the missing piece was to add the argument "sec=ntlm" after the -o option. The NAS drive mounted, I got back into CZ, skipped mounting /home/partimag, and was able to back my Linux box to NAS.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for reporting this.
OK, for the discussions here: http://aptosid.com/index.php?name=PNphpBB2&file=viewtopic&t=2566
I realized the from Linux kernel 3.8, the default security for CIFS has been changed to ntlmv2, which has been used widely many years. However, for some embedded system, like NAS sever, the samba is still old version (e.g. 2.x)), that's why.
We will have an option to let people choose "ntlm" or "ntlmv2" in the future release.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On http://clonezilla.sourceforge.net/clonezilla-live/, you explained:
mount -t cifs -o username=your_user_name //192.168.200.254/work/smb /home/partimag
If the machine is on a windows domain,
then what should my username be?
domain/username?
I believe it's like:
mount -t cifs -o username=domainname\username //192.168.200.254/work/smb
/home/partimag
If you want to make it a batch file, it's like
mount -t cifs -o username=domainname\username,password=passwordinmsdomain //192.168.200.254/work/smb
/home/partimag
Sorry, I replied to the wrong part of the thread,
you can see my reply here http://sourceforge.net/forum/message.php?msg_id=4405110
The cifs mount command built into the LiveCD doesn't seem to pass credentials properly when using a Windows file share. Part of this has to do with the fact that a Windows machine is looking for a domain as part of the authentication credential. The SMBFS mount command ignores the lack of a domain and mounts correctly. Alternately, you have to provide the domainname as indicated below:
I have used this process successfully with a WinXP machine acting as a file server:
- Exit into the command line before starting Clonezilla
- Type 2 to get to the command line
- sudo su -
- mount -t smbfs //<IP Address or FQDN>/<Sharename> /home/partimag -o username=<username>
- Restart Clonezilla by typing "ocs"
- When it asks to mount a location to find the image files, choose skip.
Alternately,
- Exit into the command line before starting Clonezilla
- Type 2 to get to the command line
- sudo su -
- mount -t cifs //<IP Address or FQDN>/<Sharename> /home/partimag -o username=<Machine Name or Domain Name>/<username>
- Restart Clonezilla by typing "ocs"
- When it asks to mount a location to find the image files, choose skip.
Hope that helps.
I roughly figured out the problem.
When we mount //<IP Address or FQDN>/<Sharename>,
it is fine.
When we mount //<IP Address or FQDN>/<Sharename>/<Subfolder>,
not fine!
What do you think?
Did you check this ?
http://clonezilla.sourceforge.net/clonezilla-live/
...
///NOTE/// The image name of Clonezilla is actually a directory name. For example, if you give the image name as 2007-05-NOVISTA, all the info will be saved as in the directory /home/partimag/2007-05-NOVISTA/. Inside that directory, MBR, partition table and partition files will be stored. Therefore when you want to restore an image, remember to mount the /home/partimag as the right device or path. i.e. the directory 2007-05-NOVISTA must be in the clonezilla home directory (Ex. /home/partimag)
Let's say 2007-05-NOVISTA is in \\192.168.0.2\a\b\c\d\2007-05-NOVISTA,
I should be mounting \\192.168.0.2\a\b\c\d
But fails :-(
I thought it has to do with spaces in share names
but tried without spaces, same problem.
Mounting \\192.168.0.2\a = fine,
subdirectory of a share = not fine
I tried domainname\username,
it just wouldn't work :-(
Apart from that, what if the shared directory contains spaces in between?
Can I just put a pair of double quotes around it?
What the error messages when you said "failed" ?
Actually I do not have many experience about mounting M$ windows server. Maybe someone reading in this forum can give more info. If so, please.
Thanks.
I just tried
mount -t cifs "//192.168.0.2/CloneZilla Storage/Windows XP" /home/partimag -o username=x,domain=y
I got a mount error 6,
I know that shared directory definitely exists :-(
Can someone please share your experience mounting shares of machine on Windows Domain.
The way I got it to work was
mount -t cifs //192.168.150/share /home/partimag -o username=xxxx,domain=xxxxx,password=xxxx
works like a charm for me but I don't have spaces in the shared name.
I was struggling to mount a home NAS share. CZ obstinately refused with error -13.
After some searching and some experimentation on the command line, I discovered that the missing piece was to add the argument "sec=ntlm" after the -o option. The NAS drive mounted, I got back into CZ, skipped mounting /home/partimag, and was able to back my Linux box to NAS.
Thanks for reporting this.
OK, for the discussions here:
http://aptosid.com/index.php?name=PNphpBB2&file=viewtopic&t=2566
I realized the from Linux kernel 3.8, the default security for CIFS has been changed to ntlmv2, which has been used widely many years. However, for some embedded system, like NAS sever, the samba is still old version (e.g. 2.x)), that's why.
We will have an option to let people choose "ntlm" or "ntlmv2" in the future release.
Steven.