PDA

View Full Version : System Sees SATA partitions but can't mount them!



sakiZ
12-09-2006, 03:11 AM
Well, my SATA drive experiments have been successful up to this point.

I installed a SATA 3Ware controller card, and a Seagate 320 gigabyte drive, set up all the partitions. I did this in Windows.

In Linux I used modconf to enable the 3Ware 3w-xxxx driver. At that point the system recognizes the many partitions on the drive when I do fdisk -l.

As you can see:

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1020 8193118+ b W95 FAT32
/dev/sda2 1021 37312 291515490 f W95 Ext'd (LBA)
/dev/sda3 37313 38913 12860032+ 83 Linux
/dev/sda5 1021 7975 55866006 b W95 FAT32
/dev/sda6 7976 14290 50725206 b W95 FAT32
/dev/sda7 14291 20316 48403813+ b W95 FAT32
/dev/sda8 20317 26634 50749303+ b W95 FAT32
/dev/sda9 26635 32949 50725206 b W95 FAT32
/dev/sda10 32950 33844 7189056 82 Linux swap / Solaris
/dev/sda11 33845 37312 27856678+ b W95 FAT32

I have started to setup mount points but cant get the partition to mount. On /dev/sda1 for example, I get this message:

mount: special device /dev/sda1 does not exist

Of course, it's not a special device, it a hard drive. What's THAT about?

Is there a different format for fstab entries for SATA?

Note, I am not trying to boot from the SATA drive. I am only trying to mount it's partitions and access it.

SakiZ

sakiZ
12-11-2006, 01:48 PM
Ok, I have Linux seeing the SATA drive, and mounting all the partitions upon boot up. But the way I got it working was not the way I thought it would happen.

First though, let me tell any Knoppix 3.7 users of the 2.4.27 kernel, there is some SATA support built right into the distro. That's what I'm using. You can even get SATA working on the Knoppix 3.7 boot CD. The trick is the right controller card: the 3Ware 8006-2LP. It's not expensive, and its a really good card. Knoppix 3.7 has that driver built right into the kernel modules. Just do modconf from a console and scroll down to the SCSI section. The 3w-xxxx SATA driver is the first one on the list. Then activate that module. Who knew? I certainly didn't but I spent several month researching it.

OK, so how did I solve my SATA issues? I was doing some experiments just watching how the OS behaved when I would do modprobe 3w-xxxx with different devices plugged or unplugged. Then I would do fdisk-l to see how the device showed up. Depending on what was plugged or unplugged I would get sda or sdb or even sdc. I was just trying to observe the OS without really trying to solve the problem at that point.

But then I got the idea that maybe what the OS would like would what I was doing: put a modprobe 3w-xxxx command in the etc/init.d/bootmisc.sh file. (This is the start up script where you add commands you what to add to the boot sequence.)

I had to remove the 3w-xxxx reference in etc/modules. But after I did that, with just the modprobe 3w-xxxx in bootmisc.sh things started working.

I was then able to add mount points and Knoppix could see all the parititions. But they were not being mounted automatically. I solved that by simply adding mount commands in the etc/init.d/bootmisc.sh file for all the partitions: mount /mnt/sdc1, mount /mnt/sdc2, etc, etc. Not elegant, but it works.

I think what is going on with this system is that it's an older one where there is not SATA in my native bios. It's all from the 3Ware controller card. Knoppix sees the drive as one attached to the system, much like a zip drive would be. The Knoppix 5 CD in fact boots up with all those SATA partitions with thumb drive icons! Hmmm.

I'm pretty sure you could not install Knoppix 3.7 to a SATA drive. I don't know if it is possible to boot Knoppix from a SATA drive But I don't know that it would be really necessary. However, I discovered that once everything was set up properly, I could change the links on some of my larger applications and have them run from the Linux mirror drive on the SATA Seagate. So, they load a little more quickly now.

The 320 gig SATA seagate drive BTW is a real winner. It uses the new perpendicular technology. It is almost as fast as a Raptor, it is extremely quiet, and it is HUGE. The price? It's about $84- 89 on different vendor sites. I got mine from Newegg. It is the best bang for the buck drive I have ever seen.

The 3Ware 8006-2LP controller card is great too. It even supports SATA II.

SakiZ