Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] External Harddisk not mounted at boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
baschni
Apprentice
Apprentice


Joined: 08 Sep 2005
Posts: 193

PostPosted: Tue Aug 18, 2009 4:42 pm    Post subject: [SOLVED] External Harddisk not mounted at boot Reply with quote

Hi all,
I've got an external USB-disk, that isn't mounted at boot, though called in fstab:

Quote:
/dev/sdb1 /mnt/data xfs noatime 0 2


When I run 'mount /mnt/data' after startup, it mounts just fine.

Dmesg put's this out at mount time, which seems just fine:

Quote:
[ 12.513691] sd 4:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB)
[ 12.514441] sd 4:0:0:0: [sdb] Write Protect is off
[ 12.514444] sd 4:0:0:0: [sdb] Mode Sense: 00 38 00 00
[ 12.514446] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 12.515063] sd 4:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB)
[ 12.515821] sd 4:0:0:0: [sdb] Write Protect is off
[ 12.515823] sd 4:0:0:0: [sdb] Mode Sense: 00 38 00 00
[ 12.515824] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 12.515826] sdb: sdb1
[ 12.522421] sd 4:0:0:0: [sdb] Attached SCSI disk
[ 1721.975022] XFS mounting filesystem sdb1
[ 1722.083041] Ending clean XFS mount for filesystem: sdb1


Am I overseeing some simple thing? Any idea why it doesn't mount at boot?
Yours,
baschni


Last edited by baschni on Sun Aug 30, 2009 8:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
jongeek
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2007
Posts: 135
Location: The Humid, Festering Swamps of Florida

PostPosted: Tue Aug 18, 2009 5:02 pm    Post subject: Reply with quote

Are XFS and USB compiled as modules or directly into the kernel ?
Back to top
View user's profile Send private message
baschni
Apprentice
Apprentice


Joined: 08 Sep 2005
Posts: 193

PostPosted: Wed Aug 19, 2009 6:34 pm    Post subject: Reply with quote

Yes, they are. But the symlink /usr/src/linux doesn't point to the right version, is that import?
Back to top
View user's profile Send private message
jongeek
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2007
Posts: 135
Location: The Humid, Festering Swamps of Florida

PostPosted: Wed Aug 19, 2009 6:47 pm    Post subject: Reply with quote

Sorry, it wasn't really a yes or no question :).

Yes, they are modules, or yes they are compiled in ?

Assuming you meant they are modules, compile USB and XFS directly into the kernel instead. See if everything works that way. The modules may not have been loaded when fstab is checked for filesystems to mount.

If you really want them as modules, you can change back later. For now, I would focus on trying to find out where the problem lies, and compiling them directly into the kernel will avoid timing problems related to when the modules are loaded by the initscripts (or kmod).

FWIW, I have an external firewire drive that is mounted at boot time, and I build support for it directly into the kernel. The only thing I build as modules are those things I _rarely_ use.
Back to top
View user's profile Send private message
skrapasor
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jul 2008
Posts: 92

PostPosted: Wed Aug 19, 2009 9:08 pm    Post subject: Reply with quote

i bet it's because you start the boot process before the kernel gets a chance to load it. that happened to me. try adding rootdelay=10 to your kernel line in grub.conf.
Back to top
View user's profile Send private message
baschni
Apprentice
Apprentice


Joined: 08 Sep 2005
Posts: 193

PostPosted: Sat Aug 22, 2009 12:20 pm    Post subject: Reply with quote

yes, they are compiled in^^
I'll try that with the bootdelay, does it take 10 sec than?
Back to top
View user's profile Send private message
baschni
Apprentice
Apprentice


Joined: 08 Sep 2005
Posts: 193

PostPosted: Sat Aug 22, 2009 1:49 pm    Post subject: Reply with quote

boot delay doesn't solve it :(
Back to top
View user's profile Send private message
baschni
Apprentice
Apprentice


Joined: 08 Sep 2005
Posts: 193

PostPosted: Mon Aug 24, 2009 10:38 pm    Post subject: Reply with quote

I am still having trouble.
At boot time he says:

* Mounting local filesystems
Device /dev/sdb1 doesn't exist!
* Some local filesystems failed to mount

Does anyone have some more ideas? what can I check?

Yours,
baschni
Back to top
View user's profile Send private message
Apetrini
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1158

PostPosted: Mon Aug 24, 2009 11:06 pm    Post subject: Reply with quote

When system try to mount local disk (reading fstab) the device /dev/sdb1 is not yet created by kernel.
Are you shure you have all you need to mount a disk (compiled into kernel)?

Because
Code:
[12.522421]...
shows that the disk (and partition) is recognized very late in the kernel.
_________________
Linux ape 2.6.31-vanilla. Paludis since 0.28.0.
Back to top
View user's profile Send private message
baschni
Apprentice
Apprentice


Joined: 08 Sep 2005
Posts: 193

PostPosted: Tue Aug 25, 2009 10:16 am    Post subject: Reply with quote

Ok, when I hit lsmod after boot I just have my graphics card driver listed, so there's no other module for mounting etc.
So I have XFS compiled into the kernel, support for Host-side USB, usb mass storage support, usb device filesystem, usb announce devices, uhci, ohci, ehci (i just need one, right?) and usb printer support.
Do I need anything else for my harddisk? How do you see, that it's recognized lately? Is [12.522421] some time relative to boot?
Thanks so far,
baschni
Back to top
View user's profile Send private message
mikkoc
Apprentice
Apprentice


Joined: 24 May 2007
Posts: 231

PostPosted: Fri Aug 28, 2009 1:10 pm    Post subject: Reply with quote

The same happens to both my WD external usb hd.
I never got them to mount automatically via fstab.
Basically they're recognized/initialized way too late, when fstab has been read already.
I solved it by adding the mount command in /etc/conf.d/local.start
Back to top
View user's profile Send private message
baschni
Apprentice
Apprentice


Joined: 08 Sep 2005
Posts: 193

PostPosted: Sun Aug 30, 2009 8:38 pm    Post subject: Reply with quote

Thanks, both solutions worked, actually I wrote the rootdelay in a new line under the kernel boot line in grub.conf, but had to write it onto the same line, works great!
Yours,
baschni
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum