LinuxQuestions.org
Visit Jeremy's Blog.
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 03-11-2006, 01:06 AM   #1
CJohnM
LQ Newbie
 
Registered: Feb 2006
Posts: 29

Rep: Reputation: 15
Untar from a CD


Is it possible to untar a tar.gz package from a CDROM? Would it just be untar zxvf /cdrom/<DIRECTORY>.tar.gz? I am asking because I'm having problems getting my GUI up and running on Ubuntu and working entirely in the command line. I also don't have a properly configured network, so I can't download stuff. I have a dual boot with XP, from where I run Ubuntu through VMware, so I can make the required packages that way.

Thanks
 
Old 03-11-2006, 01:19 AM   #2
crAckZ
Member
 
Registered: Sep 2004
Location: LOUISVILLE KENTUCKY
Distribution: mandriva 2006
Posts: 155

Rep: Reputation: 30
give it a try. if not i just copy (cp) it to my hd
 
Old 03-11-2006, 01:21 AM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
No problem at all, as long as you have space where the untarred files will be deposited.

If it is a gzipped tar, like somefile.tar.gx, you would want to first 'cd /the/destination/directory', then

tar zxvf somefile.tar.gz.

The directory where the CDROM is mounted will vary; /mnt/cdrom is one location that some distros use. /media/cdrom seems to be gaining popularity.

--- rod.
 
Old 03-11-2006, 01:55 AM   #4
CJohnM
LQ Newbie
 
Registered: Feb 2006
Posts: 29

Original Poster
Rep: Reputation: 15
Yes, I have a /media/cdrom directory. But when I put the CD in it doesn't do anything. Isn't detected, for some reason.

I built my system up from a debian base using an ubuntu cd which I added to my sources list. I have an Intel 865 video card, which has serious problems with X, which is why I can't get a GUI going. What I have on the CD is a patch for this, so it's quite crucial! Frustratingly my network is also asleep, so I'm stuck with this method (I had no network configured during a debian net install, so that's why I was left with just the deb base).

Is there possibly some way to force the cd to mount from the command line?
 
Old 03-11-2006, 02:53 AM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Try
mount /media/cdrom

Failing that,

man mount

--- rod.
 
Old 03-11-2006, 11:39 PM   #6
CJohnM
LQ Newbie
 
Registered: Feb 2006
Posts: 29

Original Poster
Rep: Reputation: 15
Tried various options, including -

mount /mnt/cdrom
mount media/cdrom
mount -t iso9660 /dev/hdc /media/cdrom

The last returned the reply -

Code:
mount: block device /dev/hdc is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
The strange thing is I got the same result on Ubuntu through VMware, which I run on XP. I have a desktop icon for the CDROM, though, and I can easily access it there. I've tried all these commands as both root and user, and no luck. I'm going to try a floppy now. If that doesn't work does anyone know if there's a way to access a Linux partition through Windows and transfer files? I seem to remember reading about something like that.
 
Old 03-12-2006, 12:53 AM   #7
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
I think you are trying to mount an audio/media cd. mounting the cd with iso9660 type sometimes doesnot work. Try going with udf fstype.
 
Old 03-12-2006, 01:28 AM   #8
CJohnM
LQ Newbie
 
Registered: Feb 2006
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks Prasanta, I'll try that. I've also found this -

http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm

which I'll also try. Also this -

http://www.it.fht-esslingen.de/~zimm...re/ltools.html

Last edited by CJohnM; 03-12-2006 at 01:53 AM.
 
Old 03-12-2006, 04:39 AM   #9
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
Try mounting your cd with device file "/dev/scd0".

Code:
mount /dev/scd0 /mnt/cdrom -t iso9660
Sometimes that device file is used instead of or /dev/hdc if using SCSI emulation.

Otherwise, do
Code:
dmesg | grep -i atapi
to see which device file your cdrom was detected on at boot time.

Have you tried mounting other CD's, just to verify the CD itself is not the problem?
 
  


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
'untar'? stevesk Linux - Newbie 11 12-20-2004 07:50 PM
Untar Dharma_bum07 Linux - Newbie 2 11-26-2004 11:16 AM
can't untar... spotass Linux - Newbie 4 05-29-2004 01:41 PM
Untar to a directory john8675309 Linux - Software 2 03-14-2004 10:12 PM
untar imsajjadali Red Hat 3 01-29-2004 02:47 AM


All times are GMT -5. The time now is 04:11 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