Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Via epia-sn18000g
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Sun Apr 03, 2011 11:56 pm    Post subject: Via epia-sn18000g Reply with quote

I'm trying to install gentoo on this motherboard without success. The system is booting, hardware seems to be recognize. I'm using the two network plug and the compact flash disk peripherals only.

The problem is that udev don't start. How can i debug the udev service in order to find what's going wrong?

When I boot from livecd, the system does not list the flash card drive. (tested with both last mini iso and 2007 livecd)
Why? Do i have to mount some driver by hand.

Thanks
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Mon Apr 04, 2011 4:13 am    Post subject: Reply with quote

You should try with SystemRescueCd. Its a gentoo based rescue cd that trys to boot every thing. If it cant you have the tools to post from Firefox to the forums here. Good luck.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Mon Apr 04, 2011 9:51 am    Post subject: Reply with quote

The gentoo minimal CD boot fine, and this is not the case with the system rescue cd.

I have create a system image on a compact flash card. The system start boot but udev stop the process. I don't get any error message. I'm using kernel 2.6.36 with baselayout-2 and openrc. Udev report an error with the kernel configuration about CONFIG_IDE. The Epia card require this option for the /dev/hda attached to the compact flash device.

I have installed syslog-ng, but I have no log in /var/log. Is it normal? How to make boot print error message ?

I'm looking for a kernel configuration for this hardware without success. Is there an existing one?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Apr 04, 2011 11:13 am    Post subject: Reply with quote

sylvain.bonnemaison,

udev does not create hd* devices [any more], you have to use SCSI subsytem to access block devices.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Mon Apr 04, 2011 4:02 pm    Post subject: Reply with quote

I have used "old-hd-rules" flags to make udev use old /dev/hd* name. When starting with gentoo minimal cd, the system is installed with /dev/hda.

Is there a way to make drive connected to /dev/sda?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Apr 04, 2011 4:51 pm    Post subject: Reply with quote

How this flashcard is connected. Is there some sort of adapter in use to plug it to the IDE controller? Anyhow, try http://kmuto.jp/debian/hcl/
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Mon Apr 04, 2011 8:49 pm    Post subject: Reply with quote

The fashcard is plug on the board itself. The device is connected to the IDE controller. I have no choice.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Apr 04, 2011 8:57 pm    Post subject: Reply with quote

Majority of IDE controllers work fine with libata, resulting devices are sd*.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Tue Apr 05, 2011 2:18 pm    Post subject: Reply with quote

I have switch to libata. The drive is detected but the system cannot find the root device specify in the grub command line.
The system return this information
Code:
ata5.00: ATA-5: Ridata CF, 2.0, max UDMA/66
ata5.00: 3985632 sectors, multi 1: LBA
ata5.00: configured for UDMA/66
...
scsi 4:0:0:0: Direct-Access   ATA   Ridata CF   2.0   PQ: 0 ANSI: 5
...
VFS: cannot open root device "sda1" or unknow block-(0,0)


I have tryed with sda1, sda2, sda3, etc. without success. Is it a problem with mbr?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Apr 05, 2011 3:19 pm    Post subject: Reply with quote

I'm not familiar with this kind of hardware. My guess is you missed something in SCSI options in kernel because kernel is unable to access the drive.

Device Drivers --> SCSI device support -->
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
diegoaugustomolina
n00b
n00b


Joined: 22 Mar 2010
Posts: 32

PostPosted: Tue Apr 05, 2011 4:05 pm    Post subject: Reply with quote

I agree with Jaglover. Try compiling the kernel like this:

Device Drivers --->
SCSI device support --->
<*> SCSI device support
<*> SCSI disk support
<*> SCSI CDROM support
<*> SCSI generic support

Also, go to

Device Drivers --->
<*> Serial ATA and Parallel ATA drivers --->

and check that the right module for your hd is compiled into the kernel (not as a module). I am assuming that you have a PATA or SATA disk.
You can check which is the right module for you if you use any livecd (or installcd) and run

# lspci -vvv | less -S

That should list, among other things, the appropiate hd module for you (specifically, the one which the livecd or installcd could find appropiate and use). lsmod is also helpful, but full of unnecessary things.
Even after years of installing Gentoo, this stuff continues to hound me in the night. The error you described has always (in my experience) been related to this.

Regarding Udev, try setting this vars in /etc/conf.d/rc

RC_VERBOSE="yes"
RC_BOOTLOG="yes"

¿Would this work with your baselayout-2 + openrc?
It happened to me once that udev just hung and that was it. Nothing else. The problem was I had accidentally deselected the "Unix domain sockets" module in the kernel. I put it into the kernel at present, like this:

[*] Networking support --->
Networking options --->
<*> Unix domain sockets

If you followed a similar approach to this one, and even so you couldn't get it to work, let us know. I don't mean to insult you by telling you this, I just make sure some basic things are covered.
Back to top
View user's profile Send private message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Tue Apr 05, 2011 11:36 pm    Post subject: Reply with quote

I have enabled "scsi disk support" only and it works fine.

There is one remaining problem, the root file system is mounted as read-only, and boot process stop at the beginning.
Is it possible to use udev with read-only root fs? how to configure?
Do i have to remove udev and use devfs only?
Is openrc can be installed without udev?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Apr 06, 2011 12:03 am    Post subject: Reply with quote

check that /etc/fstab is using /dev/sd__ for hard drives
_________________
Defund the FCC.
Back to top
View user's profile Send private message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Wed Apr 06, 2011 8:16 am    Post subject: Reply with quote

The system is always turning root to read-only. Adding rw to grub.conf don't change it.

When starting the system tells:
Code:
WARNING: rc_sys not defined in rc.conf. Failing back to automatic detection.

.. and none of registered services are started.

I'm using following configuration ...
grub.conf
Code:
title Gentoo Linux 2.6.36 (hardened-r9)
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.36-hardened-r9 root=/dev/sda1 vga=6

fstab
Code:
# <fs>      <mountpoint>   <type>   <opts>                         <dump/pass>
/dev/sda1   /              ext2     noatime                        0 0
#/dev/sda1   /              ext2     errors=remount-ro,ro,noatime   0 0
none        /dev/shm       tmpfs    nodev,nosuid,noexec            0 0

The kernel is build limited to hardware and udev requirements) with ext2 support.
Code:
CONFIG_X86_32=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf32-i386"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig"
CONFIG_GENERIC_CMOS_UPDATE=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_MMU=y
CONFIG_ZONE_DMA=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_GPIO=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_ARCH_HAS_CPU_IDLE_WAIT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_ARCH_HAS_CPU_RELAX=y
CONFIG_ARCH_HAS_DEFAULT_IDLE=y
CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARCH_POPULATES_NODE_MAP=y
CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_HAVE_EARLY_RES=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_ARCH_HWEIGHT_CFLAGS="-fcall-saved-ecx -fcall-saved-edx"
CONFIG_KTIME_SCALAR=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
CONFIG_CONSTRUCTORS=y
CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
CONFIG_LOCALVERSION=""
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_KERNEL_GZIP=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
CONFIG_TREE_RCU=y
CONFIG_RCU_FANOUT=32
CONFIG_LOG_BUF_SHIFT=17
CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
CONFIG_SYSCTL=y
CONFIG_ANON_INODES=y
CONFIG_EMBEDDED=y
CONFIG_UID16=y
CONFIG_SYSCTL_SYSCALL=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_PCSPKR_PLATFORM=y
CONFIG_BASE_FULL=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_HAVE_PERF_EVENTS=y
CONFIG_PERF_EVENTS=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_PCI_QUIRKS=y
CONFIG_SLOB=y
CONFIG_HAVE_OPROFILE=y
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
CONFIG_HAVE_IOREMAP_PROT=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_OPTPROBES=y
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_DMA_ATTRS=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_DMA_API_DEBUG=y
CONFIG_HAVE_HW_BREAKPOINT=y
CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y
CONFIG_HAVE_USER_RETURN_NOTIFIER=y
CONFIG_HAVE_PERF_EVENTS_NMI=y
CONFIG_HAVE_GENERIC_DMA_COHERENT=y
CONFIG_RT_MUTEXES=y
CONFIG_BASE_SMALL=0
CONFIG_BLOCK=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_CFQ=y
CONFIG_DEFAULT_NOOP=y
CONFIG_DEFAULT_IOSCHED="noop"
CONFIG_INLINE_SPIN_UNLOCK=y
CONFIG_INLINE_SPIN_UNLOCK_IRQ=y
CONFIG_INLINE_READ_UNLOCK=y
CONFIG_INLINE_READ_UNLOCK_IRQ=y
CONFIG_INLINE_WRITE_UNLOCK=y
CONFIG_INLINE_WRITE_UNLOCK_IRQ=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
CONFIG_X86_EXTENDED_PLATFORM=y
CONFIG_NO_BOOTMEM=y
CONFIG_MVIAC7=y
CONFIG_X86_CPU=y
CONFIG_X86_INTERNODE_CACHE_SHIFT=6
CONFIG_X86_CMPXCHG=y
CONFIG_X86_L1_CACHE_SHIFT=6
CONFIG_X86_XADD=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_TSC=y
CONFIG_X86_CMOV=y
CONFIG_X86_MINIMUM_CPU_FAMILY=4
CONFIG_X86_DEBUGCTLMSR=y
CONFIG_CPU_SUP_INTEL=y
CONFIG_CPU_SUP_CYRIX_32=y
CONFIG_CPU_SUP_AMD=y
CONFIG_CPU_SUP_CENTAUR=y
CONFIG_CPU_SUP_TRANSMETA_32=y
CONFIG_CPU_SUP_UMC_32=y
CONFIG_NR_CPUS=1
CONFIG_PREEMPT_NONE=y
CONFIG_X86_UP_APIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
CONFIG_HIGHMEM4G=y
CONFIG_VMSPLIT_3G=y
CONFIG_PAGE_OFFSET=0xC0000000
CONFIG_HIGHMEM=y
CONFIG_ARCH_FLATMEM_ENABLE=y
CONFIG_ARCH_SPARSEMEM_ENABLE=y
CONFIG_ARCH_SELECT_MEMORY_MODEL=y
CONFIG_ILLEGAL_POINTER_VALUE=0
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_SPARSEMEM_STATIC=y
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_SPLIT_PTLOCK_CPUS=4
CONFIG_ZONE_DMA_FLAG=1
CONFIG_BOUNCE=y
CONFIG_VIRT_TO_BUS=y
CONFIG_DEFAULT_MMAP_MIN_ADDR=65536
CONFIG_X86_RESERVE_LOW_64K=y
CONFIG_HZ_250=y
CONFIG_HZ=250
CONFIG_PHYSICAL_START=0x1000000
CONFIG_PHYSICAL_ALIGN=0x400000
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_PM=y
CONFIG_ACPI=y
CONFIG_ACPI_PROCFS=y
CONFIG_ACPI_PROCFS_POWER=y
CONFIG_ACPI_SYSFS_POWER=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_BLACKLIST_YEAR=0
CONFIG_CPU_IDLE=y
CONFIG_CPU_IDLE_GOV_LADDER=y
CONFIG_PCI=y
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_MMCONFIG=y
CONFIG_PCI_DOMAINS=y
CONFIG_ARCH_SUPPORTS_MSI=y
CONFIG_PCI_MSI=y
CONFIG_HT_IRQ=y
CONFIG_ISA_DMA_API=y
CONFIG_K8_NB=y
CONFIG_BINFMT_ELF=y
CONFIG_HAVE_AOUT=y
CONFIG_HAVE_ATOMIC_IOMAP=y
CONFIG_NET=y
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_ASK_IP_FIB_HASH=y
CONFIG_IP_FIB_HASH=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_TCP_CONG_CUBIC=y
CONFIG_DEFAULT_TCP_CONG="cubic"
CONFIG_IPV6=y
...
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_PNP=y
CONFIG_PNPACPI=y
CONFIG_HAVE_IDE=y
CONFIG_SCSI_MOD=y
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_PROC_FS=y
CONFIG_BLK_DEV_SD=y
CONFIG_ATA=y
CONFIG_ATA_ACPI=y
CONFIG_ATA_SFF=y
CONFIG_ATA_BMDMA=y
CONFIG_PATA_VIA=y
...
CONFIG_EXT2_FS=y
CONFIG_FSNOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_PROC_FS=y
CONFIG_PROC_SYSCTL=y
CONFIG_SYSFS=y
CONFIG_MSDOS_PARTITION=y
...

Am I missing something?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Apr 06, 2011 2:47 pm    Post subject: Reply with quote

Quote:
WARNING: rc_sys not defined in rc.conf. Failing back to automatic detection.
You are using baselayout2 and openrc?
If so, what value is assigned to RC_SYS in /etc/rc.conf?
If so, a detailed audit against Baselayout and OpenRC Migration Guide might help.
What does
Code:
rc-update show
produce?
For comparison,
Quote:
OpenRC 0.7.0 is starting up Gentoo Linux (x86_64)

* Mounting /proc ... [ ok ]
* Mounting /sys ... [ ok ]
* Mounting debug filesystem ... [ ok ]
[ 16.759027] ata6: COMRESET failed (errno=-32)
[ 16.759158] ata6: reset failed (errno=-32), retrying in 8 secs
* Mounting /dev ... [ ok ]
* Starting udevd ... [ ok ]
* Populating /dev with existing devices through uevents ... [ ok ]
* Waiting for uevents to be processed ... [ ok ]
* Mounting /dev/pts ... [ ok ]
* Mounting /dev/shm ... [ ok ]
* Setting system clock using the hardware clock [Local Time] ... [ ok ]
* Autoloaded 0 module(s)
* Checking local filesystems ...
Reiserfs super block in block 16 on 0x811 of format 3.6 with standard journal
Blocks (total/free): 120047712/115765807 by 4096 bytes
Filesystem is clean [ ok ]
* Remounting root filesystem read/write ... [ ok ]
* Updating /etc/mtab ... [ ok ]
* Mounting local filesystems ... [ ok ]
* Configuring kernel parameters ... [ ok ]
* Creating user login records ...

_________________
Defund the FCC.
Back to top
View user's profile Send private message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Wed Apr 06, 2011 3:43 pm    Post subject: Reply with quote

Yes, I'm using baselayout-2.

'rc-update -s' return :
Code:
            bootmisc |                          boot                 
             hostname |                          boot                 
                local | nonetwork default                             
                 udev |                               sysinit         
           localmount |                          boot                 
                 root |                          boot                 
            savecache |                                       shutdown
                 swap |                          boot                 
       udev-postmount |           default                             
                 sshd |           default                             
               sysctl |                          boot                 
              urandom |                          boot                 
                devfs |                               sysinit         
                dmesg |                               sysinit         
              hwclock |                          boot                 
          consolefont |                          boot                 
              keymaps |                          boot                 
            killprocs |                                       shutdown
             iptables |           default                             
                 ntpd |           default                             
           ntp-client |           default                             
             mount-ro |                                       shutdown
                 mtab |                          boot                 
               procfs |                          boot                 
         termencoding |                          boot                 
               net.lo |                          boot                 
             net.eth0 |           default                             
             net.eth1 |           default                             
            syslog-ng |           default

I remove netmount and modules services.

I add rc_sys="" in /etc/rc.conf.

I don't understand why the disk is mounted with read-only option. And I guess this is the reason why services do not start.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Apr 06, 2011 3:51 pm    Post subject: Reply with quote

Kernel mounts filesystems readonly when it detects corruption.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Apr 06, 2011 4:32 pm    Post subject: Reply with quote

Code:
/etc/init.d/root stop
/etc/init.d/root start
mount -o remount,rw /
mount
fsck /

Results?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Apr 06, 2011 6:18 pm    Post subject: Reply with quote

this the same problem?
Code:
mount -o remount,rw /mnt/rawroot /
as a workaround?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Thu Apr 07, 2011 9:20 am    Post subject: Reply with quote

I have check all.
stop root tells the service is starting.
start root tells the service is started yet.
"mount -o remount,rw /" tells the device is busy.
fsck is ok.
"mount -o remount,rw /mnt/rawroot /" tells that rawroot does not exist. I have to create it before but I guess the result would be the same as "mount -o remount,rw /"

I guess this a trouble with the kernel. The system has been built under chroot x86_64 based system. Would it be a problem?

Would it be better to boot with initramfs, and than switch too the root device? (remember that sda is a flash card)
Back to top
View user's profile Send private message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Thu Apr 07, 2011 9:36 am    Post subject: Reply with quote

dmsg give this information
Code:
VFS: Mounted root (ext2 filesystem) readonly on device 0:1

Why readonly? The partition has been formated using
Code:
mke2fs -t ext2 -q /dev/sdf1
   tune2fs -i 0 -c 0 /dev/sdf1

The root filesystem has been published with files from a tar file. The tar file has been created from a virtualbox machine (i686). I do the chroot in this VM.
Is there something wrong in this process?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Thu Apr 07, 2011 3:23 pm    Post subject: Reply with quote

This entry, almost at the end of dmesg,
Quote:
VFS: Mounted root (ext2 filesystem) readonly on device 0:1
is normal in that root is mounted readonly just before the kernel finishes loading and just before init runs to load the root file system and remount root read/write. It is not normal in that the root file system it mounts (device 0:1) is (I think) /dev/mem, based on the folloeing extract from http://www.lanana.org/docs/device-list/devices.txt:
Quote:
0 Unnamed devices (e.g. non-device mounts)
0 = reserved as null device number
See block major 144, 145, 146 for expansion areas.

1 char Memory devices
1 = /dev/mem Physical memory access
2 = /dev/kmem Kernel virtual memory access
3 = /dev/null Null device
4 = /dev/port I/O port access
5 = /dev/zero Null byte source
6 = /dev/core OBSOLETE - replaced by /proc/kcore
7 = /dev/full Returns ENOSPC on write
8 = /dev/random Nondeterministic random number gen.
9 = /dev/urandom Faster, less secure random number gen.
10 = /dev/aio Asyncronous I/O notification interface
11 = /dev/kmsg Writes to this come out as printk's
1 block RAM disk
0 = /dev/ram0 First RAM disk
1 = /dev/ram1 Second RAM disk
...
250 = /dev/initrd Initial RAM disk {2.6}

Older kernels had /dev/ramdisk (1, 1) here.
/dev/initrd refers to a RAM disk which was preloaded
by the boot loader; newer kernels use /dev/ram0 for
the initrd.

This seems to me to suggest that you need to use 'genkernel --menuconfig all' to create and install kernel, system map and initramfs and a grub.conf resembling:
Quote:
default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.36 (hardened-r9)
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.36-hardened-r9 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda1
initrd /boot/initramfs-genkernel-x86-2.6.36-hardened-r9

_________________
Defund the FCC.
Back to top
View user's profile Send private message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Fri Apr 08, 2011 6:19 am    Post subject: Reply with quote

Using initramfs, the system dectect hardware but cannot switch to the root device.

In general, could it be a problem with grub-install? Or a flash card drive partitions created with parted?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Apr 08, 2011 7:11 am    Post subject: Reply with quote

Quote:
Using initramfs, the system dectect hardware but cannot switch to the root device.
Does this mean the situation is worse? Back to kernel panic?

Grub is working perfectly. When the kernel runs, grub has completed it's work.
the kernel does not appear to include the drivers required for your flash card. Suggest genkernel --menuconfig all add sata_via
Quote:
Device Drivers --->
<*> Serial ATA and Parallel ATA drivers --->
<*> AHCI SATA support
[*] ATA SFF support
[*] ATA BMDMA support
<*> VIA SATA support


If that doesn't work, boot a cd, preferably a system rescue cd, mount the gentoo partitions, enter the chroot,
Code:
emerge wgetpaste pciutils usbutils
lspci -k | wgetpaste
lspci -n | wgetpaste
lsusb | wgetpaste

Post the url's returned.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Fri Apr 08, 2011 8:48 am    Post subject: Reply with quote

The kernel current kernel is setup with this options
Quote:
[*] VIA PATA support


Configuring grub with initramfs, the system detect hardware and then displays following messages:
Code:
...
Failed to execute /init
Failed to execute /linuxrc
...
Pid: 1, comm: swapper Not tainted by kernel-hardened-2.6.39-gentoo-r9 #40
...

Might be missing something in kernel or somewhere else!

I check with the system rescue disk and let you know.

Maybe "emerge -e world" would help?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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