LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 12-13-2008, 05:40 AM   #1
[gentoo-user]
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Rep: Reputation: 0
problems booting with udev


Hi I have a Lenovo laptop which has been running gentoo quite happily for a couple of months with a kernel compiled with genkernel.

I took the leap and manually compiled a kernel to taylor it to my m/c and since i have not been able to boot with udev, I have confirmed it is udev stopping my system booting by using [code]gentoo=noudev[\code]; in which case the system boots.

I have traced the problem to the init script and the command

Code:
mount -n -t tmpfs -o exec,nousuid,mode=0755,size=10M udev /dev
from the file /lib/rcscript/addons/udev-start.sh but due to lack of experience I don't know what the problem with the command is :$

the way I understand it is:
'-n' means use /proc/devices instead of /etc/mtab for device info?
'-t tmpfs' means mount as a tmpfs (tempory filesystem?) type
'-o ...' declares the options to be used
'udev' is the name of the device
'/dev' is the location the device is to be mounted

I have noticed that genkernel used /dev/hda for my disk and the new kernel uses /dev/sda - I have made the changes to the following lines to account for this:
new fstab contains the following:

Code:
/dev/sda1    /boot         ext2    noauto,noatime         1    2
/dev/sda3    /             ext3    noatime                0    1
/dev/sda2    none          swap    sw                     0    0
/dev/cdrom   /mnt/cdrom    auto    noauto,users           0    0
shm          /dev/shm      tmpfs   nodev,nosuid,noexec    0    0
When boot using 'gentoo=noudev' i get the same error when 'Mounting local filesystems', this time however it is not critical and boot continues to the command prompt.

Any help on resolving this or clarifying my understanding of the mount process would be greatly appreciated
 
Old 12-13-2008, 06:51 AM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
compile tmpfs into your kernel instead of as a module?
 
Old 12-13-2008, 06:56 AM   #3
[gentoo-user]
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Could you clarify? Are you suggesting creating an initramfs?
 
Old 12-13-2008, 07:06 AM   #4
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
hmm... maybe I should have stepped back here, I usually get mount errors if my kernel uses modules for filesystem support... is it possible the same thing is happening here? Recompile with tmpfs built in then recreate your initrd?

mkinitrd -c -k 2.6.### -m xfs

the xfs bit makes xfs part of the ramdisk, maybe adding tmpfs will fix it?

mkinitrd -c -k 2.6.### -m xfs -m tmpfs

Excuse me if I talk poo, it's late
 
Old 12-16-2008, 04:34 AM   #5
[gentoo-user]
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Ok, have solved the problem by creating an initramfs using the excellent guide at:
http://www.gentoo-wiki.info/Initramfs
watch out for those nasty pop-ups though
 
Old 12-16-2008, 05:15 AM   #6
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Glad you sorted it
 
  


Reply

Tags
boot, dev, fstab, mount, udev



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
My CentOS installation stops booting at udev service arijit_2404 Linux - Desktop 3 11-11-2007 10:09 AM
Linux booting problem, segmentation fault when starting udev mercede75 Linux - Newbie 1 10-03-2007 09:52 AM
Can't finish booting via NFS. Udev, hotplug and modules problem. Linux.tar.gz Debian 1 04-20-2007 03:05 AM
Problem booting udev-based distros on external hard drive mcphail Linux - General 1 09-02-2005 09:58 PM
problems with udev can3p Slackware 7 06-09-2005 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:04 AM.

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