fakeraid partition permissions

Asked by path

Description: Ubuntu lucid (development branch)
Release: 10.04
Linux apth-desktop 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010 x86_64 GNU/Linux
grub-pc 1.98-1ubuntu5

Installed on fakeraid partition. Booted into grub2 menu. Selected /dev/mapper/...R1 installation and booted. Initialization hangs/freezes on init scripts, cups, acpi, lm-sensors...

Rebooted, select /dev/mapper/...R1 (recovery) in grub2 menu. Selected netroot in recovery menu. Ran startx command. Works good. Filled out this bug report.

As a side note. I also installed 10.04 development branch on an ide disc. That one works up until I get a beige screen with black vertical lines? (More on that some other time). Before that happened, I noticed when mounting my /dev/mapper...R1 partition into the ide 10.04 installation, the permissions of the /dev/mapper...R1 mount are set to drwx --- ---. While my other discs have group and other read execute permissions?

How can I change the permissions of my mapped fakeraid partition?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
path
Solved:
Last query:
Last reply:

This question was originally filed as bug #570865.

Revision history for this message
path (patrick-harzheim) said :
#1

It's a little of both.

In that the isw fakeraid partition is mounted with root owner ship is a litttle bit of a bug. Alot of init processes run as different users!

But in asking how to change those permissions, makes it a good question.

Any ideas?

Revision history for this message
path (patrick-harzheim) said :
#2

Redundant installation test. Rebooting on partitioning in ubiquity, rebooting on formating in disk utility (palimpsest). Resulting installation on fakeraid partition hangs in normal boot through grub 2. With 'normal boot' from recovery boot: "cannot CD into /home/*user*" upon entering user name and password. Netroot recovery with 2 startx commands; the first failed; get's me to this comment.

Revision history for this message
path (patrick-harzheim) said :
#3

Booted into spare 40Gb IDE installation, of ubuntu 10.04 development branch. Mounted Fakeraid partition and additional sata drive through places menu with resulting permissions:

$> ls -l /media
drwxr-xr-x 24 root root 4096 2010-04-30 11:04 x-y-z-u-v
drwx------ 22 root root 4096 2010-04-30 15:54 fake

There again, how does fakeraid have drwx------

Revision history for this message
path (patrick-harzheim) said :
#4

Plain test to eliminate the possibility. Changed /etc/fstab options for fakeraid partition to include user option. Booting into non-recovery mode hangs on init scripts. Booting into recovery mode and selecting normal boot. "Can't cd into /home/*user* directory on login. Booting into recovery and selecting netroot, then startx (Just needed to startx once).

File system root icon appears twice in places menu and twice on the desktop. R-clicking the first of the items and selecting properties shows the property tabs. Selecting the second filesystem root icon on the desktop makes the properties dialog disappear. This behavior can be reproduced with other combinations of icon interactions. Including those in the places menu and in the computer:/// location in nautilus.

Removing the fakeraid options in /etc/fstab and rebooting falls back to the previous system state. Where the file-system icons interactions are well-conditioned.

Revision history for this message
path (patrick-harzheim) said :
#5

Attempt 10.04 developer release installation with /boot partition in fakeraid disk. In spite of partitioning fakeraid disk into 3 parts. /boot, /, and swap. System behavior did not change. netroot/startx for use. Mounting of '/' partition in separate IDE installation results in the said permissions.

Note:
Perhaps if /boot is in separate disk? '/' Would have the same permissions.

Revision history for this message
path (patrick-harzheim) said :
#6

Installation 10.04 Release onto boot, root, swap partitioning scheme. Installation through ubiquity on the partitions proceeded smoothly. I needn't reboot to commit the partition changes, nor for formating. Ubiquity installed on the partitions right away.

Booting into installation from grub2 hanged on init scripts. As was development release of 10.04.

Selecting recovery in grub 2 menu. Leads to recovery menu. Selecting normal boot from recovery, startx, "can't cd into /home/*user*/". Selecting netroot, provides command line for 'startx' command. Works to a few degrees.

Rebooting into spare IDE installation. Mounted /boot, '/' and additional sata disk.
$>ls -l /media
drwxr-xr-x 4 root root 4096 2010-05-02 00:41 x-y-z-u-v
drwxr-xr-x 24 root root 4096 2010-04-30 11:04 k-l-m-n-o
drwx------ 22 root root 4096 2010-05-02 00:40 fake

Key:
fake is ext 4; x-y-z-u-v <--> /boot : ext2!

Revision history for this message
path (patrick-harzheim) said :
#7

Relevant to key note, formating '/' root partition to ext3 or ext2 did not improve normal boot from gub2. Initialization hang/freeze on init scripts. Rebooting to IDE spare installation, mounted root and boot partitions.

$>ls -l /media/
drwxr-xr-x 4 root root 4096 2010-05-02 03:01 x-y-z-u-v
drwx------ 22 root root 4096 2010-05-02 03:01 fake

Idea:
Part boot, root, home and swap. Recurs problem, invariably of file system type.

Reflection:
grub1 didn't help any, hung on init scripts. What is the reason for those permissions on that fakeraid partition?

Revision history for this message
path (patrick-harzheim) said :
#8

Successfully booted into 10.04 release installation on fakeraid disk. In effect, chmod 755 on root partition of installation committed the permissions.

As a solution, before booting into the installation, mount the root partition on the fakeraid device into /media. Then chmod 755 /media/*fakeraid*root*partition.

Unmount the drive and reboot into the installation.

Revision history for this message
path (patrick-harzheim) said :
#9

10.04 On.

Boot from 10.04 release CD.
Select "install Ubuntu"

At the partitioning screen, choose to use the entire raid device.
If You Proceed with the installation. There will be an error when installing the OS. Having something to do about ubiquity not being able to erase the previous system files.

Quit the installation and wait for the desktop to load.
Go to:: System > Administration > Disk Utility

Select the raid device, notice the partitioning scheme left on the device by ubiquity. Format the root partition to Ext4 and the swap partition to swap.

When the formating is completed. Reboot into the installation CD once more, choosing to install Ubuntu. However, manually specify the partitioning scheme this time.

Ubiquity made a partitioning scheme of '/' root with ext4 format and a swap. Manually input this information. Proceed with the installation.

When the installation completes, restart the system and remove the CD. At the grub 2 menu. Select the (recovery) of this installation. At the recovery menu choose the 'netroot' option.

In the netroot prompt
Make a directory in /media
#>mkdir /media/fake

Find that Ext4 root partition
#>ls -l /dev/mapper/*1
(It should be that one considering Ubiquities default partitioning scheme.)

#>mount /dev/mapper/***1 /media/fake
(make sure you replace ***1 with the root partition name on your fakeraid device)

Change the partitions permissions on mount.
#>chmod 755 /media/fake
(If you 'ls -l' the /media directory before this command, you'll notice the permissions on the 'fake' folder are 700 or drwx --- ---; 'ls -l' /media after the chmod command. The permissions should be drwx r-x r-x)

Un-mount the fakeraid root partition.
#>umount /media/fake
(You can re-mount it if you like, the permissions will be persistent. )

reboot the system.
#>reboot

In the grub2 menu select the non-recovery 10.04 installation.

This work around with the 10.04 installation CD, installs Ubuntu 10.04 on a fakeraid device.