LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   second/third disks (https://www.linuxquestions.org/questions/linux-newbie-8/second-third-disks-601965/)

tractng 11-23-2007 03:05 PM

second/third disks
 
Guys,

Just installed Redhat ES4.


For the second/third disks (sata), they go into syba controller which I had to install the driver.

The instructions are follow:

A) . # 'sh /mnt/floppy/load-driver-from-floppy.sh' (DATA DRIVES)
(or use the the proper script depending on your kernel)

B) . if you want to make sure you can see the drives, you may want
to 'mke2fs /dev/sda' and 'mount /dev/sda /test' the hard disk(s).
(Depending on your system configuration, the SATA drives could be /dev/sdb, /dev/sdc, /dev/sdd.....)

C) . insmod sii3132. As an example add the following lines at the end
of the script in /etc/rc.d/rc.sysinit

'insmod scsi_mod'
'insmod sii3132'

Right after I follow step B)

mount /dev/sdb (I get mount point does not exit).

Do I have to create a directory for it first and then reference to it?

Thanks,
Tony

syg00 11-23-2007 03:55 PM

Yes you need a directory first - "/test" in the instructions.

When I want to know what happens with disks, I look at "dmesg" and "fdisk -l".

tractng 11-23-2007 05:35 PM

I got it to mount, but when I rebooted, I don't see the disks any more in /dev, fdisk -l, or dmesg.

I added the following to fstab:

[root@lnx3 syba]#
[root@lnx3 etc]# more fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/home /home ext3 defaults 1 2
LABEL=/opt /opt ext3 defaults 1 2
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/usr1 /usr ext3 defaults 1 2
LABEL=/usr/local /usr/local ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
LABEL=SWAP-sda10 swap swap defaults 0 0
LABEL=/mnt/vol1 /mnt/vol1 ext2 defaults 0 0
/dev/scd0 /media/cdrecorder auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0


When I reboot linux, I see a quick message saying the /mnt/vol1 does not exist (really quick- not sure how to pause it).

Before rebooting, when I did fdisk -l, I see a message saying not a valid parition table see below:


Disk /dev/sdb: 250.0 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488395055 sectors
Units = sectors of 1 * 512 = 512 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes

Disk /dev/sdc doesn't contain a valid partition table.
[root@lnx3 syba]#

Also, can you verify if I enter the two lines correctly at the right place (/etc/rc.d/rc.sysinit):

if [ -x /sbin/redhat-support-check -a -f /var/lib/supportinfo ]; then
/sbin/redhat-support-check || {
echo $"Normal startup will continue in 10 seconds."
sleep 10
}
fi

# Let rhgb know that we're leaving rc.sysinit
if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
/usr/bin/rhgb-client --sysinit
fi

insmod scsi_mod
insmod sii3132

[root@lnx3 rc.d]#



Any help is appreciated.

Tony

syg00 11-23-2007 07:08 PM

Mmmm - there's a lot (... all) not to like about those instructions. I didn't say anything earlier as I don't use RH (or Fedora) and I hoped it might work for you.
Ain't the way I'd elect to get modules loaded.

I'd be looking at that script to see what it did - as in where it copied the modules to. "lsmod" will tell you if they loaded o.k. - doesn't sound like it if "fdisk -l" doesn't show the disk. You should also be able to find them with "locate scsi_mod", "locate sii3132" - if not, try "updatedb" then the locates again.
Once you have the drivers loaded, you should see the disks - use whatever GUI RH comes with to partition/format them. If you want to use LABEL like that, you have to specify the label when you do the mkfs (might be called "format" in the GUI).

This may be better in a RH/Fedora forum - click the "Report" button on your post and add a note requesting to have it moved.

tractng 11-24-2007 12:05 AM

Syg00,

fdisk -l did show the disk before the reboot.

Once it got rebooted, it doesn't show up.


Tony


All times are GMT -5. The time now is 02:11 PM.