Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 03-18-2012, 09:34 PM   #1
Ben Briedis
LQ Newbie
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
Custom kernel won't mount eSata

Hi -

I've been compiling a custom kernel with the "rt" patch and I think I've missed a setting in the configuration or something. As a result my external drive isn't mounting.

Under my custom kernel (3.2.9-rt17) if I try:
mount -t ext3 -o rw,noatime,errors=continue,barrier=0,data=ordered /dev/sdb1 /mnt/esata
I get:
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
syslog doesn't say much:
   Mar 19 11:50:12 ben-laptop kernel: [ 2892.877265] EXT3-fs (sdb1): error: can't find ext3 filesystem on dev sdb1.
dumpe2fs /dev/sdb1
though gives:
   dumpe2fs 1.41.14 (22-Dec-2010)
   dumpe2fs: Bad magic number in super-block while trying to open /dev/sdb1
   Couldn't find valid filesystem superblock.
Some extra facts:
  • I can reformat the drive in the custom kernel and mount and umount it fine, but after I reboot the drive it is no longer accessible via the custom kernel. It is accessible via the Ubuntu kernel though.
  • I get the same behaviour when formatting with "ext4"
  • The internal harddrive, also ext3, mounts fine so long as I include initramfs.

Here's an extract from lshw to give an idea of the setup:
             description: PCI bridge
             product: N10/ICH 7 Family PCI Express Port 2
             vendor: Intel Corporation
             physical id: 1c.1
             bus info: pci@0000:00:1c.1
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:42 ioport:3000(size=4096) memory:d8000000-d9ffffff ioport:d2000000(size=33554432)
                description: SATA controller
                product: JMB360 AHCI Controller
                vendor: JMicron Technology Corp.
                physical id: 0
                bus info: pci@0000:03:00.0
                logical name: scsi2
                version: 03
                width: 32 bits
                clock: 33MHz
                capabilities: storage pm pciexpress ahci_1.0 bus_master cap_list emulated
                configuration: driver=ahci latency=0
                resources: irq:17 ioport:3010(size=8) ioport:3020(size=4) ioport:3018(size=8) ioport:3024(size=4) ioport:3000(size=16) memory:d8000000-d8001fff
                   description: ATA Disk
                   product: ST1000DM003-9YN1
                   vendor: Seagate
                   physical id: 0.0.0
                   bus info: scsi@2:0.0.0
                   logical name: /dev/sdb
                   version: CC46
                   serial: W1D036NR
                   size: 931GiB (1TB)
                   capabilities: gpt-1.00 partitioned partitioned:gpt
                   configuration: ansiversion=5 guid=e1ee5971-bfbd-494e-ab17-83f3c22504ff
                 *-volume UNCLAIMED
                      description: EXT3 volume
                      vendor: Linux
                      physical id: 1
                      bus info: scsi@2:0.0.0,1
                      version: 1.0
                      serial: 5b512ab6-a53f-48e7-9e2c-13c99f5f04bc
                      size: 931GiB
                      capabilities: journaled extended_attributes large_files ext3 ext2 initialized
                      configuration: created=2012-03-19 00:33:47 filesystem=ext3 modified=2012-03-19 11:01:05 mounted=2012-03-19 11:00:50 state=clean
Here's my config:

Anyone have any ideas?

Last edited by Ben Briedis; 03-22-2012 at 07:19 AM. Reason: Solved
Old 03-22-2012, 07:17 AM   #2
Ben Briedis
LQ Newbie
Registered: Mar 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
[Solved] Custom kernel won't mount eSata Reply to Thread

Found it under
File systems > Partition Types > EFI GUID Partition Support (CONFIG_EFI_PARTITION)

Google didn't help, so I had to use a binary search - compiling over and over and eliminating half the options each of the time.

It should be possible to have an online database that takes a description of your hardware (eg as provided by lshw) and produces a custom .config file...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 6.0 - custom kernel compile Kernel panic - not syncing: VFS: Unable to mount Bono Debian 5 05-06-2011 06:18 PM
kernel panic - custom kernel won't mount file system j-osh Fedora 8 11-19-2008 01:13 AM
Custom Kernel Panic: Unable to mount root fs on 08:11 halfpower Slackware 9 10-12-2006 06:22 PM
Custom Kernel Won't Boot!?!?1 martinman Linux - General 1 07-12-2003 01:10 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration