Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,207
» Latest member: Meup
» Forum threads: 4,029
» Forum posts: 16,404

Full Statistics

Online Users
There are currently 551 online users.
» 0 Member(s) | 549 Guest(s)
Bing, Yandex

Latest Threads
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 56
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 73,485
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 30,161
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 1,636
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 5,040
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 40,604
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 103,120
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 43,901
Using git + python
Forum: How Do I?
Last Post: Clueless puppy
2020-08-21, 04:37 PM
» Replies: 0
» Views: 34,403
what does your nick mean ...
Forum: Hello
Last Post: volt
2020-08-06, 03:25 PM
» Replies: 28
» Views: 40,096

 
  Software Install with YUM
Posted by: Dungeon-Dave - 2008-10-26, 09:35 PM - Forum: Package Management - No Replies


1. Overview

 

YUM extends RPM functionality by downloading and installing packages directly from online repositories. As well as all the advantages of RPM, YUM provides a few more handy features:


  • version compatibility: YUM will automatically locate the latest package version on that repo suited to your kernel


  • pre-requisites satisfied: any dependencies are automatically downloaded and installed first - solving that bugbear of "RPM dependency hell"


  • supports local installation: YUM can attempt to install a locally-held RPM package, satisfying pre-requisites online if necessary.


  • package updates: YUM can be instructed to update all installed software with only a few simple commands - or even scheduled to perform this automatically at regular intervals


  • repo index caching: YUM caches an index of repo packages, which can be interrogated to determine repo contents without going online - this can be used to search for packages, or determine what packages provide a required command - or even what are the dependencies for a specific package.


  • repo reports: YUM can report what repos are in effect, which is a bit clearer than trawling through directories of config files.


  • cache management: YUM downloads RPM packages into a cache area prior to installing; a few options to YUM can flush this cache to tidy up after itself




 

2. Basic Commands

 

1. Installing a package: yum install packagename(s), for example:



Code:
# yum install cacti
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package cacti.noarch 0:0.8.7b-4.fc10 set to be updated
--> Processing Dependency: rrdtool for package: cacti
--> Processing Dependency: php-snmp for package: cacti
--> Processing Dependency: mysql for package: cacti
--> Running transaction check
---> Package rrdtool.i386 0:1.3.4-2.fc10 set to be updated
--> Processing Dependency: dejavu-lgc-fonts for package: rrdtool
---> Package mysql.i386 0:5.0.67-2.fc10 set to be updated
--> Processing Dependency: perl(DBI) for package: mysql
---> Package php-snmp.i386 0:5.2.6-5 set to be updated
--> Running transaction check
---> Package perl-DBI.i386 0:1.607-1.fc10 set to be updated
---> Package dejavu-lgc-fonts.noarch 0:2.26-2.fc10 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package                 Arch          Version              Repository     Size
================================================================================
Installing:
cacti                   noarch        0.8.7b-4.fc10        fedora        1.9 M
Installing for dependencies:
dejavu-lgc-fonts        noarch        2.26-2.fc10          fedora        3.5 M
mysql                   i386          5.0.67-2.fc10        fedora        3.1 M
perl-DBI                i386          1.607-1.fc10         fedora        776 k
php-snmp                i386          5.2.6-5              fedora         24 k
rrdtool                 i386          1.3.4-2.fc10         fedora        391 k

Transaction Summary
================================================================================
Install      6 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 9.7 M
Is this ok [y/N]:




 

From here, just a simple answer of "Y" will begin downloading these six packages then install them automatically.

 

Tip: use the "-y" option on yum to answer "yes" to everything.

 

2. Using yum to install a locally-stored RPM file: yum localinstall rpm-package-file, for instance:



Code:
# yum localinstall wine-2.3.4.5




 

3. Updating a package: yum update packagename, eg:



Code:
# yum update sudo
Loaded plugins: refresh-packagekit
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package sudo.i386 0:1.6.9p17-4.fc10 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package       Arch          Version                  Repository        Size
=============================================================================
Updating:
sudo          i386          1.6.9p17-4.fc10          updates          225 k

Transaction Summary
=============================================================================
Install      0 Package(s)
Update       1 Package(s)
Remove       0 Package(s)
Total download size: 225 k
Is this ok [y/N]:




 

Tip: unlike the -U option to RPM, yum update will not update uninstalled packages. However, yum install will attempt to install a new package, or upgrade an already-installed one - use that option first!

 

4. Listing packages held on a repo: yum list searchterm will use that term as a filter, for example:



Code:
$ yum list yum
Loaded plugins: priorities
Excluding Packages in global exclude list
Finished
Installed Packages
yum.noarch                     3.2.19-3.fc8     installed
Available Packages
yum.noarch                     3.2.20-5.fc8      updates-newkey




Although yum version 3.2.19-3 is currently installed, a newer version (3.2.20-5) is available for updating.

 

5. Searching repos for packages: yum search package-to-search will look for packages matching that search term, eg:



Code:
# yum search sql
Loaded plugins: priorities
Excluding Packages in global exclude list
Finished
=================== Matched: sql ===========================
dovecot.i386 : Dovecot Secure imap server
dovecot-mysql.i386 : MySQL backend for dovecot
dovecot-pgsql.i386 : Postgres SQL backend for dovecot
dovecot-sqlite.i386 : SQLite backend for dovecot
hsqldb.i386 : Hsqldb Database Engine
hsqldb-demo.i386 : Demo for hsqldb
hsqldb-javadoc.i386 : Javadoc for hsqldb
hsqldb-manual.i386 : Manual for hsqldb
koffice-kexi-driver-mysql.i386 : Mysql-driver for kexi
koffice-kexi-driver-pgsql.i386 : Postresql driver for kexi
libgda-mysql.i386 : MySQL provider for libgda
libgda-postgres.i386 : PostgreSQL provider for libgda
libgda-sqlite.i386 : SQLite provider for libgda




 

6. Showing a package's dependencies: yum deplist packagename will determine what pre-requisites are required to install that package, i.e. if I want to yum-install a package, what others will yum download and install first?



Code:
# yum deplist cacti
Loaded plugins: refresh-packagekit
Finding dependencies:
package: cacti.noarch 0.8.7b-4.fc10
dependency: net-snmp
  provider: net-snmp.i386 1:5.4.2-3.fc10
  provider: net-snmp.i386 1:5.4.2.1-2.fc10
dependency: php-snmp
  provider: php-snmp.i386 5.2.6-5
dependency: /sbin/service
  provider: initscripts.i386 8.86-1
dependency: mysql
  provider: mysql.i386 5.0.67-2.fc10




In this case, installing cacti requires net-snmp, php-snmp and mysql (amongst other packages), as well as the "service" executable, which is provided by installing the initscripts package.

 

7. Finding which package provides a particular command or file: yum provides filename - this is similar to the "search" option mentioned earlier, except it looks for the actual files within the package rather than search against package names themselves, for instance:



Code:
# yum provides "*lokkit"
Loaded plugins: refresh-packagekit
setuptool-1.19.4-2.fc9.i386 : A text mode system configuration tool
Repo        : fedora
Matched from:
Filename    : /etc/setuptool.d/99lokkit

system-config-firewall-tui-1.2.13-2.fc10.noarch : A text interface for basic
                                               : firewall setup
Repo        : fedora
Matched from:
Filename    : /usr/sbin/lokkit
Other       : lokkit = 1.7.0




In this case, two packages contain files matching the "lokkit" name - I can pick which package I require, depending upon which file/command I need.

 

8. Uninstalling package: yum erase packagename will attempt to erase a package, showing which other files (dependencies on this package) need to also be removed to prevent orphaned packages.



Code:
# yum erase httpd
Loaded plugins: fastestmirror, priorities
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.i386 0:2.2.3-31.el5.centos set to be erased
--> Processing Dependency: httpd-mmn = 20051115 for package: mod_ssl
--> Processing Dependency: httpd-mmn = 20051115 for package: mod_perl
--> Processing Dependency: httpd-mmn = 20051115 for package: mod_python
--> Processing Dependency: httpd-mmn = 20051115 for package: php
--> Processing Dependency: webserver for package: webalizer
--> Processing Dependency: httpd = 2.2.3-31.el5.centos for package: mod_ssl
--> Processing Dependency: httpd for package: system-config-httpd
--> Processing Dependency: httpd = 2.2.3-31.el5.centos for package: httpd-manual
--> Processing Dependency: httpd >= 2.0.40 for package: mod_python
--> Processing Dependency: httpd for package: squirrelmail
--> Processing Dependency: httpd for package: squirrelmail
--> Running transaction check
---> Package httpd-manual.i386 0:2.2.3-31.el5.centos set to be erased
---> Package mod_perl.i386 0:2.0.4-6.el5 set to be erased
---> Package mod_python.i386 0:3.2.8-3.1 set to be erased
...




In this case, Apache modules that depend on HTTPD installed will also be removed when attempting to remove Apache web server.

 

For more information, use man yum.

 

3. YUM File Locations

1. Config Files:

 

There are several config files for YUM, the main one being /etc/yum.conf which used to contain not only directives affecting YUM's behaviour, but addresses directing YUM to FTP servers.

 

The latter are now located in a /etc/yum/repos.d/ directory, one .repo file per FTP site. On a default install there will probably be the official RedHat repos provided - you may need to manually add additional repos in order to access a wider range of software.

 

To get a quick report on what repos are configured, use yum repolist all:

 



Code:
# yum repolist all
Loaded plugins: refresh-packagekit
repo id              repo name                              status
adobe-linux-i386     Adobe Systems Incorporated             enabled:     17
fedora               Fedora 10 - i386                       enabled: 11,416
fedora-debuginfo     Fedora 10 - i386 - Debug               disabled
fedora-source        Fedora 10 - Source                     disabled
fusion               Compiz Fusion repository               enabled:     48
fusion-source        Compiz Fusion repository - source      disabled
fusion-testing       Compiz Fusion repository -testing      disabled
rawhide              Fedora - Rawhide - Developmental packa disabled
rawhide-debuginfo    Fedora - Rawhide - Debug               disabled
rawhide-source       Fedora - Rawhide - Source              disabled
updates              Fedora 10 - i386 - Updates             enabled:  3,104
updates-debuginfo    Fedora 10 - i386 - Updates - Debug     disabled
updates-source       Fedora 10 - Updates Source             disabled
updates-testing      Fedora 10 - i386 - Test Updates        disabled
repolist: 14,585




 

Use yum repolist enabled (or just yum repolist) to show only those in effect (enabled).

 

2. Cache Directories:

 

YUM usually downloads RPM files somewhere under the /var/cache/yum/ directory containing cache subdirectories per repo, holding RPM files and repo metadata. Usually you won't need to worry about this area - but if something goes wrong mid-yum it can be worthwhile dropping into those directories and manually (using rpm) installing some of the packages that have been downloaded, rather than re-download the entire lot again.

 

To clean out any cached files, use yum clean packages

 

3. Other Considerations


  • outdated header files: since YUM caches repo headers locally, these files could contain incorrect information. Use yum clean headers to flush this information out first.


  • flushing caches: if yum STILL seems to be ignoring config files and insists on using older information, use yum clean all to purge yum of cached packages, headers etc - then try again.


  • automatic package updates: the yum-updatesd service (yum-updates-daemon) can keep packages automatically updated - checking, downloading and installing without any manual intervention, rather like Windows Updates. However, some problems may be encountered on production servers with unchecked newer software being upgraded without any testing or evaluation, breaking an already-running system (dovecot - I'm looking at YOU!). For that reason, many admins prefer to set their updates to "notify" rather than automatically upgrade: check the /etc/yum/yum-updatesd.conf file for details on modifying yum-updatesd behaviour




Print this item

  Software Install with RPM
Posted by: Dungeon-Dave - 2008-10-26, 03:17 PM - Forum: Package Management - No Replies


(based upon posts originally written by anyweb, kZo, Oroshi, grep420)

 

1. Overview

 

RedHat invented the RedHat Package Management system to ease installation and maintanence of software. Although you can still download raw source code and manually compile applications yourself, using a package management system like RPM provides a number of advantage:


  • no compiling: someone else has already done all the hard work of compiling, which saves you the hassle of getting a compiler and various libraries (Shared Objects)


  • package pre-requisites: the RPM package contains information about dependencies, so won't install if the pre-requisite files are missing or too old


  • package configuration: the RPM package usually contains some default/example config files - helps setting up the package from new


  • installation locations: paths in the RPM package conform to the standard Linux filesystem hierarchy (/usr/bin for binaries, /etc for config files, /var/log for logfiles, etc)


  • the RPM database: details of RPM-installed software are stored in an RPM database that can be interrogated to list all installed software, what files the package contains, etc.




 

2. Basic Commands

 

1. Listing installed packages: rpm -qa, for example:



Code:
$ rpm -qa | more
basesystem-8.0-5
ethtool-3-1
mktemp-1.5-23
perl-Filter-1.30-7
tcl-8.4.9-3
ed-0.2-38
MAKEDEV-3.19-1
pyxf86config-0.3.19-4
...




 

2. Showing information about a package: rpm -qi packagename (note that the package name, and not version needed to be specified), for example:



Code:
$ rpm -qi ethtool
Name        : ethtool                     Relocations: (not relocatable)
Version  : 3                                 Vendor: Red Hat, Inc.
Release  : 1                             Build Date: Thu 03 Mar 2005 11:08:26 PM GMT
Install Date: Wed 19 May 2004 01:16:31 AM BST     Build Host: tweety.build.redhat.com
Group      : Applications/System           Source RPM: ethtool-3-1.src.rpm
Size        : 134623                           License: GPL
Signature   : DSA/SHA1, Fri 20 May 2005 08:35:08 PM BST, Key ID b44269d04f2a6fd2
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL      : http://sourceforge.net/projects/gkernel/
Summary  : Ethernet settings tool for PCI ethernet cards
Description :
This utility allows querying and changing of ethernet card settings,
such as speed, port, auto-negotiation, and PCI locations.




 

3. Listing package contents: rpm -ql packagename (again, only name and not version number needs to be given), for example:



Code:
$ rpm -ql bzip2
/usr/bin/bunzip2
/usr/bin/bzcat
/usr/bin/bzcmp
/usr/bin/bzdiff
/usr/bin/bzgrep
/usr/bin/bzip2
/usr/bin/bzip2recover
/usr/bin/bzless
/usr/bin/bzmore




 

4. Listing which package a file belongs to: rpm -qf /path/to/file - in this case, the absolute path to a filename must be specified. I have used the which command to determine the path in this case:



Code:
$ which nmap
/usr/bin/nmap
$ rpm -qf /usr/bin/nmap
nmap-4.53-1.0.cf.fc4




 

5. Listing contents of an uninstalled package: rpm -qlp /path/to/thisPackageHere.rpm - to see the contents of a package not yet installed, use the qlp options on the RPM file itself, eg:



Code:
$ rpm -qlp openssl096b-0.9.6b-6.i386.rpm
/lib/libcrypto.so.0.9.6b
/lib/libssl.so.0.9.6b
/usr/share/doc/openssl096b-0.9.6b
/usr/share/doc/openssl096b-0.9.6b/CHANGES
/usr/share/doc/openssl096b-0.9.6b/FAQ




 

6. Installing a package: rpm -ivh /path/to/thisPackage.rpm. i=install, v=verbose, h=hash signs to show progress, eg:



Code:
# rpm -ivh Bastille-3.0.9-1.0.noarch.rpm
Preparing...                ########################################### [100%]
  1:Bastille               ########################################### [100%]
#




Note that root privileges or equivilent (such as sudo) are needed to install RPM packages.

 

7. Upgrading a package: similar to above but uses the -U option rather than -i, i.e.: rpm -Uvh /path/to/thisPackage.rpm.

 

8. Checking packages: rpm -V packagename. Should be silent if there are no problems.

 

9. Checking ALL packages: rpm -Va. Make take some time, so run this command at quiet times, but a good command to run on a regular basis for a sanity check.

 

10. Uninstalling package: rpm -e packagename (erase package). If other (installed) packages are dependent upon this package, RPM will refuse to erase it, citing dependency issues.

 

For more information, use man rpm.

 

3. Other Considerations

 


  • Upgrade over install: it is possible to "upgrade" a package that doesn't exist, so many people stick to using the -Uvh rather than -ivh options when installing.


  • erasing leaves detritus: uninstalling a package usually leaves behind data files (logs, etc) as well as config files, which may need to be manually cleared out. On the other hand, don't assume that erasing will leave behind modified config files - make a backup first if you wish to preserve them!


  • finding RPMs: there are many RPM download sites out there - try www.rpmfind.net for a good start, google for others. Some sites dedicated to the development of specific applications often have pre-build RPMs on their download pages for fast install - search around.


  • distro-specific RPMs: Some RPMs are suited to specific distros, for example those that end in .fc7.rpm are for Fedora7, those ending in .mdk.rpm are from Mandrake Cooker (for Mandrake/Mandriva).


  • "noarch" RPMs: some RPMs ending in .noarch.rpm are not distro-specific and can be installed on any Linux distro, kernel version permitting. Webmin is a good example.


  • SRPMs: some RPMs with src in the filename are the source code, not compiled binaries. Installing these will only extract and copy the source code to development areas, not provide you with the actual binaries or applications - ensure you get the right file!


  • dependency hell: occasionally an RPM will require some pre-requisite packages, which themselves require other pre-requisites... you'll need to search around for those, or use something like yum (described elsewhere).


  • module/library dependency: occasionally RPM will complain about dependency upon a missing package, but a quick rpm -qa shows it is there. Look at installing packagename-devel, which contains library functions not essential to the normal operation of the package but others that depend upon it. It won't affect your original package, but should satisfy the dependency requirements.


  • compiled packages: it is still possible to download and compile packages outside of RPM but since they won't be included in the RPM database, RPM won't know they exist - and may still complain about missing dependencies.




Print this item

  warning (.:10947): Gtk-WARNING **: cannot open display
Posted by: sting - 2008-10-26, 08:12 AM - Forum: Gnome - Replies (3)




Hello,

I'm establishing a remote desktop connection from a windows xp to linux redhat server via ssh. I have a java application which is developed under J2SE using netbeans 5.0. I uploaded the jar files of the application to the server. I trying to execute that application but I'm getting this warning (.:10947): Gtk-WARNING **: cannot open display,

 

Hope guys you can help me...

 

Thanks....






Print this item

  Linux needs Windows to work
Posted by: Dungeon-Dave - 2008-10-25, 04:58 PM - Forum: General Chat - No Replies


A bit on the old side, but a forum search didn't uncover it to be posted already, so:

 

"Its just not possible that a freeware like the Linux could be extended to the point where it runs the entire computer fron start to finish, without using some of the more critical parts of windows. Not possible." [img]<___base_url___>/uploads/emoticons/default_ohmy.png[/img]

 

Read the article here

 

Yes, he's just GOT to be a troll. Nobody can be THAT uninformed... can they?

Print this item

  Wikimedia now on ubuntu!
Posted by: Dungeon-Dave - 2008-10-15, 02:18 PM - Forum: Ubuntu - Replies (7)


"Fedora moves a little too fast and we were not happy about some of the configuration management features."

 

More news:

 

http://www.theregister.co.uk/2008/10/13/wi...ia_goes_ubuntu/

Print this item

  install decoder plugins
Posted by: lesley1969 - 2008-10-13, 11:22 AM - Forum: Audio and Video - No Replies

hi ive just installed linux 5.0 and when i go to download a movie its keeps you need to install a decoder plugins whats that mean please can you help me been trying for days doing me head in. thankyou

Print this item

  HowTo: Transfer old software RAID1 to new disks
Posted by: stefan - 2008-10-13, 05:22 AM - Forum: SUSE - No Replies


Hi,

my goal is to substitute two mirrored IDE disks, 160GB each, for 2x 500GB SATA drives - keeping the /dev/md0 layout for rootfs (Suse 10.1) and the Data partition /dev/md1 will just have more space.

 

I'm failing in making the new drives bootable.

(see below, end of the post:

mdadm: no devices found for /dev/md0.)

 

Here's what I did:

 

 

Connect the new disks additionally (sda und sdb)

 

## 1st is to backup the drive partition tables:

 



Code:
mkdir /raidinfo
sfdisk -d /dev/hda > /raidinfo/partitions.hda
sfdisk -d /dev/hdb > /raidinfo/partitions.hdb

# fdisk -l /dev/hda

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         131     1052226   82  Linux swap / Solaris
/dev/hda2   *         132        4048    31463302+  fd  Linux raid autodetect
/dev/hda3            4049       19456   123764760   fd  Linux raid autodetect

#(hdb is identical to hda)




 

## With "fdisk":

- create sda1 and sdb1 (swap)

- create sda2 and sdb2 (for / type: fd)

- create sda3 and sdb3 (/fileshares type: fd)

- set active partitions sda2 und sdb2.

 



Code:
## fdisk -l /dev/sda
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         131     1052226   82  Linux swap / Solaris
/dev/sda2   *         132        4048    31463302+  fd  Linux raid autodetect
/dev/sda3            4049       60801   455868472+  fd  Linux raid autodetect

#(sdb is identical to sda)




 

## Create both new RAID:



Code:
mdadm --create /dev/md2 --level=1 --raid-devices=2 /dev/sda2 /dev/sdb2
mdadm --create /dev/md3 --level=1 --raid-devices=2 /dev/sda3 /dev/sdb3

watch cat /proc/mdstat  ## Just to check progress.

mkfs.reiserfs /dev/md2  ## Format can be started
mkfs.reiserfs /dev/md3  ##  during creation of array.

mkdir /mnt/md2
mkdir /mnt/md3




 

mcedit /etc/fstab (add md2 + md3 lines)



Code:
/dev/md0    /           reiserfs   acl,user_xattr  1 1
  /dev/md1    /fileshares reiserfs   acl,user_xattr  1 1
  /dev/md2    /mnt/md2    reiserfs   acl,user_xattr  1 1
  /dev/md3    /mnt/md3    reiserfs   acl,user_xattr  1 1
  /dev/hda1   swap        swap       defaults        0 0
  /dev/hdb1   swap        swap       defaults        0 0




 

## Mount new Arrays:



Code:
mount /dev/md2  /mnt/md2   -o acl  -o user_xattr
mount /dev/md3  /mnt/md3   -o acl  -o user_xattr




 

## rsync copies also ACLs:



Code:
rsync -v --recursive --times --perms --links --exclude "/mnt/" --exclude \
"/proc/"  --exclude "/fileshares/" --exclude "/sys/" -a  /*  /mnt/md2/

cd /mnt/md2/ %% mkdir mnt %% mkdir proc %% mkdir fileshares %% mkdir sys




 

# Copy Data partition:



Code:
rsync -v --recursive --times --perms --links  -a /fileshares/* /mnt/md3/




 

## Set new UUIDs in new mdadm.conf:



Code:
mdadm --detail --scan >> /mnt/md2/etc/mdadm.conf




 

## Install GRUB onto both new disks:



Code:
chroot /mnt/md2
grub
device (hd0) /dev/sda
root (hd0,1)           ## 0,0 = swap, 0,1 = / incl /boot
setup (hd0)
device (hd1) /dev/sdb
root (hd1,1)           ## 1,0 = swap, 1,1 = / incl /boot
setup (hd1)
quit




 

mcedit /mnt/md2/etc/fstab



Code:
/dev/md0    /           reiserfs   acl,user_xattr  1 1
  /dev/md1    /fileshares reiserfs   acl,user_xattr  1 1  
  /dev/sda1   swap        swap       defaults        0 0
  /dev/sdb1   swap        swap       defaults        0 0




 

mcedit /mnt/md2/boot/grub/device.map



Code:
(hd0)   /dev/sda
(hd1)   /dev/sdb




 

mcedit /mnt/md2/boot/grub/menu.lst



Code:
###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE Linux 10.1
root (hd0,1)
kernel /boot/vmlinuz root=/dev/md0 vga=0x31a    resume=/dev/sda1  splash=silent showopts
initrd /boot/initrd




 

 

poweroff

 

Remove hda and hdb.

 

Boot from new hard disks:



Code:
...
Loading raid1
md: personality registered for level 1
Loading reiserfs
md: md0 stopped.
mdadm: no devices found for /dev/md0.
resume /dev/sda1 not founf (ignoring)
md: md0 stopped.
mdadm: no devices found for /dev/md0.
md: md1 stopped.
mdadm: no devices found for /dev/md1.
Waiting for device /dev/md0 to appear: ok.
rootfs: major=9 minor=0 devn=2304
/dev/md0: unknown volume type
invalid root filesystem -- exiting to /bin/sh
$_




 

Any suggestions will be appreciated!

 

One thing that might be the problem is that I swapped the SATA cables from sda and sdb by mistake:



Code:
# mdadm --detail /dev/md2
/dev/md2:
    Version : 00.90.03
Creation Time : Sat Oct  4 02:38:41 2008
Raid Level : raid1
Array Size : 31463232 (30.01 GiB 32.22 GB)
Device Size : 31463232 (30.01 GiB 32.22 GB)
  Raid Devices : 2
Total Devices : 2
Preferred Minor : 2
Persistence : Superblock is persistent

Update Time : Sun Oct 12 21:24:25 2008
      State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

       UUID : ba1944d9:4539b5bb:0fa8b8d3:3798154c
     Events : 0.1722

Number   Major   Minor   RaidDevice State
   0       8       18        0      active sync   /dev/sdb2
   1       8        2        1      active sync   /dev/sda2




 

If that's the whole problem, how can I fix it now that the users are already writing stuff on /dev/md3 (mounted on: /fileshares)?

Print this item

  why cant i see the text in chatrooms?????? help plz
Posted by: Ian - 2008-10-11, 06:09 PM - Forum: How Do I? - Replies (11)


Hi i have a acer aspire 1 with linux i love chatrooms but when i log in i can see the whole chat room apart from the txt where everyone chats.?/

its says im missing plugins so when ad them its java thats missing so i try downloading but i wont download what is going on plz help its driving me mad

 

manymany thanks ian

Print this item

  Adding xmms plugin
Posted by: pavan_734 - 2008-10-08, 12:52 PM - Forum: How Do I? - No Replies

I have installed latest xmms. I built it. I dont have permissions of "root". So I am using complete path to open it (because it is not installed in /usr/bin). It opens but problem is it is showing plugins that are already available in /usr/lib/xmms. The reason is there is already old version of xmms available(installed by "root"). But it is not showing the plugins in my local directory. The old directory for plugins do not contain libmpg123.so because of which it is not playing mp3 songs. So how can I add libmpg123.so when I am not "root".

Print this item

  How to create zombie process in SCRIPT?
Posted by: Vincent L - 2008-10-08, 07:11 AM - Forum: How Do I? - No Replies


How to create zombie process in SCRIPT using sh

 

please help!

Print this item