LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   partition problems (https://www.linuxquestions.org/questions/linux-newbie-8/partition-problems-372183/)

jespr 10-12-2005 03:54 AM

partition problems
 
This is my fstab
Code:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                /                      ext3    defaults        1 1
LABEL=/boot            /boot                  ext3    defaults        1 2
/dev/devpts            /dev/pts                devpts  gid=5,mode=620  0 0
/dev/shm                /dev/shm                tmpfs  defaults        0 0
/dev/proc              /proc                  proc    defaults        0 0
/dev/sys                /sys                    sysfs  defaults        0 0
LABEL=/video            /video                  jfs    rw,auto,user,async 0 0
LABEL=SWAP-hdb3        swap                    swap    defaults        0 0
/dev/hdd                /media/cdrom            auto    pamconsole,exec,noauto,managed 0 0

I can't write to the /video partiion with my normal user... how can I change that

bigjohn 10-12-2005 04:22 AM

Re: partition problems
 
Quote:

Originally posted by jespr
This is my fstab
Code:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                /                      ext3    defaults        1 1
LABEL=/boot            /boot                  ext3    defaults        1 2
/dev/devpts            /dev/pts                devpts  gid=5,mode=620  0 0
/dev/shm                /dev/shm                tmpfs  defaults        0 0
/dev/proc              /proc                  proc    defaults        0 0
/dev/sys                /sys                    sysfs  defaults        0 0
LABEL=/video            /video                  jfs    rw,auto,user,async 0 0
LABEL=SWAP-hdb3        swap                    swap    defaults        0 0
/dev/hdd                /media/cdrom            auto    pamconsole,exec,noauto,managed 0 0

I can't write to the /video partiion with my normal user... how can I change that

Well I have to say, thats rather a curious looking fstab.

It looks, for all the world, like an fstab thats been written as a default, but where you're supposed to change stuff by hand. Or stuff that you've somehow managed to mix up.

I could easily be wrong, but the devices are listed incorrectly i.e. the system needs to know the device, then mount point, then the format etc etc

So it depends on what hdd you've got it all installed on, heres my fstab
Quote:

# <fs> <mountpoint> <type> <opts> <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot ext2 noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/hda4 /home ext3 noatime 0 1
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 auto,users 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0

# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
/dev/hdc /media/cdrecorder auto user,exec,noauto,managed 0 0
/dev/hdb /media/cdrecorder1 auto user,exec,noauto,managed 0 0
So if you look it identifies the device i.e. /dev/hda1 then the mount point, type etc etc.

But the device is telling the system where to find the partition, your's doesnt seem to do that unless theres another file linked to that that them tells the system where to find the stuff that you have "labelled".

Having labels like that is normally something that you'd find in the bootloader config file.

So the device nonclamenture depends on a few things, like the number of hard drives, what type they are (as I understand that some distros name things like SATA hdd's differently).

A single hdd system such as mine, the main hard drive is called /dev/hda, but the partitions, as you can see from my fstab are then suffixed as hda1, hda2, etc etc. shm and proc and the like are a little different (and distro dependant).

then the other removeable media stuff, well the naming conventions also seem to be distro dependant. (if you notice, my system see's the devices as additional hard drives - whereas on a multi hard drive system, hdb and hdc would be used for the extra hard drives).

michaelk 10-12-2005 06:32 AM

Your fstab is fine. Using volume labels for device IDs in the fstab file is legal.

Check the permissions of /video directory. Even though the partition is mounted rw without the correct permissions a regular user maybe unable to write to it.

See man pages chmod

I assume the /video partition is being mounted and you can access it via root.


bigjohn 10-12-2005 04:16 PM

Quote:

Originally posted by michaelk
Your fstab is fine. Using volume labels for device IDs in the fstab file is legal.
-----%<-----

Is it by damn! Of course I bow to your superior knowledge michaelk (Ha! it ain't hard to know more than me - my linux knowledge can be written on the back of a very small postage stamp :D ).

That's the first time I've seen an fstab using labels like that though. Does jespr mention what distro that came with ?????

michaelk 10-12-2005 05:07 PM

No mention of distribution in use but it could be Fedora.

The older I get the less I know....

jespr 10-13-2005 02:16 AM

Thank you michaelk... That worked perfectly :) And your right again I'm using Fedora Core 4

mjjzf 10-13-2005 02:59 AM

But I agree - it was like nothing I have seen.
But then, when I prefer distributions which do things like they were done years and years ago, I sometimes get disoriented...

Hej, dansker. Vi er ikke så mange her...


All times are GMT -5. The time now is 09:15 AM.