You are not logged in.

#1 2009-03-04 18:32:57

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Fstab problems with mounting SDHC

I am trying to use a SDHC card for my /home directory and for some reason I cannot get my SDHC card to automount at boot. The weird part is that I can mount it fine after boot:

bash-3.2# mount /dev/sdb1 /home

Here is my fstab:

 # 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults              0      0
none                   /dev/shm    tmpfs     defaults               0      0


/dev/sda1             /               ext2      defaults,noatime    0      1 
tmpfs                  /var/log/     tmpfs     size=1M               0      0
/dev/sdb1            /home        ext2      defaults,noatime    0      1

I get this error when I boot:

Couldn't find ext2 superblock, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/hdb

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

I tried e2fsck -b 8193 /dev/sdb1 with no problems and I fsck the drive with no problem.


It is a ext2 partition:

[comhack@Pluto ~]$ df -T
Filesystem    Type   1K-blocks      Used Available Use% Mounted on
/dev/sda1     ext2     3872856   1628728   2048940  45% /
none         tmpfs     1032996         0   1032996   0% /dev/shm
tmpfs        tmpfs        1024       276       748  27% /var/log
/dev/sdb1     ext2    15441120     63620  14593128   1% /home

Maybe I should make a bash script to mount after boot.

Any ideals?

Thanks

Last edited by securitybreach (2009-03-16 17:27:48)


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

#2 2009-03-05 00:36:00

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Re: Fstab problems with mounting SDHC

Ok I tried

mount /dev/sdb1 -t ext2 /home

in /etc/rc.local but now it says

Special device: /dev/sdb1 does not exist

Any ideals?

Thanks

Last edited by securitybreach (2009-03-05 00:36:23)


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

#3 2009-03-06 19:49:08

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Re: Fstab problems with mounting SDHC

Ok its fixed. What I did was put

 sleep 4 && mount /dev/sdb1 -t ext2 /home

in /etc/rc.local.  It takes a additional 4 seconds on the boot but it works perfectly. 4 was as low as I could get to make it work.

THanks

Last edited by securitybreach (2009-03-06 19:55:27)


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

#4 2009-03-16 17:29:41

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Re: Fstab problems with mounting SDHC

Well after a kernel update (2.6.28.7-2), the entry in rc.local works no more. I am again getting the error:

Special device /dev/sdb1 does not exist

I even tried to extent the sleep before launching and I had to go to 7 seconds for it to work:

sleep 7 && mount /dev/sdb1 -t ext2 /home

I went from 4-7 seconds because of a kernel upgrade????

Hopefully it wont go even longer. I am now 27 second boot instead of the old 20 second boot.

WTF!!!!!!!!! mad:P

Thanks

Last edited by securitybreach (2009-03-16 17:30:58)


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

Board footer

Powered by FluxBB