You are not logged in.

#1 2012-02-12 04:18:24

sotu
Member
Registered: 2011-09-21
Posts: 12

[closed] chroot questions, mount point proc/ does not exist [restored]

Hi All,

recently I experienced what seems to be a moderately frequent issue: I updated my kernel and on next boot got the error about ERROR: unable to determine major/minor number of root device

found that the best way to fix this is to chroot to my existing arch system using another linux cd (I chose to simply use Arch live boot because I have the ISO sitting on my desktop) and then downgrade the kernel to previously good/known working version.

So that is what I am working on and I have this wiki page (https://wiki.archlinux.org/index.php/Change_Root) about change root that is a good guide.

Here is my quesiton
1.)  I booted arch live from iso
2.) mkdir for /mnt/arch
3.) mount /dev/<device-or-partition-name> /mnt/arch

I mounted my /dev/sda1 because that is what the boot star is next too (presumably that means its where the system kernel is? I am a little shaky on this)

Then after mounting it I try to do the
cd /mnt/arch
mount -t proc proc proc/

and get that mount point proc/ does not exist. I make an ls and sure enough there is no proc/ (I am wondering maybe if I mounted the wrong device??

Here is a screen shot of my device table after I fdisk -l |less - http://i.imgur.com/3DdSm.png

Can someone provide advice as to whether I mounted the correct device from that screen shot and/or if the proc/ folder is missing what does that mean?

Sorry but the chroot wiki is either not informative enough or I am just too new.

Thanks!
sotu

Last edited by sotu (2012-02-12 19:25:11)

Offline

#2 2012-02-12 04:34:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [closed] chroot questions, mount point proc/ does not exist [restored]

Please resize your screenshot to conform with the Forum guidelines.

It looks like you are running LVM: have you prepped the volume group prior to mounting?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2012-02-12 05:07:53

sotu
Member
Registered: 2011-09-21
Posts: 12

Re: [closed] chroot questions, mount point proc/ does not exist [restored]

thanks for the tip I removed the image and will just leave the link to it on the hosting site.

I did not see a section on the chroot wiki about prepping the vol group prior to mounting so I didnt do this. I searched for "prep" on that page to be certain i didnt overlook it but nothing shows.

I did search a little bit more on the forum for 'lvm prep volume group' but I'm not really finding information that seems relevant. Could you maybe elaborate a bit for me on that? OR link to more info? Thanks very much

Offline

#4 2012-02-12 06:44:00

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [closed] chroot questions, mount point proc/ does not exist [restored]

You need to make the volumes available. The info is in man vgchange. Basically, you issue:

vgchange --available y <nameofgroup>

You can then check that it is all prepped with:

vgdisplay

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2012-02-12 17:28:29

sotu
Member
Registered: 2011-09-21
Posts: 12

Re: [closed] chroot questions, mount point proc/ does not exist [restored]

Thanks for pointing me to vgchange, took a look at the man page. I'm wondering if you can give me some info on how to determine the name of the volume group? I tried /dev/sda1  but that returned no volume found

The man page says I can run

 vgchange -a y 

to prep all volume groups but this also just returns

No volume groups found

Also, on the wiki page for LVM https://wiki.archlinux.org/index.php/LVM I found that you should check the System column of the

fdisk -l

for Linux LVM to determine if it is Linux LVM. In my screen shot this column only says Linux. Do you think that it is still using Linux LVM given this?

From the wiki:

Now you need to initialize these partitions so they can be used by LVM. Use fdisk -l to find out which partitions have filesystem type 'Linux LVM' and create a physical volume on them:

Last edited by sotu (2012-02-12 17:32:24)

Offline

#6 2012-02-12 17:40:41

sotu
Member
Registered: 2011-09-21
Posts: 12

Re: [closed] chroot questions, mount point proc/ does not exist [restored]

Possibly getting a head of myself but I went ahead and ran

vgcreate VolGroup00 /dev/sda1

Then I ran

vgdisplay

and I see the Volume Group VolGroup00 with Format lvm2 and some other info. Lastly I tried

mount /dev/sda1 /mnt/arch

which previously mounted the volume but did not include the proc/ folder, no I receive the message

mount: unknown filesystem type 'LVM2_member'

No luck still hmm

Last edited by sotu (2012-02-12 17:41:38)

Offline

#7 2012-02-12 18:54:07

HalfEmptyHero
Member
Registered: 2011-10-20
Posts: 16

Re: [closed] chroot questions, mount point proc/ does not exist [restored]

You shouldn't have ran vgcreate VolGroup00 /dev/sda1, that created a logical volume over /dev/sda1. I don't know enough about lvm to know how much damage that did.

Looking at your image, /dev/sda1 looks like /boot judging by the size of it. Maybe /dev/sda3 is root partition and /dev/sda4 is the home partition. If that is the case, you can mount /dev/sda3 to /mnt/arch then mount /dev/sda1 into /mnt/arch/boot. After that chroot into /mnt/arch and then run mount -t proc proc /proc.

Offline

#8 2012-02-12 19:11:08

sotu
Member
Registered: 2011-09-21
Posts: 12

Re: [closed] chroot questions, mount point proc/ does not exist [restored]

That was really helpful thank you! So far I think I've gotten a lot farther I was able to mount everything up until mounting sda1 to /boot. As you mentioned probably vgcreate VolGroup00 /dev/sda1 marked the volume as LVM2_Member because previously I could mount it and now I can not. When I try to mount it to boot I get

unknown filesystem type 'LVM2_member'

I think I need to somehow undo whatever was marked by the vgcreate that I did. I am not sure what my options are here so if anyone has any idea's that would be great. I found some articles online about it but mostly just seem to say "restored to a backup" unfortunately I didn't make a backup before creating the volume.. I suppose I wasnt careful enough, but I will see if undoing it is possible.

Offline

#9 2012-02-12 19:24:48

sotu
Member
Registered: 2011-09-21
Posts: 12

Re: [closed] chroot questions, mount point proc/ does not exist [restored]

to anyone who finds this thread in the future,

I think these will help you:
http://pissedoffadmins.com/?p=481
http://www.fedoraforum.org/forum/archiv … 64964.html

I cant post a solution because I ended up restoring my VM to a previous snapshot (I was fortunate enough to back up the whole VM before pacman -Syu updated the kernel and started this whole mess)

Thanks to everyone who tried to help in this case. As a warning, if you are going to chroot using the wiki DO NOT do what jasonwryan suggest above and "prep the volume" by creating logical groups. Once your device is marked/becomes lvm2_member you can not mount it. I'm sure jasonwryan is right that this could be necessary for other things but his statement 'It looks like you are running LVM:' might have just been a step in the wrong direction from the start (no fault of his)

Last edited by sotu (2012-02-12 19:25:57)

Offline

#10 2012-02-12 21:54:18

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

Re: [closed] chroot questions, mount point proc/ does not exist [restored]

Hi, can you change it from [closed] to [solved]? It may confuse others as closed threads are ones where users are no longer allowed to post.
Thanks.


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

Offline

Board footer

Powered by FluxBB