LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2005, 09:32 PM   #16
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30

Your instructions for copying the file should work fine, except the flags for mount come before the directory (and -w is default, so you don't need to use it anyway). You can just do this from /home:

Code:
mkdir sware
cd sware
mount /mnt/cdrom
cp /mnt/cdrom/rsync-2.6.5.tar.gz .
The dot, by the way, is an abbreviation for whatever your current directory is, so it's copying from /mnt/cdrom to the current directory.

As far as extracting it, zcat is just going to un-gzip it, but it's tarred as well. The right command would be "tar zxvf rsync-2.6.5.tar.gz" (z mean un-gzip, x means extract from a tar archive, v means be verbose and list files as they are extracted, and f means the filename follows next). This should create a directory in the current directory named "rsync-2.6.5" with the extracted contents inside.

--EDIT--
Actually, -w means mount read/write, and you can't do that with a CD in the first place.

Last edited by jrdioko; 07-03-2005 at 09:33 PM.
 
Old 07-04-2005, 09:16 AM   #17
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Rep: Reputation: 30
yep, doing that will copy the .tar.gz file to /home/sware, then all you have to is
Code:
cd /home/sware/
tar zxvf rsync-2.6.5.tar.gz
this should extract rsync-2.6.5.tar.gz to /home/sware

a good resource for looking what different commands do is the man pages

these are different discriptions of the different tools availiable on your system. it's accessed by typing "man toolname"

too learn more about the man pages try typing "man man"

Last edited by dosnlinux; 07-04-2005 at 09:23 AM.
 
Old 07-13-2005, 02:01 PM   #18
jtdodge
Member
 
Registered: Jun 2005
Location: Vermont
Distribution: Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 15
mounting an external hard drive?

i'm hooking up an ext. hdrive up for another backup source.

once plugged in to the usb port what command do i use to mount it? or rather how do i reference the random external hard drive i have?

thanks for the help in advance!
 
Old 07-13-2005, 05:20 PM   #19
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Rep: Reputation: 30
Code:
mount -t filesystemtype /dev/sdXY /mnt/mountpoint
you may also want to add the external hd to your fstab
 
Old 07-14-2005, 08:42 AM   #20
jtdodge
Member
 
Registered: Jun 2005
Location: Vermont
Distribution: Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 15
mount -t filesystemtype /dev/sdXY /mnt/mountpoint

is the filesystem type...like fat32 or ntfs ...is that what its looking for?

and can the mount point be /mnt/anything/ ?
 
Old 07-14-2005, 08:51 AM   #21
jtdodge
Member
 
Registered: Jun 2005
Location: Vermont
Distribution: Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 15
cron

is it fairly simple to set a backup to an external hard drive with cron?
 
Old 07-14-2005, 04:14 PM   #22
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Rep: Reputation: 30
Quote:
Originally posted by jtdodge
mount -t filesystemtype /dev/sdXY /mnt/mountpoint

is the filesystem type...like fat32 or ntfs ...is that what its looking for?

and can the mount point be /mnt/anything/ ?
yup, I think filesystems available for your system are listed in /proc/filesystems

and a mount point can be any folder on your hard drive, not just a folder in the /mnt directory
 
Old 07-14-2005, 08:53 PM   #23
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
You do have to create the directory first, though, before you can mount anything on to it.
 
Old 07-19-2005, 09:57 AM   #24
jtdodge
Member
 
Registered: Jun 2005
Location: Vermont
Distribution: Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 15
mounting an external Hard-drive

OK here¡¦s the piece,\

In an attempt to hook up an 80 gig ext. hard-drive:

I loaded rsync...then created the folder to mount the file system /mnt/usb80gig/.

From there I typed:

mount -t usbfs /dev/sdXY
/mnt/usb80gig


And I don't think it did anything and I don't really know how to browse the 80 external hard-drive.

Should I have done this (below)??:

mount -t fat32 /dev/sdXY
/mnt/usb80gig


Any help would be huge.

Thanks again everyone.

Last edited by jtdodge; 07-19-2005 at 10:00 AM.
 
Old 07-19-2005, 02:20 PM   #25
jtdodge
Member
 
Registered: Jun 2005
Location: Vermont
Distribution: Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 15
okay okay

got it!


let me just confirm that i'm on the right track...

the /mnt/directory/ ...is the actual drive to save to...correct?
 
Old 07-20-2005, 01:41 PM   #26
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Rep: Reputation: 30
Quote:
the /mnt/directory/ ...is the actual drive to save to...correct?
yep. Saving to the /mnt/directory is like saving to the drive letter in Windows
 
Old 08-08-2005, 11:10 AM   #27
jtdodge
Member
 
Registered: Jun 2005
Location: Vermont
Distribution: Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 15
i started a backup and ran out of hd space

Code:
mount -t filesystemtype /dev/sdXY /mnt/mountpoint
i used this to mount the drive and did a backup to
Code:
/mnt/usb80gig
and it saved to the folder...but for some reason it must not have mounted because i shortly thereafter started getting all the weird errors of an out of space hard-drive.

what do you suspect my error might be...i know it's hard to tell not looking at my machine...but i'm hoping you have a suspicion.
 
Old 08-09-2005, 02:33 PM   #28
jtdodge
Member
 
Registered: Jun 2005
Location: Vermont
Distribution: Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 15
does this sound correct?

any ideas?
 
Old 08-09-2005, 02:43 PM   #29
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Rep: Reputation: 30
Re: i started a backup and ran out of hd space

Quote:
Originally posted by jtdodge
Code:
mount -t filesystemtype /dev/sdXY /mnt/mountpoint
i used this to mount the drive and did a backup to
Code:
/mnt/usb80gig
and it saved to the folder...but for some reason it must not have mounted because i shortly thereafter started getting all the weird errors of an out of space hard-drive.

what do you suspect my error might be...i know it's hard to tell not looking at my machine...but i'm hoping you have a suspicion.
Did mount give you any error messages? and could you post the exact error messages your getting. Without them it's very difficult/impossible to diagnose any problems.
 
Old 08-09-2005, 02:51 PM   #30
jtdodge
Member
 
Registered: Jun 2005
Location: Vermont
Distribution: Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 15
i'll take a look

thanks DL
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Just the beginning.... woodworker97 Mandriva 5 05-20-2005 02:53 AM
A new beginning... LK873 Mandriva 13 03-08-2005 07:59 AM
very beginning vegpl Linux From Scratch 13 06-26-2004 12:56 PM
Beginning to print iqbala Linux - Newbie 1 01-11-2004 06:16 PM
Beginning Fatal_3rr0r Programming 4 06-09-2003 09:08 PM


All times are GMT -5. The time now is 04:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration