I seem to have the permissions wrong in fstab. On boot I do have an icon
on the desktop for the LVM volume, which can be browsed as root, but not
as a user.
I want read/write permissions to the LVM volume as user thufir (or any
user, really). Can this be done?
arrakis ~ #
arrakis ~ # fdisk /dev/hda
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1191215358108+ 83 Linux
/dev/hda219131925 104422+ 83 Linux
/dev/hda31926972962685630 8e Linux LVM
Command (m for help): q
arrakis ~ #
arrakis ~ # fdisk /dev/hdb
The number of cylinders for this disk is set to 59582.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hdb: 30.7 GB, 30750031872 bytes
16 heads, 63 sectors/track, 59582 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 203 102280+ 83 Linux
/dev/hdb2 2042109 960624 82 Linux swap /
Solaris
/dev/hdb32110 5957928964880 83 Linux
Command (m for help): q
arrakis ~ #
arrakis ~ # cat lvm.txt
#load device module
modprobe dm-mod
#change the volumes that exist to active
vgchange -ay
#mount the logical partition
mkdir -p /mnt/VolGroup00/LogVol00
mount /dev/VolGroup00/LogVol00 /mnt/VolGroup00/LogVol00
arrakis ~ #
arrakis ~ # cat /etc/fstab
/dev/hdb1/boot ext2defaults1 2
/dev/hdb2noneswapsw 0 0
/dev/hdb3/ ext3noatime 0 1
none/proc procdefaults 0 0
none/dev/shm tmpfs defaults 0 0
/dev/VolGroup00/LogVol00/mnt/VolGroup00/LogVol00ext3
users,rw0 0
arrakis ~ #
arrakis ~ # su thufir
[EMAIL PROTECTED] /root $ cd
[EMAIL PROTECTED] ~ $
[EMAIL PROTECTED] ~ $ ll /mnt/VolGroup00/LogVol00/home/thufir/
ls: cannot open directory /mnt/VolGroup00/LogVol00/home/thufir/:
Permission denied
[EMAIL PROTECTED] ~ $
[EMAIL PROTECTED] ~ $ whoami
thufir
[EMAIL PROTECTED] ~ $
[EMAIL PROTECTED] ~ $ ll /home/thufir/Desktop/
total 0
[EMAIL PROTECTED] ~ $
[EMAIL PROTECTED] ~ $
[EMAIL PROTECTED] ~ $ date
Mon Oct 8 01:16:52 PDT 2007
[EMAIL PROTECTED] ~ $
[EMAIL PROTECTED] ~ $
arrakis ~ #
arrakis ~ # fdisk /dev/hda
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1191215358108+ 83 Linux
/dev/hda219131925 104422+ 83 Linux
/dev/hda31926972962685630 8e Linux LVM
Command (m for help): q
arrakis ~ #
arrakis ~ # fdisk /dev/hdb
The number of cylinders for this disk is set to 59582.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hdb: 30.7 GB, 30750031872 bytes
16 heads, 63 sectors/track, 59582 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 203 102280+ 83 Linux
/dev/hdb2 2042109 960624 82 Linux swap /
Solaris
/dev/hdb32110 5957928964880 83 Linux
Command (m for help): q
arrakis ~ #
arrakis ~ # cat lvm.txt
#load device module
modprobe dm-mod
#change the volumes that exist to active
vgchange -ay
#mount the logical partition
mkdir -p /mnt/VolGroup00/LogVol00
mount /dev/VolGroup00/LogVol00 /mnt/VolGroup00/LogVol00
arrakis ~ #
arrakis ~ # cat /etc/fstab
/dev/hdb1/boot ext2