Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Remount boot with -o notail option in chrooted shell?
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
saint_abroad
n00b
n00b


Joined: 08 Nov 2002
Posts: 53
Location: England, UK

PostPosted: Thu Nov 28, 2002 2:17 pm    Post subject: Remount boot with -o notail option in chrooted shell? Reply with quote

I have had to restart installation a number of times because in spite of mounting the reiserfs boot partition with:
mount -o notail /dev/hda2 /mnt/gentoo/boot
when I enter the chrooted shell and get to stage 3 system (after emerge system) the boot partition is now mounted without the notail option, and this prevents grub from installing.
I tried to unmount the boot partition with:
umount /dev/hda2
but then all the mounts seem to get unmounted, and so I have to restart installation.
I am clearly doing something wrong here, so if anyone could tell me how to remount the reiserfs boot partition with the notail option, it would be much appreciated.
Thanks,
SaiNT AbroAD
_________________
I work for fun. But only as a means to an end.
Back to top
View user's profile Send private message
sergio
Apprentice
Apprentice


Joined: 11 Jun 2002
Posts: 265
Location: Clermont Ferrand, France

PostPosted: Thu Nov 28, 2002 3:08 pm    Post subject: Reply with quote

It is better for the boot partition to use ext2 filesystem, all the users have this problem resolve it using this way...

The /boot partition was very small (32 Mbytes on my system) and there are very few writtings on so there are not necessary to use a journalised fs on /boot

If you choose to use ext2 on your /boot don't forget to compile-in the ext2 support in your kernel (not as module)

Greetings from France
Back to top
View user's profile Send private message
saint_abroad
n00b
n00b


Joined: 08 Nov 2002
Posts: 53
Location: England, UK

PostPosted: Thu Nov 28, 2002 4:11 pm    Post subject: But.... Reply with quote

Well I have already formatted my boot partition as reiserfs, and since I am fed up with bootstrapping and emerging the system, I will just have to find a way to use reiserfs with grub. (Unless somebody knows how to change partition to ext2 before kernel configuration without restarting...)

PS. I have heard of ppl using reiserfs with grub in 1.4rc1 before...
_________________
I work for fun. But only as a means to an end.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Nov 28, 2002 7:38 pm    Post subject: Re: But.... Reply with quote

saint_abroad wrote:
Unless somebody knows how to change partition to ext2 before kernel configuration without restarting...

Assuming /boot is a separate partition, can't you just run mke2fs on it? You could copy all the files on it to somewhere safe on the root partition first, if you wish to preserve anything in there.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
saint_abroad
n00b
n00b


Joined: 08 Nov 2002
Posts: 53
Location: England, UK

PostPosted: Fri Nov 29, 2002 12:36 am    Post subject: Maybe... Reply with quote

I'm new to linux so I wouldn't know. Maybe that would work - but this isnt an issue anymore as I tried to umount outside the chrooted shell in a second virtual terminal and mount again inside the chrooted shell - which resulted in the other mounts disappearing (which were still there after umount except for the boot partition) from the chrooted shell.

I tried to look for info on resetting the mounts inside the chrooted shell to no avail, even exiting the chrooted shell and rebooting the computer then re-entering the chrooted shell but that still didnt restore the mounts :( . I couldnt even rebuild the mounts because I got (strange [to me anyways]) error messages.

Guess I have to repress my stubborness and accept an ext2 boot partition (but I sooo wanted all partitions to be reiserfs... :cry: ). I'm still want reiserfs tho, so if anyone has managed to setup grub+reiserfs+1.4rc1 I'd be happy to hear about how you did it.

SaiNT_AbroAD
_________________
I work for fun. But only as a means to an end.
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Fri Nov 29, 2002 4:53 am    Post subject: Re: Maybe... Reply with quote

You can format /boot again with reiserfs after the first boot (real boot, not chroot).

saint_abroad wrote:


Guess I have to repress my stubborness and accept an ext2 boot partition (but I sooo wanted all partitions to be reiserfs... :cry: ). I'm still want reiserfs tho, so if anyone has managed to setup grub+reiserfs+1.4rc1 I'd be happy to hear about how you did it.

SaiNT_AbroAD
Back to top
View user's profile Send private message
saint_abroad
n00b
n00b


Joined: 08 Nov 2002
Posts: 53
Location: England, UK

PostPosted: Fri Nov 29, 2002 9:33 am    Post subject: Ooooo... Reply with quote

I assume I would do this sort of thing:
mkdir /tmp/mybootpartition
cp /boot /mybootpartition
umount /dev/hda2
mkreiserfs /dev/hda2
mount -o notail /dev/hda2
cp /mybootpartition /boot

and everything should work ok?
_________________
I work for fun. But only as a means to an end.
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Fri Nov 29, 2002 4:58 pm    Post subject: Re: Ooooo... Reply with quote

If you use "cp" without the -R option, it won't copy the subdirectories.
You should do
Code:

cp -R /boot /tmp
umount /dev/hda2
mkreiserfs /dev/hda2
mount -o notail /dev/hda2 /boot
cp -R /tmp/boot/* /boot


After that, you will have to install grub again (if it was installed in /dev/hda2).

saint_abroad wrote:
I assume I would do this sort of thing:
mkdir /tmp/mybootpartition
cp /boot /mybootpartition
umount /dev/hda2
mkreiserfs /dev/hda2
mount -o notail /dev/hda2
cp /mybootpartition /boot

and everything should work ok?
Back to top
View user's profile Send private message
saint_abroad
n00b
n00b


Joined: 08 Nov 2002
Posts: 53
Location: England, UK

PostPosted: Fri Nov 29, 2002 8:23 pm    Post subject: Thanks Reply with quote

Thanks, Ill try that,
SaiNT
_________________
I work for fun. But only as a means to an end.
Back to top
View user's profile Send private message
vers_iq
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 264

PostPosted: Fri Nov 29, 2002 8:57 pm    Post subject: Reply with quote

why not just remount it,
Code:
mount /dev/hdXn -o remount,notail /mount/point
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