LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   FSTAB SDA1 and Bootup (https://www.linuxquestions.org/questions/linux-software-2/fstab-sda1-and-bootup-434143/)

PixelMassacre 04-11-2006 12:45 PM

FSTAB SDA1 and Bootup
 
The following is more of an annoyance as opposed to hinderance in functionality.

Upon bootup, I receive an error stating that sda1 and sda2 are invalid block devices.

/etc/fstab on Trustix 3 reads as follows:

Code:

/dev/hde3              swap                    swap    defaults        0 0
/dev/hde1              /boot                  ext3    defaults        0 0
/dev/hde2              /                      ext3    defaults        1 1
/dev/sda1              /ORIONUSB              ext3    defaults        0 0
/dev/sda2              /IMAGES                vfat    defaults        0 0
none                    /proc                  proc    defaults        0 0
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /sys                    sysfs  defaults        0 0
/dev/hdb                /mnt/cdrom              udf,iso9660 noauto,user    0 0
#/dev/sda1  /ORIONUSB  ext3  suid,dev,exec  0  0
#/dev/sda2  /IMAGES  vfat  suid,dev,exec  0  0

After the boot process is complete, my mounts all show up and function correctly.

Code:

root@ORION /etc# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hde2              73G  5.4G  64G  8% /
/dev/hde1              99M  50M  45M  53% /boot
/dev/sda1            119G  5.5G  107G  5% /ORIONUSB
/dev/sda2              33G  8.0G  25G  25% /IMAGES

I've uncommented the alternative boot options in fstab at the bottom and tried both ways and I still receive the same error. I've commented out all sda1 and sda2 entries from fstab and the devices do not load at all at bootup so I'm assuming it's not a "double entry" somewhere that is causing the error, moreso, the syntax of fstab.

So, although everything appears to be functional, I'd like to find out why I'm receiving the error at bootup if at all possible. Any comments would be greatly appreciated.

michaelk 04-11-2006 01:20 PM

What type of devices are sda1 and sda2?
If these are USB drives then typically the modules do not load prior mounting devices via fstab. So you can add the USB & SCSI modules to the initrd.

I assume that once the modules are loaded udev is automatically mounting the drives. Adding the noauto option in the fstab file should fix the invalid device error.

PixelMassacre 04-12-2006 02:22 AM

Sda1 and sda2 are a vfat windows and an ext3 partition on an external USB drive.

The "noauto" option resolved the device failure, however, it didn't mount them either which is why, I presume, I didn't get no error. ;-)


All times are GMT -5. The time now is 10:05 AM.