Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UUID on boot disk, to avoid hurting broken raid -- Solved
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2569

PostPosted: Sun Apr 25, 2010 3:25 am    Post subject: UUID on boot disk, to avoid hurting broken raid -- Solved Reply with quote

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


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Sun Apr 25, 2010 2:52 pm    Post subject: Reply with quote

Use SystemRescue it detected my software raid and assembled it. I only had to mount md0, md1 ...
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
Frustie
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2007
Posts: 102
Location: My own little planet.

PostPosted: Mon Apr 26, 2010 11:25 am    Post subject: Reply with quote

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
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2569

PostPosted: Mon Apr 26, 2010 5:34 pm    Post subject: Reply with quote

Thanks.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2569

PostPosted: Wed Apr 28, 2010 2:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2569

PostPosted: Wed Apr 28, 2010 5:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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