LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-30-2007, 11:47 AM   #1
wss
LQ Newbie
 
Registered: Jan 2005
Distribution: redhat 9.0
Posts: 3

Rep: Reputation: 0
Manual or automatic mounts/accesses/repairs of hardisk/devices on RHEL 5.0 (SL 5.0)


Hi,

Hope I am in the correct forum, and doing the right things.

I want to move over from Redhat 9.0 to RHEL 5.0 (actually, Scientific Linux 5.0, (2.6.18-8.1.3.el5)) on my laptop and desktop, but I am having some problems which essentially seem to be linked to access to harddrive or media devices, given the LVM. (Also, I am not too technical, and just want my machine to work without destroying information!)


Q1) How do I resize an LVM logical partition? and its underlying file system?
I have a logical volume on my harddrive, which I want ot reduce in size so as to make room for a new vfat partition. Unfortunately, the logical volume (/dev/VolGroup00/LogVol00), which contains the operating system, must be unmounted before I can use the graphical lvm facility. Using the Scientific Linux (SL) 5.0 rescue CD, I decide to reduce it manually, after brousing the RedHat's Cluster_Logical Volume Management document. Commands given are [roughly]:

sh-3.1# lvm
lvm> lvscan
inactive '/dev/VolGroup00/LogVol00' [70.16 GB] inherit
inactive '/dev/VolGroup00/LogVol01' [1.94 GB] inherit
lvm> lvchange -aly /dev/VolGroup00/LogVol00
lvm> lvscan
ACTIVE '/dev/VolGroup00/LogVol00' [70.16 GB] inherit
inactive '/dev/VolGroup00/LogVol01' [1.94 GB] inherit
lvm> lvreduce --size -10G -r /dev/VolGroup00/LogVol00
fsadm: execlp failed: No such file or directory
fsadm failed: 2
lvm>

The problem seems to be deficulties in resizing file systems (from the -r flag).



Q2) How do I *manually* mount the Linux LVM file?
From the rescue CD, the following 'conventional' mount commands do not work, presumably because of wrong file type:

# mount -text3 /dev/mapper/VolGroup00/LogVol00 /mnt/anchor
# mount -text3 /dev/VolGroup00/LogVol00 /mnt/anchor
# mount -text3 VolGroup00/LogVol00 /mnt/anchor
# mount -text3 /dev/sda6 /mnt/anchor # physical partition is sda6.



Q3) How do I do a file system check?
I suspect I have a disk crash on my desktop but do not want to loose information. fsck does not work, presumably because of wrong file type, since I have to unmount the partition!



Q4) How can you control where you mount devices automatically (e.g., flash sticks)?
The mountpoints are not indicated in /etc/fstab, and the config files (*.conf) of automount autofs do not seem to tell me where! In short I do not understand how these or the hal (hardware abstraction layer) work!


Q5) How do I use yum to access the installation disks in order to add packages?
Yum seem to require the internet, whereas a machine (desktop) should not have internet access! Furthermore, trying to use rpm entails I must know the package name (and version) I want to install, along with the disk it is on!

Q6) How can I force automount of usb flash sticks and cdrom when I am root?

Thanks in advance

Last edited by wss; 08-30-2007 at 11:55 AM.
 
  


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
NTFS-3g mounts, but link in Desktop > Devices is gone. Gram Mandriva 5 05-13-2007 03:50 PM
RHEL 4.0 & ICH7-SATA (fujitsu 80 GB) // No hardisk detected during installtion amitsharma_26 Red Hat 3 10-07-2006 06:07 AM
installing Fedora COre 4, automatic parition or manual? mr_coffee Linux - Newbie 11 01-17-2006 03:51 AM
Suse needs manual partition or automatic? nycundaground Linux - Newbie 3 08-01-2003 07:13 PM
manual options for devices lawrie Linux - Newbie 0 01-03-2002 11:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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