Re: The order of my SATA and PATA are switching all the time

2013-06-03 Thread Stefan Monnier
As I've said several times, it's UUID or LABEL. Period. And then there's LVM. I recommend LVM as the solution to this problem because contrary to the UUID the name can be meaningful, and contrary to the LABEL, the LVM volume names don't depend on the kind of file-system you use. Also those

Re: The order of my SATA and PATA are switching all the time

2013-05-10 Thread Stephen Powell
On Wed, 08 May 2013 21:21:13 -0400 (EDT), Tong wrote: All I was asking is what the working *syntax* for the root=ID=ata-IBM-DBCA-203240_HP0HPL43952 part. You can't use ID with root. With boot, you can, but not with root. Not if you want a driver-independent and discover-order-independent

Re: The order of my SATA and PATA are switching all the time

2013-05-09 Thread st
Bob Proulx wrote: One simple question, though: if you have 2 similar HDDs and one of them starts to fail, how do you know which one it is? I assume you mean which physical disk is which? There are useful tools hdparm, smartctl, blkid, lsblk and probably others too. # hdparm -I /dev/sda

Re: The order of my SATA and PATA are switching all the time

2013-05-09 Thread State Angel
fdisk also gives some disk id. You can also use boot script like this to static numerize your drives: rm /dev/myhdd-0 /dev/myhdd-1 m=`cat /sys/block/sda/device/model` if test $m = HDD0MODEL; then     ln -s sda /dev/myhdd-0     ln -s sdb /dev/myhdd-1 else     ln -s sdb /dev/myhdd-0     ln -s

Re: The order of my SATA and PATA are switching all the time

2013-05-09 Thread Linux-Fan
On 05/09/2013 07:10 AM, st wrote: Stefan Monnier wrote: I see many people suggested UUIDs and other funny long names. What I use instead: LVM. This way you get to name the disks and partitions with meaningful names which only change when you decide to change them. One simple question,

Re: The order of my SATA and PATA are switching all the time

2013-05-09 Thread Tixy
On Thu, 2013-05-09 at 01:21 +, T o n g wrote: On Wed, 08 May 2013 08:40:57 -0400, Stephen Powell wrote: Can I use something like root=ID=ata-IBM-DBCA-203240_HP0HPL43952? I remember nothing worked well, so I reverted to the (now troublesome) safe /dev/sdXn. /dev/sdXn is *not*

Re: The order of my SATA and PATA are switching all the time

2013-05-08 Thread Tom Furie
On Wed, May 08, 2013 at 03:28:47AM +, T o n g wrote: Can I use something like root=ID=ata-IBM-DBCA-203240_HP0HPL43952? I remember nothing worked well, so I reverted to the (now troublesome) safe /dev/sdXn. I think the idea is to replace /dev/sdXn with e.g.

Re: The order of my SATA and PATA are switching all the time

2013-05-08 Thread Stephen Powell
On Tue, 07 May 2013 23:28:47 -0400 (EDT), Tong wrote: On Tue, 07 May 2013 07:55:24 -0400, Stephen Powell wrote: This problem, and its solution, are discussed at length on my LILO web page, starting with the discussion of the boot configuration file record.

Re: The order of my SATA and PATA are switching all the time

2013-05-08 Thread T o n g
On Wed, 08 May 2013 08:40:57 -0400, Stephen Powell wrote: Can I use something like root=ID=ata-IBM-DBCA-203240_HP0HPL43952? I remember nothing worked well, so I reverted to the (now troublesome) safe /dev/sdXn. /dev/sdXn is *not* safe. That's the whole point. If you read my message again,

Re: The order of my SATA and PATA are switching all the time

2013-05-08 Thread Bob Proulx
T o n g wrote: I don't like using UUID, because, just as you said: Warning: reformatting a partition normally changes the uuid, unless the existing uuid is explicitly specified as an option when formatting. Thus, commands such as mkfs (and its derivatives) and mkswap will normally

Re: The order of my SATA and PATA are switching all the time

2013-05-08 Thread Stefan Monnier
Anyone know the cure? I see many people suggested UUIDs and other funny long names. What I use instead: LVM. This way you get to name the disks and partitions with meaningful names which only change when you decide to change them. Stefan -- To UNSUBSCRIBE, email to

Re: The order of my SATA and PATA are switching all the time

2013-05-08 Thread st
Stefan Monnier wrote: I see many people suggested UUIDs and other funny long names. What I use instead: LVM. This way you get to name the disks and partitions with meaningful names which only change when you decide to change them. One simple question, though: if you have 2 similar HDDs and

Re: The order of my SATA and PATA are switching all the time

2013-05-08 Thread Bob Proulx
st wrote: Stefan Monnier wrote: I see many people suggested UUIDs and other funny long names. What I use instead: LVM. This way you get to name the disks and partitions with meaningful names which only change when you decide to change them. One simple question, though: if you have 2

Re: The order of my SATA and PATA are switching all the time

2013-05-07 Thread Jonathan Dowland
Use either partition labels or UUIDs when specifying block devices in e.g. /etc/fstab. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20130507091507.GA20902@debian

Re: The order of my SATA and PATA are switching all the time

2013-05-07 Thread Stephen Powell
On Mon, 06 May 2013 23:28:01 -0400 (EDT), Tong wrote: Recently I added an old PATA HD to my system, which previously consist of two SATA HDs. Ever since then, the order of my SATA and PATA are keep switching. This problem, and its solution, are discussed at length on my LILO web page,

Re: The order of my SATA and PATA are switching all the time

2013-05-07 Thread Stephen Powell
On Tue, 07 May 2013 07:55:24 -0400 (EDT), Stephen Powell wrote: Basically, use udev-created symbolic links in /etc/fstab, /etc/initramfs/conf.d/resume, and your boot loader. Oops! I meant to say /etc/initramfs-tools/conf.d/resume, not /etc/initramfs/conf.d/resume. -- .''`. Stephen

Re: The order of my SATA and PATA are switching all the time

2013-05-07 Thread T o n g
On Tue, 07 May 2013 07:55:24 -0400, Stephen Powell wrote: Recently I added an old PATA HD to my system, which previously consist of two SATA HDs. Ever since then, the order of my SATA and PATA are keep switching. This problem, and its solution, are discussed at length on my LILO web page,

The order of my SATA and PATA are switching all the time

2013-05-06 Thread T o n g
Hi, Recently I added an old PATA HD to my system, which previously consist of two SATA HDs. Ever since then, the order of my SATA and PATA are keep switching. NB, it is not that I can't boot, I can boot just fine, but half of the time the boot process will drop to that single user PANIC