You are not logged in.

#1 2011-11-18 05:17:54

zhulianhua
Member
Registered: 2011-09-01
Posts: 8

/usr is not mounted, This is not supported!

Hello, guys! My arch have a anoying problem. The /usr is not mounted in the boot time.
Here is the boot message (form /var/log/boot):

ri Nov 18 20:10:46 2011: /usr is not mounted. This is not supported.
Fri Nov 18 20:10:46 2011: :: Adjusting system time and setting kernel timezone    [BUSY]    [DONE] 
Fri Nov 18 20:10:46 2011: :: Starting UDev Daemon    [BUSY]    [DONE] 
Fri Nov 18 20:10:46 2011: :: Triggering UDev uevents    [BUSY]    [DONE] 
Fri Nov 18 20:10:46 2011: :: Waiting for UDev uevents to be processed    [BUSY] udevd[395]: failed to execute '/usr/sbin/alsactl' '/usr/sbin/alsactl restore 1': No such file or directory
Fri Nov 18 20:10:46 2011: 
Fri Nov 18 20:10:46 2011: udevd[390]: failed to execute '/usr/sbin/alsactl' '/usr/sbin/alsactl restore 0': No such file or directory
Fri Nov 18 20:10:46 2011: 
Fri Nov 18 20:10:46 2011: udevd[397]: failed to execute '/usr/sbin/alsactl' '/usr/sbin/alsactl restore 29': No such file or directory
Fri Nov 18 20:10:46 2011: 
Fri Nov 18 20:10:46 2011:    [DONE] 
Fri Nov 18 20:10:46 2011: :: Bringing up loopback interface    [BUSY]    [DONE] 
Fri Nov 18 20:10:46 2011: :: Checking Filesystems    [BUSY] root: clean, 11912/768544 files, 280476/3072423 blocks
Fri Nov 18 20:10:46 2011: /dev/sda3: recovering journal
Fri Nov 18 20:10:46 2011: /dev/sda3: clean, 80785/8519680 files, 16036998/34077440 blocks (check in 2 mounts)
Fri Nov 18 20:10:46 2011: /dev/sda5: recovering journal
Fri Nov 18 20:10:46 2011: /dev/sda5: clean, 501360/1966080 files, 4492111/7863552 blocks
Fri Nov 18 20:10:46 2011: usr: recovering journal
Fri Nov 18 20:10:46 2011: usr: clean, 103330/1283632 files, 684503/5126656 blocks
Fri Nov 18 20:10:46 2011:    [DONE] 
Fri Nov 18 20:10:46 2011: :: Remounting Root Read/Write    [BUSY]    [DONE] 

I know why that happens. But I don't know how to fix it.
The reason is the partition name has been changed . That is:
the the /usr mount point  /dev/sda7 has been changed to /dev/sda6, because I rewrote  the partition table from Windows Xp using a tool named
TestDisk . I think it changed my partition table like this:

Partition  index                    name                     mount_point         changed name
1                               /dev/sda1                 /                       /dev/sda1
2                               /dev/sda2                  not mounted         /dev/sda2
3                               /dev/sda5                 /home                 /dev/sda3
4                               /dev/sda6                 /opt                   /dev/sda5
5                               /dev/sda7                 /usr                   /dev/sda6
.
.
.

So the /home , /opt were mounted on the wrong directory. I fixed this by editing  the /etc/fstab.
like this
Right (after rewriting partition table):

le 
root@paradise Fred # cat /etc/fstab
# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
tmpfs		/tmp	tmpfs	nodev,nosuid	0	0
/dev/sda3 /home ext4 defaults 0 1
/dev/sda5 /opt ext4 defaults 0 1
LABEL=root / ext4 defaults 0 1
LABEL=swap swap swap defaults 0 0
LABEL=usr /usr ext4 defaults 0 1

Wrong [before rewriting parition table ]:

root@paradise Fred # cat /etc/fstab.bak 
# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
tmpfs		/tmp	tmpfs	nodev,nosuid	0	0
/dev/sda5 /home ext4 defaults 0 1
/dev/sda6 /opt ext4 defaults 0 1
LABEL=root / ext4 defaults 0 1
LABEL=swap swap swap defaults 0 0
LABEL=usr /usr ext4 defaults 0 1

Since there is no /usr mount item in the /etc/fstab, I can't fixed this /usr mounting  problem at boot time.
Anybody can help me?
Regards!

Offline

#2 2011-11-18 05:38:08

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: /usr is not mounted, This is not supported!

There may be two issues here. The output saying

/usr is not mounted. This is not supported.

is due to initscripts doing exactly that (not supporting a separate /usr partition). There was some discussion on the mailing list about this not too long ago. It starts here.

If that's the source of your problems moving /usr onto / should fix things.

If there's actually a problem with your fstab you can mount your partitions using a livecd and make edits

Offline

#3 2011-11-18 05:50:08

zhulianhua
Member
Registered: 2011-09-01
Posts: 8

Re: /usr is not mounted, This is not supported!

Thanks , mcmillan.
My /usr did use a separate parition.  The system can find the right place to mount /usr, even it  print a error message at boot time.
That is to say, except that error message, everything seems fine. In fact, the problem started  half of a month ago, but i can use the
system normally. I can't fixed this by editing the fstab , as i have mentioned above, because there is no /usr mounting item in the fstab.
Do you mean I can add a item mount /usr int /dev/sda6

Offline

#4 2011-11-18 13:41:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: /usr is not mounted, This is not supported!

Offline

#5 2011-11-18 15:39:12

snaip
Member
Registered: 2009-08-20
Posts: 21

Re: /usr is not mounted, This is not supported!

So.. did your disk labels change too? Because if they did, your fstab definitions wont work. I'd say you got two options;

1) Replace label definitions in fstab with true device paths

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
tmpfs		/tmp	tmpfs	nodev,nosuid	0	0
/dev/sda3 /home ext4 defaults 0 1
/dev/sda5 /opt ext4 defaults 0 1
/dev/sda1 / ext4 defaults 0 1
LABEL=swap swap swap defaults 0 0
/dev/sda6 /usr ext4 defaults 0 1'

2) Relabel your partitions using the e2label program;

e2label /dev/sda1 root
e2label /dev/sda6 usr

If you are unsure (and I think you are) of what partitions are where, you can use the parted program to check what partitions you have. Type "p" to print all partitions and "q" to exit parted. Check the swap too!

$ parted
WARNING: You are not superuser.  Watch out for permissions.
GNU Parted 3.0
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p                                                                
Model: ATA TOSHIBA MK1637GS (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 1      32.3kB  98.7MB  98.7MB  primary   ext2
 2      98.7MB  50.1GB  50.0GB  primary   ntfs            boot
 3      50.1GB  70.1GB  20.0GB  primary   ext4
 4      70.1GB  160GB   89.9GB  extended
 5      70.1GB  73.1GB  3002MB  logical   linux-swap(v1)
 6      73.1GB  160GB   86.9GB  logical   ext4

(parted) q                                                                
$ 

In the above example /boot is sda1, / is sda3, swap is sda5 and /home is sda6

Last edited by snaip (2011-11-18 15:41:11)

Offline

Board footer

Powered by FluxBB