LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 08-29-2010, 11:20 PM   #1
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Rep: Reputation: 16
Extract ISO (Not mount)


Dear All,

I need to extract some iso files on my Solaris system. The problem is I don't have root permission, and even no permission to mount. So is there anything I can do to extract these iso files without mounting them?

thanks in advanced,

yoachan
 
Old 08-30-2010, 01:37 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I don't think so ... usually a loopback mount is the method (lofiadm), how about extracting the files on your pc then copying across ?
 
Old 08-30-2010, 01:46 AM   #3
z-vet
Member
 
Registered: Aug 2004
Location: Israel
Distribution: LMDE 5
Posts: 271

Rep: Reputation: 34
File Roller can open ISO images.
 
Old 08-30-2010, 02:47 AM   #4
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Original Poster
Rep: Reputation: 16
Thanks for the replies...

Quote:
Originally Posted by kbp View Post
I don't think so ... usually a loopback mount is the method (lofiadm), how about extracting the files on your pc then copying across ?
Ouch.... The file has been uploaded hundreds kilometer away....
with my internet speed that will take some time.
It'll be like start all process from the begining.
But if that's the only solution, I guess I have no other option....


Quote:
Originally Posted by z-vet View Post
File Roller can open ISO images.
AFAIK File Roller is the archive manager of the GNOME desktop environment.
Will it work using command line too? For I can only use ssh console - no GUI.

regards,

yoachan

Last edited by yoachan; 08-30-2010 at 03:04 AM.
 
Old 08-30-2010, 04:06 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by yoachan View Post
AFAIK File Roller is the archive manager of the GNOME desktop environment.
Will it work using command line too? For I can only use ssh console - no GUI.
It works through the CLI:
Code:
file-roller --extract image.iso
However, it still requires a GUI. Can't you "ssh -X" ?
 
Old 08-30-2010, 09:18 AM   #6
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jlliagre View Post
It works through the CLI:
Code:
file-roller --extract image.iso
However, it still requires a GUI. Can't you "ssh -X" ?
no, really no GUI at all....
 
Old 08-30-2010, 09:36 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
A workaround would be to use vnc:

Code:
$ vncserver

You will require a password to access your desktops.

Password:
Password must be at least 6 characters - try again
Password:
Verify:
xauth:  creating new authority file /home/guest/.Xauthority

New 'm3:1 ()' desktop is m3:1

Creating default startup script /tmp/guest/.vnc/xstartup
Starting applications specified in /tmp/guest/.vnc/xstartup
Log file is /tmp/guest/.vnc/m3:1.log


$ DISPLAY=:1 file-roller --extract-here /tmp/image.iso
 
Old 08-30-2010, 09:44 AM   #8
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
You can simply use the old dd command to extract an iso from some device:

Code:
dd if=/dev/cdrom of=cdrom.iso
This takes the media at /dev/cdrom and puts it in the file cdrom.iso.

Is this what you were asking for? You can also pipe dd to ssh and directly rip to a network location if you need to.

Regards,

Alunduil
 
Old 08-30-2010, 10:01 PM   #9
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Original Poster
Rep: Reputation: 16
Thanks for the replies

Quote:
Originally Posted by jlliagre View Post
A workaround would be to use vnc:
Code:
$ vncserver

You will require a password to access your desktops.

Password:
Password must be at least 6 characters - try again
Password:
Verify:
xauth:  creating new authority file /home/guest/.Xauthority

New 'm3:1 ()' desktop is m3:1

Creating default startup script /tmp/guest/.vnc/xstartup
Starting applications specified in /tmp/guest/.vnc/xstartup
Log file is /tmp/guest/.vnc/m3:1.log


$ DISPLAY=:1 file-roller --extract-here /tmp/image.iso
Isn't VNC needs to be installed first?
As I noted, I really have no root or any power user privilege.
It's only a rented space at web hosting.
If it's possible I want to do it via console for either way I don't have enough bandwidth to do remote GUI.

Quote:
Originally Posted by alunduil View Post
You can simply use the old dd command to extract an iso from some device:

Code:
dd if=/dev/cdrom of=cdrom.iso
This takes the media at /dev/cdrom and puts it in the file cdrom.iso.

Is this what you were asking for? You can also pipe dd to ssh and directly rip to a network location if you need to.

Regards,

Alunduil
um..... this machine don't have a /dev/cdrom or anything like optical devices... can't I use any other device?
If /dev/cdrom is exist, don't I have to mount it to somewhere to be able to get what inside the iso file?
In this case I have mount -- which I have no privilege.

The only thing that I need is getting files inside an iso file. no more nor less.

regards,

Yoachan

Last edited by yoachan; 08-30-2010 at 10:06 PM.
 
Old 08-31-2010, 01:50 AM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by yoachan View Post
Isn't VNC needs to be installed first?
Sure, but it might already be installed. Did you check it wasn't ?
Quote:
As I noted, I really have no root or any power user privilege.
It's only a rented space at web hosting.
If it's possible I want to do it via console for either way I don't have enough bandwidth to do remote GUI.
You mean "ssh -X" isn't disabled ?
 
Old 08-31-2010, 03:09 AM   #11
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Original Poster
Rep: Reputation: 16
again, thanks for the reply...

Quote:
Originally Posted by jlliagre View Post
Sure, but it might already be installed. Did you check it wasn't ?
So I need to install an VNC client at my place?
But how can I know that the machine has an VNC server?
GUI really is my second last option for I have a slow internet access.
My last option is copy the iso to my other machine which I have full access, extract them and return extracted files ...

Quote:
Originally Posted by jlliagre View Post
You mean "ssh -X" isn't disabled ?
I get this error
(file-roller:24948): Gtk-WARNING **: cannot open display:
even though I've use -x in my ssh command...

regards

yoachan
 
Old 08-31-2010, 03:36 AM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by yoachan View Post
So I need to install an VNC client at my place?
Not necessarily as the command I suggested is non interactive.
Quote:
But how can I know that the machine has an VNC server?
Trying to run "vncserver" would be a good start. If not in the path, you can search that way:
Code:
pkginfo | grep -i vnc
find / -name Xvnc
Quote:
GUI really is my second last option for I have a slow internet access.
How slow ?
Quote:
My last option is copy the iso to my other machine which I have full access, extract them and return extracted files ...
I guess this job would already be done should you have started it along with you first posting here, 28 hours ago.
Quote:
I get this error
(file-roller:24948): Gtk-WARNING **: cannot open display:
even though I've use -x in my ssh command...
Is there an X server running on your client side ?
 
Old 08-31-2010, 09:12 PM   #13
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Please note the case of the 'X' as it means the opposite, you mentioned -
Quote:
even though I've use -x in my ssh command...
as opposed to what jlliagre typed -
Quote:
However, it still requires a GUI. Can't you "ssh -X" ?
cheers
 
Old 08-31-2010, 10:18 PM   #14
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Original Poster
Rep: Reputation: 16
Thanks for the replies,

Quote:
Originally Posted by jlliagre View Post
Not necessarily as the command I suggested is non interactive.
Trying to run "vncserver" would be a good start. If not in the path, you can search that way:
Code:
pkginfo | grep -i vnc
find / -name Xvnc
No VNC server.
vncserver: command not found
pkginfo give no vnc result.
find command couldn't find it too.

Quote:
Originally Posted by jlliagre View Post
How slow ?
Yesterday I downloaded a 300KB file and it took me almost 5 minutes...
and 7MB file will take approx an hour....

Quote:
Originally Posted by jlliagre View Post
I guess this job would already be done should you have started it along with you first posting here, 28 hours ago.
I've already started it (and still on progress), but with 10GB data, if I'm lucky it will take about a week to complete....
So if there is any other solution, it will finish sooner.

Quote:
Originally Posted by jlliagre View Post
Is there an X server running on your client side ?
Just read what kbp said, and try it at my GUI machine (I used to use console only) using -X (I've get it wrong with -x).
I get message box saying Archive not supported and at my ssh console
Code:
(file-roller:16258): Gtk-CRITICAL **: file gtkwidget.c: line 5916: assertion `GTK_IS_WIDGET (widget)' failed

(file-roller:16258): GLib-GObject-CRITICAL **: file gobject.c: line 1222: assertion `G_IS_OBJECT (object)' failed

(file-roller:16258): Gtk-CRITICAL **: file gtkwidget.c: line 5916: assertion `GTK_IS_WIDGET (widget)' failed

(file-roller:16258): GLib-GObject-CRITICAL **: file gobject.c: line 1222: assertion `G_IS_OBJECT (object)' failed

(file-roller:16258): Gtk-CRITICAL **: file gtkmain.c: line 1231: assertion `main_loops != NULL' failed
As a note, computer that I'm using is a SuSE, not Solaris.

Quote:
Originally Posted by kbp View Post
Please note the case of the 'X' as it means the opposite, you mentioned -

as opposed to what jlliagre typed -

cheers
Yes, I got it wrong.
Thanks


regards,

yoachan

Last edited by yoachan; 08-31-2010 at 11:20 PM.
 
Old 09-01-2010, 02:13 AM   #15
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Are you sure the image is in ISO format and uncorrupted ?
What says "file image.iso" ?
How did you transfer it ?
 
  


Reply



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
trying to mount iso or extract img, not working hedpe Linux - Software 10 10-02-2008 09:26 PM
How to extract a .iso file dickgb Linux - Newbie 5 09-07-2008 05:16 PM
iso, or extract? phantom_cyph General 2 05-10-2007 05:11 AM
Extract contents from an ISO General Linux - Software 3 12-10-2005 07:46 PM
mount a .iso or extract a .iso behind user witout access to root easytarget Linux - Newbie 3 09-29-2002 05:01 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:26 AM.

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
Open Source Consulting | Domain Registration