This is my documented on how to mount networked win2k shared folder using linux.
In my case i'm using centos5.
On your linux box, as root :
create a mountpoint for your windows
mkdir /mnt/win2k
change owner/permission to your mountpoint
chmod 777 /mnt/win2k
mount your desired win2k folder to your mountpoint
mount -t cifs -o username=[win2k user], password=[win2k passwd], workgroup=[win2k workgroup] //[win2k ip or hostname] /mnt/win2k --verbose
Just change the [in bracket arg] with your own.
Hepi mounting :)
Showing posts with label technical. Show all posts
Showing posts with label technical. Show all posts
Tuesday, April 15, 2008
Monday, March 3, 2008
Linux tape backup with mt and tar command - howto
Magnetic tape is a non-volatile storage medium consisting of a magnetic coating on a thin plastic strip. Nearly all recording tape is of this type, whether used for video, audio storage or general purpose digital data storage using a computer.
Linux (and other Unixish system) use mt
The default tape drive under Linux is /dev/st0 (first SCSI tape device name). You can read more about tape drives naming convention used under Linux here. Following paragraph summaries command you need to use control tape drive for backup/restore purpose.
Rewind tape drive:
# mt -f /dev/st0 rewind
Backup directory /www and /home with tar command (z - compressed):# tar -czf /dev/st0 /www /home
Find out what block you are at with mt command:
# mt -f /dev/st0 tellDisplay list of files on tape drive:
# tar -tzf /dev/st0
Restore /www directory:# cd /
# mt -f /dev/st0 rewind
# tar -xzf /dev/st0 wwwUnload the tape:
# mt -f /dev/st0 offlineDisplay status information about the tape unit:
# mt -f /dev/st0 statusErase the tape:
# mt -f /dev/st0 eraseYou can go BACKWARD or FORWARD on tape with mt command itself:
(a) Go to end of data:
# mt -f /dev/nst0 eod
(b) Goto previous record:# mt -f /dev/nst0 bsfm 1
(c) Forward record:
# mt -f /dev/nst0 fsf 1* Replace /dev/st0 with your actual tape drive name.
Subscribe to:
Posts (Atom)