You are not logged in.

#1 2009-02-08 16:35:24

Berticus
Member
Registered: 2008-06-11
Posts: 731

[FIXED-ish] Updating: Pacman wants to remove /usr/

error: cannot remove file '/usr/': Read-only file system
error: could not commit removal transaction
error failed to commit transaction (cannot remove all files for package)
Errors occurred, no packages were upgraded

Not sure why pacman wants to remove /usr... Also, /usr is not read-only, it's mounted as rw.

Last edited by Berticus (2009-02-08 20:15:45)

Offline

#2 2009-02-08 16:57:40

Slammer64
Member
From: Ozark Mountains of Missouri
Registered: 2007-07-28
Posts: 113

Re: [FIXED-ish] Updating: Pacman wants to remove /usr/

From the look of it, you have a problem, take a look at line 1: error: cannot remove file '/usr/': Read-only file system. Read only filesystem might mean you don't have the partition that /usr/ is on mounted or you need to do an fsck on your drive, check your fstab too.


Somewhere, just out of sight, the Penguins are gathering!

Offline

#3 2009-02-08 17:12:05

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: [FIXED-ish] Updating: Pacman wants to remove /usr/

/usr is mounted (as read-write), fsck was performed, fstab is fine. Still, the problem persists

Offline

#4 2009-02-08 19:06:19

Slammer64
Member
From: Ozark Mountains of Missouri
Registered: 2007-07-28
Posts: 113

Re: [FIXED-ish] Updating: Pacman wants to remove /usr/

Well, I'm at a loss for now, maybe another user or dev can help?


Somewhere, just out of sight, the Penguins are gathering!

Offline

#5 2009-02-08 19:41:22

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [FIXED-ish] Updating: Pacman wants to remove /usr/

post the command and the full output. You could also use the -v for more verbose output

Offline

#6 2009-02-08 20:15:08

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: [FIXED-ish] Updating: Pacman wants to remove /usr/

Okay, so I managed to somehow fix it after rebooting a million times (both soft reboot and hard reboot). Ran into a few mounting problems, ran into a few kernel panics, finally fixed all of the problems, but I don't know how/why. I would really like to know why everything was acting up so I can prevent it. So I'm going to detail everything that happened.

I decided I would like to game again, but not have to reboot into Windows. So to get a quick fix of my gaming dose, I decided to install a few games on Linux, and I added the gaming repo to my pacman.conf. I also wanted to use sage instead of excel, matlab, maple, and mathematica [and magma]. However, installing a few of my games and sage filled both /opt, /usr and /var to 100%. I was able to increase /opt and /usr easily because they were jfs. /var required me to go into my rescue cd. Then /usr ran out of space again, so I had to increase that again (/usr is now really fragmented, which I am not happy about). After I installed sage and most of the games I wanted, I decided to upgrade my system.

That's when I ran into the issue of removing '/usr/'. I tried a couple of times, hoping that it would fix itself, and then posted here. I installed a few more games without a problem, tried upgrading again with no success. Then I rebooted, Reboot process was fine. Still ran into the issue though. Tried upgrading again, and some packages upgraded partially (complained about not being able to write), most ran into the removing '/usr/' issue. I tried to startx, but ran into configuration errors, and I couldn't use my keyboard or mouse, so I hard rebooted.

Reboot went fine, I tried upgrading again. Pacman complained about files already existing, so I backed those up, and removed them. Tried upgrading again, kernel upgrade warned about not being mounted. So I tried to mount /boot, and it complained that ext2 was not a recognized filesystem. So I rebooted, ran into some module errors. I booted into the rescue CD, put back the modules I had backed up, and rebooted into the system. It booted up just fine. I upgraded, and it worked, except /boot still had trouble mounting. I booted into the rescue CD again, mounted the root filesystem into /mnt and the /boot partition into /blah, and copied the contents of /mnt/boot to /blah. Unfortunately, I forgot that would also override my grub configurations. So it ran into a kernel panic. After a few more reboots, I finally fixed the problem by replacing menu.lst with menu.lst~, and linking grub.conf to menu.lst. Now everything is working fine.

The issues I want to prevent from happening again is /usr mounted as read-write, but recognized as read-only, ext2 not being recognized (I can now mount /boot just fine). I would also like to know if it's possible that some of the packages weren't fully upgraded. If so, how can I get pacman to find them and re-install those packages.

Offline

Board footer

Powered by FluxBB