LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 10-05-2006, 05:12 AM   #16
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128

don't put the files in quotes:

Code:
du -sh sol-10-u2-ga-x86-dvd-iso-*
will work. then run the cat command, also without quotes around the files.
 
Old 10-05-2006, 05:37 AM   #17
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks pwc101
You knew minute details. It worked.

[nissanka@c83-250-100-230 Solaris]$ du -sh sol-10-u2-ga-x86-dvd-iso-*
644M sol-10-u2-ga-x86-dvd-iso-a
535M sol-10-u2-ga-x86-dvd-iso-a.zip
542M sol-10-u2-ga-x86-dvd-iso-b
536M sol-10-u2-ga-x86-dvd-iso-b.zip
559M sol-10-u2-ga-x86-dvd-iso-c
536M sol-10-u2-ga-x86-dvd-iso-c.zip
549M sol-10-u2-ga-x86-dvd-iso-d
535M sol-10-u2-ga-x86-dvd-iso-d.zip
596M sol-10-u2-ga-x86-dvd-iso-e
532M sol-10-u2-ga-x86-dvd-iso-e.zip
2.9G sol-10-u2-ga-x86-dvd-iso-full.iso
[nissanka@c83-250-100-230 Solaris]$
-------------------------------------------------------------------------------------------------------

However the 'cat' command with quotes and without quotes failed to produce any tangible output.

[nissanka@c83-250-100-230 Solaris]$ cat -sh sol-10-u2-ga-x86-dvd-iso-*
cat: invalid option -- h
Try `cat --help' for more information.

[nissanka@c83-250-100-230 Solaris]$ cat '-sh sol-10-u2-ga-x86-dvd-iso-*'
cat: invalid option -- h
Try `cat --help' for more information.
[nissanka@c83-250-100-230 Solaris]$

Last edited by Gins; 10-05-2006 at 05:50 AM.
 
Old 10-05-2006, 06:25 AM   #18
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Read the output from your terminal:
Code:
cat: invalid option -- h
Try `cat --help' for more information.
It's saying that cat has not worked because you've supplied some invalid options, namely -sh. These are options for the du command.

I'll briefly explain unix/linux command structure:

First you have a command (such as ls, cd, du, cat). These work in certain default ways. You can modify their default behaviour by adding in various switches. These are most often represented by a dash, followed by a letter, such that a modified du command would be du -sh, a modified ls command is ls -lh, a modified cat command is cat -s, etc.

So, back to your problem. You typed in the cat command cat -sh. This prompted the shell to return an error message to you, saying it didn't understand what -h does. If you look at raska's post with the cat command in it, his cat command does not include the -sh switches, those you appear to have added youself. It seems you have confused the du -sh and the cat commands.

What the cat command is doing is just sticking all the files you have from the zip files together into one file (an iso). cat is short for concatenate, which means join together. Therefore, raska's cat command was taking the 5 individual files (sol-10-u2-ga-x86-dvd-iso-a, sol-10-u2-ga-x86-dvd-iso-b, sol-10-u2-ga-x86-dvd-iso-c, sol-10-u2-ga-x86-dvd-iso-d, sol-10-u2-ga-x86-dvd-iso-e) and making one single file from them (sol-10-u2-ga-x86-dvd-iso-full.iso). I'll repeat raska's command here for reference:
Code:
cat sol-10-u2-ga-x86-dvd-iso-a sol-10-u2-ga-x86-dvd-iso-b sol-10-u2-ga-x86-dvd-iso-c sol-10-u2-ga-x86-dvd-iso-d sol-10-u2-ga-x86-dvd-iso-e > sol-10-u2-ga-x86-dvd-iso-full.iso
It seems this has worked correctly however, since you have a file called sol-10-u2-ga-x86-dvd-iso-full.iso in your directory, which you can confirm by running ls -lh to show all the files, with long listing (the -l in the ls command) in human readable format (the -h in the ls command).

Hope this clear things up a bit.
 
Old 10-05-2006, 08:19 AM   #19
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks pwc101 for taking time to provide me with a lengthy reply


[nissanka@c83-250-100-230 Solaris]$ ls -lh sol-10-u2-ga-x86-dvd-iso-full.iso
-rw-r--r-- 1 nissanka nissanka 2.9G Oct 5 12:17 sol-10-u2-ga-x86-dvd-iso-full.iso


[nissanka@c83-250-100-230 Solaris]$ ls -lh 'sol-10-u2-ga-x86-dvd-iso-full.iso'
-rw-r--r-- 1 nissanka nissanka 2.9G Oct 5 12:17 sol-10-u2-ga-x86-dvd-iso-full.iso
[nissanka@c83-250-100-230 Solaris]$

Now I will burn this 2.9G file as a DVD ISO image.
Is it fine? I mean do you want burn some other way.
 
Old 10-05-2006, 10:11 AM   #20
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
From raska's first post:
Quote:
Originally Posted by raska
I'm guessing what happened: they splitted one big image file into several files (5 ones this case) with the split command (check the man).
So far we've assumed that the original dvd iso had been split, and so we've stitched it back together; this may not be what happened. Either way, give it a go, if it works, then brilliant. If not, we'll go from there fingers crossed!

edit: I checked the Sun download site, and this links to the instructions on how to extract the iso: http://www.sun.com/software/solaris/...nstruction.xml It seems raska guessed correctly

Last edited by pwc101; 10-05-2006 at 10:18 AM.
 
Old 10-05-2006, 12:24 PM   #21
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks pwc101 for the reply.

It works fine. I could burn it without any hassle.

I need some more help or rather advice on the installation of the Solaris.

This computer I am writing has a 64 bit processor. I am using Mandriva Linux 2006 version. It is a 64 bit program. This has a dual boot system. LILO decides whether I want to go to Windows XP or Linux.

My default is Linux. If I don't touch the computer at the start, it starts Linux. I have 30 second to change to Windows XP. I rarely use Windows XP.


The symbol of the harddrive where I have Linux is ' hda6'. How do I make a partition on that part to install the Solaris? This Solaris is a 64 bit program. I have some other computers too. They are 32 bit ones.

When I bought this computer, almost 6 months ago, it has a SATA harddrive. I asked them to put a SATA harddrive of 180GB.

I struggled to install Linux on that harddrive. I couldn't install. The problem was with some drivers. Mandriva Linux 2006 didn't have some drivers to install. I looked for drivers on the Internet and as well as Mandriva's repositories.

Afterwards, I bought another Samsung harddrive. It is an IDE hardrive. It is 200GB. I could install Mandriva Linux 2006 on that harddrive.

So the disconnected SATA harddrive is inside the computer.

As a matter of fact I would like to install the Solaris on that free 180GB harddrive.

Is this feasible?

Your thoughts are welcome.


It may be that Mandriva Linux 2007 version or some latest version has all the drivers. I didn't find any Mandriva Linux 2007 version or any upgrade version.


------------------------------------------------------------------------------------------------------------------------
[nissanka@c83-250-100-230 ~]$ df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda6 77996388 20450052 53584308 28% /
/dev/hda1 36636200 8469316 28166884 24% /mnt/win_c
/dev/hda5 77901248 288 77900960 1% /mnt/win_d
[nissanka@c83-250-100-230 ~]$



[nissanka@c83-250-100-230 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda6 75G 20G 52G 28% /
/dev/hda1 35G 8.1G 27G 1% /mnt/win_d
/dev/hda5 75G 288K 75G 1% /mnt/win_d
[nissanka@c83-250-100-230 ~]$

[The hda6 is 75GB. I have used 20GB and 52GB are free. This /mnt/win_c is
the Windows XP. It may be possible to install Solaris on 'hda5' drive too. it has 75GB and I have used only 288KB.

Where is the swap file? I am sure I created 1GB or 2GB large swap file. This was 6-8 months ago.]

Last edited by Gins; 10-05-2006 at 12:40 PM.
 
Old 10-05-2006, 01:31 PM   #22
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Let us say I want to install Solris on ' dev/hda5 75G 288K 75G 1% /mnt/win_d '.

1. Is it possible? Three operating systems on one computer!

2. The cd is a bootable one. Will it recognize all those partitions?

I don't want to erase my Linux at any cost.
 
Old 10-05-2006, 03:22 PM   #23
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
The bootable CD works fine. I inserted the CD and rebooted the computer. It started installing Solaris.

It failed to recognize the 'hda6' , 'hda5' or 'hda1'.

It told me the required disk space is 7457MB.
Selected disk space is 190772MB.

This means the entire harddrive. This Samsung hardrive is 200GB.
It will just overwrite on existing data and create a Solaris computer.

It asked whether to continue or exit.

I selected exit.


On this computer my Linux and Windows XP works fine. I would like to have Solaris as another operating system.


At the beginning of the installation, I had to select one of the following:

1) Solaris Interactive (default)

2) Custom JumpStart

3) Solaris Interactive Text (Desktop Session)

4) Solaris Interactive Text ( Console Session)

5) Apply driver updates

6) Single user ...


I selected the (1) and pressed enter. Then I read the following messages:


Warning e1 x 10: link failure

Using install cd in /dev/dsk/c1t0d0p0

Usin RPC Bootparams for network configuration.

When it told me the figure of the selected disk space, I asked to exit.

I want to install Solaris. Your thoughts are welcome.

Do I have to select Custom Jumpstart?
 
Old 10-05-2006, 04:17 PM   #24
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally Posted by Gins
...It works fine. I could burn it without any hassle.
I need some more help or rather advice on the installation of the Solaris....
Well I'm really glad you could sort that out. Albeit I can't be of help with Solaris. I tried to install it once, failed, threw away the disc, didn't have the time nor the patience for it, and I just learnt that I'm a linux guy. There is a Solaris forum here in LQ, post there or search for specific answers, I'm sure there should be someone able to help ya
Godspeed.
 
Old 10-06-2006, 03:32 AM   #25
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
I'm also glad you could burn the cd, but I haven't any experience of installing Solaris. Although, since I've joined this thread, I've downloaded the solaris installation, and plan on having a go at installing it myself.

In fact, (not that this is of any interest to anyone) I plan on installing a number of distros since I've only ever tried Fedora, Puppy and Slackware. Debian and Ubuntu are on my list, as is Solaris now
 
Old 10-11-2006, 02:50 PM   #26
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 Gins
[nissanka@c83-250-100-230 Solaris]$ file 'sol-10-u2-ga-x86-dvd-iso-full.iso'
sol-10-u2-ga-x86-dvd-iso-full.iso: ISO 9660 CD-ROM filesystem data 'SOL_10_606_X86 ' (bootable)
[nissanka@c83-250-100-230 Solaris]$

I am a bit perplexed by this type of usage of the command 'cat'.
We don't use the 'cat' command to create files or collect together parts of files. The 'cat' command is to read a file.
The cat command was originally created to combine several files to its standard output, although it's true the main usage is to display a file content.
Its name shows this, being an abbreviation of "catenate" (or concatenate).
 
Old 10-11-2006, 04:43 PM   #27
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally Posted by jlliagre
The cat command was originally created to combine several files to its standard output...
You got that right.
From man cat:
Code:
NAME
       cat - concatenate files and print on the standard output
....
DESCRIPTION
       Concatenate FILE(s), or standard input, to standard output.
 
  


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
Zip File raja Linux - General 4 06-13-2006 01:14 AM
Downloads are all ISO: no zip, Gzip, Tarballs? Z505 General 13 04-02-2005 11:38 PM
create a self-extracting zip file with zip on solaris? samsolaris Solaris / OpenSolaris 3 10-15-2004 01:50 AM
zip the file ashley75 Linux - General 1 05-01-2004 12:52 PM
Forum Choice: Zip VS iso tweek Linux - Software 5 02-12-2004 04:08 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

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