LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2006, 08:10 PM   #1
rabalder321
Member
 
Registered: Dec 2005
Posts: 37

Rep: Reputation: 15
Have to alter fstab when upgrading to udev?


Hello

I upgraded to kernel 2.6.12. I used to have kernel 2.4.29. All I had to do with 2.4 was to insert a usb cable from my storage device and it worked under /dev/sda1, but under 2.6.12 I have to create the nodes manually. Another problem was that I didn't get any sound. I read a thread about someone saying there was a problem with udev 062 and above, that for some reason the computer didn't find the soundcard (which had worked fine under 2.4.29).

Anyway, I uninstalled udev 062 and installed 058. When I tried to load the 2.6 kernel, no harddrives are being found, at least not under /dev/hda. I get to log in by typing the root password, but I couldn't go outside the root drive (I created drives for /home, /opt and /usr). There are some drives under /dev/disk that I think correspond to the 2.4.29 versions of /hda1 /hda5 etc.

My question is, do I have to change fstab when upgrading to udev (telling linux not to look for drives in /dev/hda, but in /dev/disk)? I thought this was supposed to be done automatically, but maybe it isn't? If udev places the nodes in /dev/disk rather than directly in /dev, maybe I do have to change fstab, and maybe lilo.conf as well?

This is my fstab:

/dev/hda5 swap swap defaults 0 0
/dev/hda1 / ext2 defaults 1 1
/dev/hda6 /home ext2 defaults 1 2
/dev/hda7 /usr ext2 defaults 1 2
/dev/hda8 /opt ext2 defaults 1 2
/dev/hdc /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


And this is my lilo:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset

image = /boot/vmlinuz

root = /dev/hda1
label = Linux-2.6.12
initrd = /boot/initrd-1024x768
vga = 0x317
append="video=vesafb:ywrap,mtrr splash=silent"
read-only

image = /boot/vmlinuz-ide-2.4.29
root = /dev/hda1
label = Linux-2.4.29
read-only

# Linux bootable partition config ends


Thanks for reading, looking forward to your answer
 
Old 01-12-2006, 08:53 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,155

Rep: Reputation: Disabled
Your fstab remains unchanged, /dev/disk should contain just symlinks to real devices. Probably something is wrong with coldplug and hotplug. Migrating from 2.4 to 2.6 is always tricky.
 
Old 01-12-2006, 08:53 PM   #3
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
I switched a couple of my boxes over to udev recently and all that should need done to fstab is the sysfs needs to be commented out and the "usbdevfs" line needs to be changed to say "usbfs" (both places in the line). Also, verify that /etc/fstab contains a line with /dev/shm in it. After the changes the lines in question will look like:

#sysfs /sys sysfs defaults 0 0
usbfs /proc/bus/usb usbfs defaults 0 0
none /dev/shm tmpfs defaults 0 0

The /dev/hda1 is correct though.

Last edited by bosewicht; 01-12-2006 at 08:55 PM.
 
  


Reply


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
/etc/fstab for udev salahuddin_66 Debian 1 10-23-2005 12:41 PM
Upgrading to unstable broke udev Ephracis Debian 5 10-17-2005 05:28 AM
Upgrading to 2.6 Kernel, ALSA, Udev Kenji Miyamoto Slackware 8 08-27-2005 06:24 PM
Kernel Upgrading, dev, udev, etc... Makaelin Slackware 2 02-11-2005 06:58 PM
upgrading to linux 2.6.5 with hotplugging and udev behmjose Linux From Scratch 6 05-05-2004 07:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration