You are not logged in.

#1 2010-12-05 03:13:52

badt18
Member
Registered: 2010-09-21
Posts: 22

Sata Drive /dev/sda changes to /dev/sdc

Pretty much what the title says.

My root partition is on /dev/sda3. when i restart grub boots up fine then it boots in then i get a message that its waiting 10 seconds for /dev/sda3 (but the system has changed it to /dev/sdc3) if i keep rebooting it it will finally change back to /dev/sda3 but is really annoying and i cant reboot it via ssh.

i rekon it got something to do with udev but im too much of a noob to be able to work it out:(

this is the output of
udevadm info -a -p $(udevadm info -q path -n /dev/sda)

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:11.0/host0/target0:0:0/0:0:0:0/block/sda':
    KERNEL=="sda"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{range}=="16"
    ATTR{ext_range}=="256"
    ATTR{removable}=="0"
    ATTR{ro}=="0"
    ATTR{size}=="976771055"
    ATTR{alignment_offset}=="0"
    ATTR{discard_alignment}=="0"
    ATTR{capability}=="50"
    ATTR{stat}=="    4606     7376   112424    20590      774     1445    17684     5330        0    11910    25923"
    ATTR{inflight}=="       0        0"

  looking at parent device '/devices/pci0000:00/0000:00:11.0/host0/target0:0:0/0:0:0:0':
    KERNELS=="0:0:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS=="sd"
    ATTRS{device_blocked}=="0"
    ATTRS{type}=="0"
    ATTRS{scsi_level}=="6"
    ATTRS{vendor}=="ATA     "
    ATTRS{model}=="WDC WD5000AAKS-7"
    ATTRS{rev}=="12.0"
    ATTRS{state}=="running"
    ATTRS{timeout}=="30"
    ATTRS{iocounterbits}=="32"
    ATTRS{iorequest_cnt}=="0x160b"
    ATTRS{iodone_cnt}=="0x1602"
    ATTRS{ioerr_cnt}=="0x3"
    ATTRS{modalias}=="scsi:t-0x00"
    ATTRS{evt_media_change}=="0"
    ATTRS{queue_depth}=="31"
    ATTRS{queue_ramp_up_period}=="120000"
    ATTRS{queue_type}=="simple"

  looking at parent device '/devices/pci0000:00/0000:00:11.0/host0/target0:0:0':
    KERNELS=="target0:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:11.0/host0':
    KERNELS=="host0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:11.0':
    KERNELS=="0000:00:11.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="ahci"
    ATTRS{vendor}=="0x1002"
    ATTRS{device}=="0x4390"
    ATTRS{subsystem_vendor}=="0x1002"
    ATTRS{subsystem_device}=="0x4390"
    ATTRS{class}=="0x010601"
    ATTRS{irq}=="22"
    ATTRS{local_cpus}=="ff"
    ATTRS{local_cpulist}=="0-7"
    ATTRS{modalias}=="pci:v00001002d00004390sv00001002sd00004390bc01sc06i01"
    ATTRS{dma_mask_bits}=="64"
    ATTRS{consistent_dma_mask_bits}=="64"
    ATTRS{enable}=="1"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}==""

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

i cant find ATTRS{serial}

is there away i can tell the system to map this drive to /dev/sda all the time???


Thanx Tonz

Offline

#2 2010-12-05 04:09:21

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Sata Drive /dev/sda changes to /dev/sdc

Are you looking for this? Wiki, stop one on the newbie train.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB