View previous topic :: View next topic |
Author |
Message |
Nicias Guru
Joined: 06 Dec 2005 Posts: 446
|
Posted: Fri Aug 31, 2007 1:55 pm Post subject: 2.6.16 -> 2.6.22 update hard drive device question |
|
|
My understanding is that with the newest kernels, all drives are /dev/sda's. If I upgrade from 2.6.16 to 2.6.22 I will have to change my /etc/fstab correct? When is the correct time to do this? Also, I won't be able to switch back and forth correct without changing my fstab correct? |
|
Back to top |
|
|
merlijn Apprentice
Joined: 10 Apr 2007 Posts: 161 Location: Den Haag, Holland
|
Posted: Fri Aug 31, 2007 2:04 pm Post subject: |
|
|
Where did you obtain that information from? IDE drives are certainly still supported in 2.6.22 and are still referred to as /dev/hdX. I don't see any point why you would have to change your fstab, and in the worst case where you would have to, it's a one minute job with any livecd. |
|
Back to top |
|
|
Nicias Guru
Joined: 06 Dec 2005 Posts: 446
|
Posted: Fri Aug 31, 2007 2:31 pm Post subject: |
|
|
In a couple of places, mostly while working with my kubuntu machine that I am converting to gentoo. (It has sata drives so there is no problem.) but also on #gentoo, as well as places like
http://forums.debian.net/viewtopic.php?p=85884&sid=a6fc79f42fe51951ccc6bd77f6a74882
http://ubuntuforums.org/showthread.php?t=532823
Maybe this is just some *ubuntu/debian weirdness.
Maybe I'm mistaken, but I thought if you enabled support for
Code: |
Device Drivers --->
Serial ATA (prod) and Parallel ATA (experimental) drivers
|
Rather than
Code: |
Device Drivers --->
ATA/ATAPI/MFM/RLL support --->
|
All of your disks would show up as /dev/sdXN. |
|
Back to top |
|
|
frenkel Veteran
Joined: 13 May 2003 Posts: 1034 Location: .nl
|
Posted: Fri Aug 31, 2007 2:35 pm Post subject: |
|
|
That's correct, but you can still use ATA/ATAPI/MFM/RLL support and access them as hdX. It's even recommended, as the other option for ATA drives is still experimental. |
|
Back to top |
|
|
termite Guru
Joined: 06 May 2007 Posts: 466
|
Posted: Fri Aug 31, 2007 2:37 pm Post subject: |
|
|
You are pretty much correct. If you do that, (enable the new unified PATA/SATA drivers and disable the old ones) everything will switch to sda. Then you will need to edit your fstab.
Personally, I recommend that everyone does this, as the old drivers will cease development sooner or later. There's absolutely no point in having separate drivers. |
|
Back to top |
|
|
Nicias Guru
Joined: 06 Dec 2005 Posts: 446
|
Posted: Fri Aug 31, 2007 2:41 pm Post subject: |
|
|
my kubuntu system uses UUID's on its fstab which seem to avoid this problem, but removes the human readablity factor that /dev/hda had. I've been looking into using LABEL's can anyone point me to a good tutorial, I found this one, but it's for ubuntu, and I don't completely trust them
http://ubuntuforums.org/showthread.php?t=283131 |
|
Back to top |
|
|
termite Guru
Joined: 06 May 2007 Posts: 466
|
Posted: Fri Aug 31, 2007 2:57 pm Post subject: |
|
|
You can use any device reference in the fstab, including names (sda etc), uuid's , labels, id's, and paths. Poke around in the directory for more fstab fun.... |
|
Back to top |
|
|
Nicias Guru
Joined: 06 Dec 2005 Posts: 446
|
Posted: Fri Aug 31, 2007 3:11 pm Post subject: |
|
|
That's great! I see how one sets labels using programs like e2label, but what about my swap partition? |
|
Back to top |
|
|
termite Guru
Joined: 06 May 2007 Posts: 466
|
Posted: Fri Aug 31, 2007 9:25 pm Post subject: |
|
|
Labels are somewhat partition-type specific. I'm not sure if swap partitions can be labeled. At a guess, probably not. Google a bit and see if you can find anything... |
|
Back to top |
|
|
|