LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2005, 03:54 AM   #1
jespr
LQ Newbie
 
Registered: Oct 2005
Location: Denmark
Posts: 2

Rep: Reputation: 0
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
 
Old 10-12-2005, 04:22 AM   #2
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
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).

Last edited by bigjohn; 10-12-2005 at 04:28 AM.
 
Old 10-12-2005, 06:32 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,025

Rep: Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850
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.


Last edited by michaelk; 10-12-2005 at 06:44 AM.
 
Old 10-12-2005, 04:16 PM   #4
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
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 ).

That's the first time I've seen an fstab using labels like that though. Does jespr mention what distro that came with ?????
 
Old 10-12-2005, 05:07 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,025

Rep: Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850
No mention of distribution in use but it could be Fedora.

The older I get the less I know....
 
Old 10-13-2005, 02:16 AM   #6
jespr
LQ Newbie
 
Registered: Oct 2005
Location: Denmark
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you michaelk... That worked perfectly And your right again I'm using Fedora Core 4
 
Old 10-13-2005, 02:59 AM   #7
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition Problems Rogue Jedi X Linux - General 4 10-15-2005 03:25 AM
Partition problems kinger Linux - Newbie 13 01-31-2005 05:16 PM
partition problems in FC@ spookyechc Fedora 1 10-14-2004 10:35 AM
partition problems tszhim Linux - Laptop and Netbook 2 05-21-2004 11:29 AM
Partition Problems... WillBender Linux - Newbie 11 02-21-2004 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration