SATA disc and fstab
Eamonn Sullivan
eamonn.sullivan at gmail.com
Sun Apr 10 16:41:23 UTC 2005
On Apr 10, 2005 5:17 PM, Bert Roelofsen
<J.E.Roelofsen at student.utwente.nl> wrote:
> You'll have to enable sata disk support in jour kernel. See the wiki for
> a how to comile your kernel.
>
> Still think this is a bug; The installer gives you the option to install
> ubuntu on hd[a-z] with /home mounted on /dev/sd[a-z] but it simply won't
> work because the lack of sata support in the kernel. Basically the
> problem is ubuntu tries to mount a sata disk way before the sata
> module/drivers are loaded. So fix the kernel or don't give users this
> option while installing
Or, less drastically, just mount the SATA drive later in the boot
process. That's what I do. I have an ide and a sata drive (that I also
use for storing backups for other computers in the house). In
/etc/init.d I have a script called local that looks like this:
-------------------------
#!/bin/sh
echo Checking file system on /dev/sda1
fsck /dev/sda1
echo mounting filesystem on /home/backup
mount /dev/sda1 /home/backup
-----------------------------
I then took sda1 from fstab and have it mounted here instead.
Now, I'm hoping someone else will jump in here and explain how to make
sure this script is run during boot. I know I had to run something
with update-rc.d, but I can remember what it was. Try
man update-rc.d
-Eamonn
More information about the ubuntu-users
mailing list