[Intrepid] GRUB Boot mkdir / rm permission problems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Following: (copied manually from boot screen so possibly some typo's)
mkdir: cannot create directory '/lib/modules/
later..
setting up resolvconf...
rm: cannot remove '/etc/resolvcon
/etc/rcS.
on each boot is having to make kernel modules etc and seems to get stuck with setting up networking.
Intrepid Alpha 2 upgrade from Hardy
Richard Rickwood (rickwookie) wrote : | #1 |
Connor Imes (ckimes) wrote : | #2 |
This afternoon I booted Intrepid after a few days of rest, X couldn't start and dropped me to a TTY. Tried to reconfigure X, found I had a read only filesystem, so I ran fsck and all checked out. My fstab file UUIDs still matched with blkid, so I rebooted and all was well. I saw on your UF post that you tried this a few times already, but I thought I would post my experience here.
You may need to cross reference the contents of fstab to the output of
sudo blkid
Good luck.
BC7333 (brian-abtrafco) wrote : | #3 |
>>You may need to cross reference the contents of fstab to the output of
>> sudo blkid
brian@brian-
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=7a352281-
# /dev/sda5
UUID=88d97d83-
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
brian@brian-
brian@brian-
[sudo] password for brian:
/dev/sda1: UUID="7a352281-
/dev/sda5: TYPE="swap" UUID="88d97d83-
Anything strange here? maybe SEC_TYPE="ext2" TYPE="ext3"
Connor Imes (ckimes) wrote : | #4 |
No, it looks normal (ext3 is basically ext2 with journaling added - ext3 partitions can be mounted as ext2).
Connor Imes (ckimes) wrote : | #5 |
Two more things:
1) This bug didn't have a package assigned to it, so I have filed it under "linux" which is for the kernel.
2) For future reference, please don't confirm your own bugs, it is up to others to confirm your bug for you. Since Richard and I both experienced read only file systems, I will leave the bug as Confirmed this time. Though the incarnations of this bug seem to be different, the root cause appears to be the same - the read only file system.
Thanks.
Richard Rickwood (rickwookie) wrote : | #6 |
$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# Entry for /dev/hdb1 :
UUID=7e99f2b0-
# Entry for /dev/hdb3 :
UUID=1e9446e3-
# Entry for /dev/hda1 :
UUID=2A8CB0C88C
# Entry for /dev/hda2 :
UUID=061CA0C11C
# Entry for /dev/hda3 :
UUID=EACC1DC9CC
# Entry for /dev/hdb2 :
UUID=08149de0-
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
//192.168.
$ sudo blkid
/dev/hda2: TYPE="ntfs" UUID="61CA0C11C
/dev/sda1: UUID="2A8CB0C88
/dev/sda2: UUID="061CA0C11
/dev/sda3: UUID="EACC1DC9C
/dev/sdb1: UUID="7e99f2b0-
/dev/sdb2: TYPE="swap" UUID="08149de0-
/dev/sdb3: UUID="1e9446e3-
Hmm, what's with the two entries for the same UUID (/dev/hda2 and /dev/sda2) and why are all the ntfs partitions mounted as sdxn and not hdxn? Why am I getting from blkid /dev/hda2 when if I do:
$ ls /dev/hd*
I get:
ls: cannot access /dev/hd*: No such file or directory
I know this is not a help forum, but I wonder if any of this is relevant to the bug of the read only file system.
Ryan Kavanagh (ryanakca) wrote : | #7 |
Prevents X from starting here as well.
Changed in linux: | |
importance: | Undecided → High |
Leann Ogasawara (leannogasawara) wrote : | #8 |
The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:
1) If you are comfortable installing packages on your own, the linux-image-
--or--
2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://
Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.
Ryan Kavanagh (ryanakca) wrote : | #9 |
The 2.6.27 solved the problem here, thanks, please reset to Confirmed if you are still experiencing the problem.
Changed in linux: | |
status: | Confirmed → Fix Released |
BC7333 (brian-abtrafco) wrote : | #10 |
Still getting these messages when booting 2.6.27-1 using recovery boot. Can't boot 2.6.27-2 Fully updated alpha5 as of today.
Changed in linux: | |
status: | Fix Released → Confirmed |
BC7333 (brian-abtrafco) wrote : | #11 |
Still getting these messages when booting 2.6.27-3
Montblanc (montblanc) wrote : | #12 |
I get file system mounted in read only mode even with 2.6.27-7-generic. I still can boot from recovery mode, but my whole system is screwed up. Also, /etc/blkid.tab shows different drives than /etc/fstab. Fixing drive names doesn't resolve it, but screws up drives even more (e.g.: /dev/sda became /dev/sdb, /dev/hdc became permanently /dev/sdc and so on). Please, take a look at http://
$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>
# Entry for /dev/sda3 :
UUID=1aa321e6-
/dev/sdc1 /media/sdc1 ext3 nouser,
/dev/sdb1 /media/sdb1 ext3 nouser,
/dev/sda5 /media/sda5 ext3 nouser,
/dev/sda6 /media/sda6 ext3 nouser,
/dev/sdb1 /media/sdb1 ext3 nouser,
/dev/sdb5 /media/sdb5 ext3 nouser,
/dev/sdb6 /media/sdb6 ext3 nouser,
/dev/sdb7 /media/sdb7 ext3 nouser,
# Entry for /dev/sda7 :
UUID=0e73ad5b-
/dev/hda /media/cdrom0 udf,iso9660 user,noauto,
# Entry for VirtualBox USB Proxy Service
none /proc/bus/usb usbfs devgid=
$ cat /etc/blkid.tab
<device DEVNO="0x0817" TIME="1224779494" UUID="2c6680c9-
<device DEVNO="0x0801" TIME="1224779494" UUID="2e9c0865-
<device DEVNO="0x0811" TIME="1224779494" UUID="fe026414-
<device DEVNO="0x0815" TIME="1224779494" UUID="46c11964-
<device DEVNO="0x0816" TIME="1224779494" UUID="13832e62-
<device DEVNO="0x0821" TIME="1224779494" UUID="394b39e9-
<device DEVNO="0x0825" TIME="1224772288" UUID="46c11964-
<device DEVNO="0x0826" TIME="1224772288" UUID="13832e62-
<device DEVNO="0x0827" TIME="1224772288" UUID="2c6680c9-
<device DEVNO="0x0803" TIME="1224848881" UUID="1aa321e6-
<device DEVNO="0x0805" TIME="1224779494" UUID="c107ba9f-
<device DEV...
Montblanc (montblanc) wrote : | #13 |
File System gets mounted in read only mode with older kernels as well. Upgrade to 8.10 RC made boot hang at half of the process, earlier than before.
Alex Bernea (alex-bernea) wrote : | #14 |
I don't get this error anymore. I reinstalled Hardy, then upgraded to Intrepid
Montblanc (montblanc) wrote : | #15 |
A fresh install is not a real solution, but it could let us understand the source of the problem. I'm running Kubuntu for 2 years, when I discovered Dapper, and I sincerely would rather not to reinstall.
What is really strange in this kernel is that it always says "could not find map file", although the file is there. Check your /var/log/messages too. Could this be something important to solve this read only fs problem?
Montblanc (montblanc) wrote : | #16 |
Please excuse my persistence. Googling around I found that names for IDE and SATA devices were merged since Feisty (/dev/hda being treated as /dev/sda). I got this changes only after upgrading to Intrepid, and I think it's causing more troubles than benefits. I think I've set up every file: /etc/fstab, /etc/blkid.tab, /boot/grub/
UUID=1aa321e6-
But it is just like the ro option is being forced by something I don't know anything about, but which doesn't apply in recovery mode.
Thorsten Kunz (sfire) wrote : | #17 |
I get an error very similar to what others are seeing on a fresh 8.10 Release install on my laptop.
I get this during boot (manually typed so might not be 100% accurate):
[...]
* Setting up resolvconf...
rm: cannot remove `/etc/resolvcon
/etc/rcS.
* Setting up the system clock [OK]
[...]
This only happened after I installed the resolvconf package. Before I had no errors during the bootup. Also seems not to have any other ill effects on the system. Gnome and everything else seems to be as usable as before.
Hernando Torque (htorque) wrote : | #18 |
I'm getting the same warnings as Thorsten Kunz. Fresh 8.10 install.
Brian Harkness (maestro-bwh) wrote : | #19 |
Ditto here like Thorsten... fine in recovery mode and selecting resume... but not when using regular boot option. What gives?
acacha (sergi-tur) wrote : | #20 |
More info and how I solved this problem....
At /var/log/messages there is a message That says Cannot find map file
I change to Virtual Console. Entre username an password and I remount root:
$ sudo mount -o remount,rw /
I recovered network by typing:
$ sudo dhclient eth0
I do a:
$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo apt-get autoremove
Then I tried
$ sudo dpkg-reconfigure linux-image2.
It gives me an error related with Virtual Box. something like:
run-parts: executing /etc/kernel/
* Running DKMS auto installlation service for kernel 2.6.27-7-generic
* vboxdrv (1.6.2)
vboxdrv (1.6.2): Installing module
........... (bad exit status:10)
Build failed. Installation Skipped
[fail]
I remove virtualbox:
$ sudo apt-get remove --purgue virtualbox
Another time:
$ sudo dpkg-reconfigure linux-image2.
Another error related with virtualbox. I installed VirtualBox again:
$ sudo apt-get install virtualbox
and:
$ sudo dpkg-reconfigure linux-image2.
Now everything is Ok.
Now I have other problems but the filesystem is mounted rw after reboot.
Some notes I take In catalan:
http://
Montblanc (montblanc) wrote : Re: [Bug 250189] Re: [Intrepid] GRUB Boot mkdir / rm permission problems | #21 |
I had VirtualBox installed too, and the same DKMS error messages. I removed
VirtualBox without reinstalling it and reconfigured the kernel as you've
done, but it didn't fix the problem. It seems there are troubles with file
systems other than ext3, so I installed Intrepid on another partition. I had
to install grub2 because of the 256 Inode size (Intrepid install finished
with grub error 1) and manually fix drive numbers incorrectly read by grub2.
Now everything seems to work fine, but it's been the hardest upgrade since
Dapper. I should have sticked with LTS releases.
2008/11/18 acacha <email address hidden>
> More info and how I solved this problem....
>
> At /var/log/messages there is a message That says Cannot find map file
>
> I change to Virtual Console. Entre username an password and I remount
> root:
>
> $ sudo mount -o remount,rw /
>
> I recovered network by typing:
>
> $ sudo dhclient eth0
>
> I do a:
>
> $ sudo apt-get update
> $ sudo apt-get dist-upgrade
> $ sudo apt-get autoremove
>
> Then I tried
>
> $ sudo dpkg-reconfigure linux-image2.
>
> It gives me an error related with Virtual Box. something like:
>
> run-parts: executing /etc/kernel/
> * Running DKMS auto installlation service for kernel 2.6.27-7-generic
> * vboxdrv (1.6.2)
> vboxdrv (1.6.2): Installing module
> ........... (bad exit status:10)
> Build failed. Installation Skipped
> [fail]
>
> I remove virtualbox:
>
> $ sudo apt-get remove --purgue virtualbox
>
> Another time:
>
> $ sudo dpkg-reconfigure linux-image2.
>
> Another error related with virtualbox. I installed VirtualBox again:
>
> $ sudo apt-get install virtualbox
>
> and:
>
> $ sudo dpkg-reconfigure linux-image2.
>
> Now everything is Ok.
>
> Now I have other problems but the filesystem is mounted rw after reboot.
>
> Some notes I take In catalan:
>
>
> http://
>
> --
> [Intrepid] GRUB Boot mkdir / rm permission problems
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
acacha (sergi-tur) wrote : | #22 |
Weird problem...
My system stills have problems after desinstalling virtualbox a reinstall and reconfiguring kernel too...
The weird think is that sometimes boots up correctly and sometines not. I quit at /boot/grub/menu.lst the quiet option. If during boot I changed to Virtual Consoles: Crtl+Alt+F1 an Ctrl+Alt+F2 the system boots whithout read only problem. But if I boot without doing nothing then I have the read only problem....
I see during boot a problem with mount (It says something like "Note that one no really mount a device....."). I think this is the help message of mount command when you miss some parameters. How can I see the boot messages? is there any log?
acacha (sergi-tur) wrote : | #23 |
I manage to see where is the mount error.
The problem raised at file /etc/rcS.
I put some echo lines to debug and some "read CONTINUE" to stop execution....
It seems theres is and Incorrect use of mount when executing:
mount -n -t tmpfs -omode=
and
mount -n -t usbfs -odevgid=
and also
mount -n -t tmpfs -omode=
I all this examples seems that DEVNAME parameter is missing.... I read somewhere that /lib/init/
Then I've gone to /etc/init.d and fount two files mountkernfs:
mountkernfs.sh
and
mountkernfs.
It seems that during upgrading, I say NO to reemplacing my modified mountkernfs.sh file (This modification I think that is related with Virtual Vox if I remember well). I found that at upgrade log:
$ sudo cat /var/log/
My solution:
$ cd /etc/init.d
$ sudo mv mountkernfs.
acacha (sergi-tur) wrote : | #24 |
I also have to change
$ cd /etc/init.d
$ sudo mv mountdevsubfs.
Amit Kucheria (amitk) wrote : | #25 |
It seems this bug was a result of saying 'NO' to change to a modified version of mountkernfs.sh during a dist-upgrade. Can you confirm this?
Marking the bug as Invalid because of it. Please reopen it if you feel the issue is still not addressed. In any case, this bug should be against 'initscripts' rather than the kernel.
If unfortunately it seems this bug is still an issue, can you confirm this issue exists with the most recent Jaunty Jackalope 9.04 release - http://
Changed in linux (Ubuntu): | |
importance: | High → Undecided |
status: | Confirmed → Invalid |
I'm also getting:
mkdir: cannot create directory '/lib/modules/ 2.6.26- 4-generic/ volatile/ ':read only file system
Also when it states Setting up Networking - it will wait for about a minute or until I press any key before continuing to boot.