Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6.16 -> 2.6.22 update hard drive device question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Nicias
Guru
Guru


Joined: 06 Dec 2005
Posts: 446

PostPosted: Fri Aug 31, 2007 1:55 pm    Post subject: 2.6.16 -> 2.6.22 update hard drive device question Reply with quote

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
View user's profile Send private message
merlijn
Apprentice
Apprentice


Joined: 10 Apr 2007
Posts: 161
Location: Den Haag, Holland

PostPosted: Fri Aug 31, 2007 2:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nicias
Guru
Guru


Joined: 06 Dec 2005
Posts: 446

PostPosted: Fri Aug 31, 2007 2:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Fri Aug 31, 2007 2:35 pm    Post subject: Reply with quote

Nicias wrote:
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.

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
View user's profile Send private message
termite
Guru
Guru


Joined: 06 May 2007
Posts: 466

PostPosted: Fri Aug 31, 2007 2:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nicias
Guru
Guru


Joined: 06 Dec 2005
Posts: 446

PostPosted: Fri Aug 31, 2007 2:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
termite
Guru
Guru


Joined: 06 May 2007
Posts: 466

PostPosted: Fri Aug 31, 2007 2:57 pm    Post subject: Reply with quote

You can use any device reference in the fstab, including names (sda etc), uuid's , labels, id's, and paths. Poke around in the
Quote:
/dev/disk
directory for more fstab fun....
Back to top
View user's profile Send private message
Nicias
Guru
Guru


Joined: 06 Dec 2005
Posts: 446

PostPosted: Fri Aug 31, 2007 3:11 pm    Post subject: Reply with quote

That's great! I see how one sets labels using programs like e2label, but what about my swap partition?
Back to top
View user's profile Send private message
termite
Guru
Guru


Joined: 06 May 2007
Posts: 466

PostPosted: Fri Aug 31, 2007 9:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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