Re: boot change to /dev/sdc1 but still think it's /dev/sda2

From: James
Date: Sun Jun 17 2012 - 13:45:10 EST


On 06/16/12 19:06, James wrote:
>
> I'm having a problem where I installed an SSD (/dev/sdc1) and even though I have grub set to
> root (hd0,0)
> kernel /boot/bzImage root=/dev/sdc1 rootfstype=ext4 raid=noautodetect
> it thinks my root is /dev/sda2 (my old boot). It is my ssd though (size, contents).
>
> I read that I can try using the uuid:
> kernel /boot/bzImage root=/dev/disk/by-uuid/e2647271-08fb-4af5-9a6f-11283a521bbd rootfstype=ext4 raid=noautodetect
> My system won't boots bot won't load the kernel that way.
>
> I took a pic of the oops, it's fuzzy but I think it is readable.
> http://lockie.ca/test/small_DSCN0077.JPG
>
> My /etc/fstab
> UUID="a82c245a-5323-4eda-a094-fa2de81721a5" /boot ext2 noauto,noatime 0 0
> UUID="e2647271-08fb-4af5-9a6f-11283a521bbd" / ext4 defaults,auto,noatime,discard 0 0
> UUID="743d709c-766c-477a-a892-65808cae645d" /other ext4 defaults,auto,noatime 0 0
> UUID="b7c60eb6-5501-4f1e-9c05-a416770cc32f" /storage ext4 defaults,auto,noatime 0 0
> tmpfs /tmp tmpfs size=4G,mode=1777 0 0
>

$ df
df: '/media/storage': No such file or directory
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 87773488 9382636 73994992 12% /
/dev/sdb1 480647488 236183452 220044836 52% /storage
/dev/sda2 487820492 115553208 347848484 25% /home
/dev/sda2 487820492 115553208 347848484 25% /var
/dev/sdb1 480647488 236183452 220044836 52% /storage
/dev/sda2 487820492 115553208 347848484 25% /other
tmpfs 4194304 1446860 2747444 35% /tmp
shm 8165176 0 8165176 0% /dev/shm
/dev/sdb1 480647488 236183452 220044836 52% /storage

$ cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext4 rw,noatime,discard,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=8164956k,nr_inodes=2041239,mode=755 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/sda2 /other ext4 rw,noatime,data=ordered 0 0
tmpfs /tmp tmpfs rw,relatime,size=4194304k 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/sdb1 /storage ext4 rw,noatime,data=ordered 0 0

$ mount
/dev/sda2 on / type ext4 (rw,noatime,discard,commit=0)
/dev/sdb1 on /storage type ext4 (rw,noatime)
/dev/sdb1 on /media/storage type ext4 (rw,noatime,commit=0)
/dev/sda2 on /home type ext4 (rw,noatime,commit=0)
/dev/sda2 on /var type ext4 (rw,noatime,commit=0)
/dev/sdb1 on /storage type ext4 (rw,noatime)
/dev/sda2 on /other type ext4 (rw,noatime,commit=0)
tmpfs on /tmp type tmpfs (rw,size=4G,mode=1777)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
/dev/sdb1 on /storage type ext4 (rw,noatime)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/