LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 07-23-2012, 12:57 PM   #1
amboxer21
Member
 
Registered: Mar 2012
Location: New Jersey
Distribution: Gentoo
Posts: 291

Rep: Reputation: Disabled
uuid to dev


I tried changing my uuid to dev and now my arch box wont boot. It says its waiting for the root device at /dev/disk/by-uid but then it can't determine the minor major of the device.

I booted off of a live CD and manually mounted my root partition and edited fstab to boot from /dev/sda3 instead of the previously assigned uuid.

Am I missing something?
 
Old 07-23-2012, 02:54 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,190

Rep: Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037
Maybe there is a workaround which allows you to use devices, but why not use the UUID? You can find the UUID of devices by using the blkid command. Copy & paste it in /etc/fstab and you are done.

jlinkels
 
Old 07-23-2012, 03:44 PM   #3
amboxer21
Member
 
Registered: Mar 2012
Location: New Jersey
Distribution: Gentoo
Posts: 291

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jlinkels View Post
Maybe there is a workaround which allows you to use devices, but why not use the UUID? You can find the UUID of devices by using the blkid command. Copy & paste it in /etc/fstab and you are done.

jlinkels
My blkid output:
Code:
/dev/sdb1: UUID="6c35a57f-3ee2-464c-be17-fdd03d0d7115" TYPE="ext2" 
/dev/sdb2: UUID="2ac705cc-9ab4-42d6-954e-c16d2b652048" TYPE="swap" 
/dev/sdb3: UUID="25679410-6c1e-40de-8c52-59350d3b665c" TYPE="ext4" 
/dev/sdb4: UUID="ed593146-0dc6-4989-b1be-7213c17d0de8" TYPE="ext4"
My fstab:
Code:
# <file system> <dir>   <type>  <options>       <dump>  <pass>
tmpfs           /tmp    tmpfs   nodev,nosuid    0       0
/dev/sdb1       /boot ext2 defaults 0 1
/dev/sdb2        swap swap defaults 0 0
/dev/sdb3       /     ext4 defaults 0 1
/dev/sdb4       /home ext4 defaults 0 1
This is what I did
Code:
# <file system> <dir>   <type>  <options>       <dump>  <pass>
tmpfs           /tmp    tmpfs   nodev,nosuid    0       0
UUID=6c35a57f-3ee2-464c-be17-fdd03d0d7115       /boot ext2 defaults 0 1
UUID=2ac705cc-9ab4-42d6-954e-c16d2b652048        swap swap defaults 0 0
UUID=25679410-6c1e-40de-8c52-59350d3b665c       /     ext4 defaults 0 1
UUID=ed593146-0dc6-4989-b1be-7213c17d0de8       /home ext4 defaults 0 1
I REMOVED THE QUOTES. I am going to reboot and find out if i should have kept the quotes lol Thanks jliknels
 
Old 07-23-2012, 06:28 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,625

Rep: Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777
Quote:
Originally Posted by amboxer21 View Post
Am I missing something?
Boot-loader ?.
 
Old 07-23-2012, 09:56 PM   #5
amboxer21
Member
 
Registered: Mar 2012
Location: New Jersey
Distribution: Gentoo
Posts: 291

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Boot-loader ?.
I figured it was something more than fstab because even after editing fstab it would still look for the same uuid.

How do I update the bootloader? Or do I have to reinstall again?
 
Old 07-23-2012, 10:16 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,625

Rep: Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777
Been a while since I've done anything with Arch, but mine has (legacy) grub.
That means /boot/grub/menu.lst - just change the root= parm on the kernel line.

I see Arch has recently gone to grub2, but they have disabled UUID by default, so you shouldn't be seeing this in grub2 unless you changed the defaults Arch appear to ship.
Either way the wiki is generally a great place to look.
 
Old 07-23-2012, 10:43 PM   #7
amboxer21
Member
 
Registered: Mar 2012
Location: New Jersey
Distribution: Gentoo
Posts: 291

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Been a while since I've done anything with Arch, but mine has (legacy) grub.
That means /boot/grub/menu.lst - just change the root= parm on the kernel line.

I see Arch has recently gone to grub2, but they have disabled UUID by default, so you shouldn't be seeing this in grub2 unless you changed the defaults Arch appear to ship.
Either way the wiki is generally a great place to look.
Yeah, with the first grub, the /boot/grub/ folder had a cfg file I could have edited. Since the upgrade, the boot folder is empty. It most likely resides in /usr/lib/ now. I really dont feel like digging to deep into this. I will just reinstall and set ti to use. It's not like I have a running sytem, that I do not want to lose. I already know how to fix the glibc issue anyway. It's just time consuming, is all. Thanks for the help syg00

EDIT:
Scratch that, Since the upgrade has changed a lot of things I cannot just reinstall. As this will be a reoccuring issue, I assume. I would rather use dev instead of uuid. Before the upgrade to grub2, I used dev instead uuid and it booted. Now I am forced to use uuid and my box wont boot.

I think the problem could be that during the installation the system was set to boot from root device sdb3 but after the installation it was looking for sda3 and wouldnt boot unless I went in and manually changed fstab to match.

What is it going to take to install Arch again? An arm and a leg? Maybe my soul lol It was super easy before this glibc sh*t!

Last edited by amboxer21; 07-23-2012 at 10:50 PM.
 
Old 07-24-2012, 12:04 AM   #8
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,190

Rep: Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037
I am sorry about forgetting to mention the update of grub. A boot stanza would look like this:
Code:
title           Debian GNU/Linux, kernel 2.6.32-5-amd64
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.32-5-amd64 root=UUID=bf8c8574-0f87-4e5f-b6dc-5556717422a8 ro quiet vga=872
initrd          /boot/initrd.img-2.6.32-5-amd64
Unfortunately I know about Debian specific way to handle the configuration of Grub2 which might be different from others. Does this help:
https://wiki.archlinux.org/index.php...OS_Config_file

Anyway, during booting you can press 'c' or 'e' (look at the prompts in grub while booting, not 100% sure) to edit the active boot stanza to see if you do have a bootable machine given the correct UUIDs etc. Once you proved that that is working, you can concentrate on creating the correct config files.

Re-installing to get just the boot loader right is not generally necessary. Windows requires that because it lacks the proper tools, Linux has all those tools and the boot loader is better accessible.

jlinkels
 
Old 07-24-2012, 12:15 AM   #9
amboxer21
Member
 
Registered: Mar 2012
Location: New Jersey
Distribution: Gentoo
Posts: 291

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jlinkels View Post
I am sorry about forgetting to mention the update of grub. A boot stanza would look like this:
Code:
title           Debian GNU/Linux, kernel 2.6.32-5-amd64
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.32-5-amd64 root=UUID=bf8c8574-0f87-4e5f-b6dc-5556717422a8 ro quiet vga=872
initrd          /boot/initrd.img-2.6.32-5-amd64
Unfortunately I know about Debian specific way to handle the configuration of Grub2 which might be different from others. Does this help:
https://wiki.archlinux.org/index.php...OS_Config_file

Anyway, during booting you can press 'c' or 'e' (look at the prompts in grub while booting, not 100% sure) to edit the active boot stanza to see if you do have a bootable machine given the correct UUIDs etc. Once you proved that that is working, you can concentrate on creating the correct config files.

Re-installing to get just the boot loader right is not generally necessary. Windows requires that because it lacks the proper tools, Linux has all those tools and the boot loader is better accessible.

jlinkels
Yeah I found a bunch of arch wiki articles. Including the one you provided. Thank you! Its 1am here in New Jersey though. So, I will have to continue this headache tomorrow.


I am going to start here --> https://bbs.archlinux.org/viewtopic.php?id=135288 seems a lot of people are having similar issues after the upgrade as well.

Reinstalling to get the bootloader right would be crazy and pretty dumb lol

Last edited by amboxer21; 07-24-2012 at 12:16 AM.
 
Old 07-24-2012, 06:49 PM   #10
amboxer21
Member
 
Registered: Mar 2012
Location: New Jersey
Distribution: Gentoo
Posts: 291

Original Poster
Rep: Reputation: Disabled
I solved the boot issue.

I chroot'd into my hard drive then used mkinitcpio

Removed grub and installed syslinux.

I finally get to enjoy my standalone openbox Arch box. Woot woot

Problem solved. Thanks everyone!

Last edited by amboxer21; 07-24-2012 at 11:42 PM.
 
Old 07-24-2012, 11:23 PM   #11
amboxer21
Member
 
Registered: Mar 2012
Location: New Jersey
Distribution: Gentoo
Posts: 291

Original Poster
Rep: Reputation: Disabled
Bump. Read the updated post above
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cryptsetup UUID/dev/sdax problem zeebra Linux - Software 1 07-23-2012 10:25 PM
mdadm: /dev/sdb1 has wrong uuid ysjdx Linux - Server 0 12-04-2011 11:02 AM
[SOLVED] How to mount by-uuid if the device won't show in /dev/disk/by-uuid untill after blkid /dev/sd* ? masmddr Linux - General 4 01-10-2011 07:38 PM
UUID device versus /dev abd_bela Debian 1 02-08-2009 02:13 PM
Volume has problems including no uuid in /dev/disk/by-uuid abejarano Linux - Hardware 3 12-31-2008 08:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 07:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration