View previous topic :: View next topic |
Author |
Message |
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Sun Apr 25, 2010 3:25 am Post subject: UUID on boot disk, to avoid hurting broken raid -- Solved |
|
|
Hi,
I have a system that's currently messed up. I had RAID10 on it, and I would really like to get the data off that array. I had intended to wipe the array anyway, so I don't really care if it lives any longer than that.
So I couldn't get the array to come back up on the minimal CD. I bought another drive, thinking I could install Gentoo on that and then pull my data, recreate the array with different options and then I would be happy.
This 5th disk is basically being set up as a backup drive. It's in a slot on the front of the computer, with an eject button. It's a bare SATA drive.
When I booted off the minimal CD, the backup drive is /dev/sda. That's fine, I went about formatting it and installing based on the documentation, ignoring the RAID array even though it's attached. I got to the point of rebooting, and I'm coming up with an error. It tells me the error I get from the RAID disk. It says the array is messed up and gets me to the rescue shell.
I think it's getting confused about which drive is /dev/sda when I try to boot off of the backup drive. I'm trying to figure out how to use UUID instead of /dev/sda*. I can't seem to find it, and I'm not sure that's the right solution anyway. I need advice.
Thanks.
Last edited by 1clue on Tue May 04, 2010 6:15 pm; edited 1 time in total |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
|
Back to top |
|
|
Frustie Tux's lil' helper
Joined: 31 Aug 2007 Posts: 102 Location: My own little planet.
|
Posted: Mon Apr 26, 2010 11:25 am Post subject: |
|
|
from the internet :
Quote: | Megumi ~ # ls -la /dev/disk/by-uuid/
total 0
drwxr-xr-x 2 root root 180 Apr 26 10:42 .
drwxr-xr-x 6 root root 120 Apr 26 10:42 ..
lrwxrwxrwx 1 root root 10 Apr 26 10:42 202C4E5A2C4E2ADC -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 26 10:42 36F4685AF4681E7D -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 26 10:42 BC9CA2AA9CA25F20 -> ../../sdb5
lrwxrwxrwx 1 root root 10 Apr 26 10:42 b5ddaea5-e7dd-4640-bfa6-cf7e274f5ff0 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Apr 26 10:42 c1c5f611-e017-4b99-86dc-9458c55ae142 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Apr 26 10:42 e78c6625-ad58-43ce-b4d0-720773ec9476 -> ../../sdb6
lrwxrwxrwx 1 root root 10 Apr 26 10:42 f515084b-e7ee-4a38-9584-b286547576c3 -> ../../sdb1
|
then put
UUID=b5ddaea5-e7dd-4640-bfa6-cf7e274f5ff0 /mount/point etc etc 0 0
in /etc/fstab |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Mon Apr 26, 2010 5:34 pm Post subject: |
|
|
Thanks. |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Wed Apr 28, 2010 2:38 pm Post subject: |
|
|
I got my RAID mounted with the SystemRescue disk, and got most of the critical stuff pulled off onto another hard disk.
I would be interested in knowing how they figure out the disks on there, and why Gentoo's tools don't do it. I booted off the LiveCD too while I was at it, and had a lot more trouble.
Since I want to reconfigure my RAID array I don't need to rescue the actual partitions, so I guess this thread is solved.
I'll use that by-uuid thing when I set up my new system.
Thanks! |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Wed Apr 28, 2010 5:57 pm Post subject: |
|
|
How do I mark the topic as solved? I thought you could edit the first post's subject and that was it, but I can't do that here. |
|
Back to top |
|
|
|