Author Topic: mounting a reiserfs partition  (Read 1956 times)

Commander

  • Member
  • **
  • Posts: 242
  • Kudos: 52
mounting a reiserfs partition
« on: 6 March 2005, 18:36 »
hey guys,
i was running out of space in my main parition(/) so i decided to reize one of my fat32 partitions and create a new reiserfs parition for some of the bigger applications in the linux partition.  (i didnt know how to use any of the linux applications, so i used partitionmagic.  it went well).  but now if i try to mount it, it goes nutty.  i've been running around google for a while now but none of the proposed solutions worked.
i tried adding this to fstab
Code: [Select]
/dev/hda8            /apps                reiserfs   defaults   0 0  but it gave up with
Code: [Select]
mount: wrong fs type, bad option, bad superblock on /dev/hda8,
       or too many mounted file systems
if i try manually (because it worked for other people)
Code: [Select]
linux:/ # mount -t reiserfs /dev/hda8 /apps
mount: wrong fs type, bad option, bad superblock on /dev/hda8,
       or too many mounted file systems
as you can see, the same thing happens.
here's what i get with fdisk
Code: [Select]
linux:/ # fdisk -l

Disk /dev/hda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1216     9767488+   c  W95 FAT32 (LBA)
/dev/hda2            1217       19929   150312172+   f  W95 Ext'd (LBA)
/dev/hda5            1217        2432     9767488+  83  Linux
/dev/hda6            2433        6080    29302528+   b  W95 FAT32
/dev/hda7            6081        8963    23157666    b  W95 FAT32
/dev/hda8            8964        9728     6144831   83  Linux
/dev/hda9            9729       19819    81055926    b  W95 FAT32
/dev/hda10          19820       19929      883543+  82  Linux swap / Solaris
 this is really bugging me as i need the extra space.  any help on this will be greatly appreciated.
Ballmer needs a firm kick in the ass.... (since he has no balls)

WMD

  • Global Moderator
  • Member
  • ***
  • Posts: 2,525
  • Kudos: 391
    • http://www.dognoodle99.cjb.net
Re: mounting a reiserfs partition
« Reply #1 on: 6 March 2005, 19:30 »
You have to format the ReiserFS partition.  P. Magic won't do this.
My BSOD gallery
"Yes there's nothing wrong with going around being rude and selfish, killing people and fucking married women, but being childish is a cardinal sin around these parts." -Aloone_Jonez

Commander

  • Member
  • **
  • Posts: 242
  • Kudos: 52
Re: mounting a reiserfs partition
« Reply #2 on: 6 March 2005, 21:05 »
thanks for the hint! i formatted it with yast and added this line in the fstab file
Code: [Select]
/dev/hda8            /apps                ext2       acl,user_xattr,users,gid=users,exec 1 2 now the only problem is that a normal user (me) have no write permission.  is it possible to have write permission (and hopefully execution) in that drive as i do in my windows fat32 partitions?
thanks
Ballmer needs a firm kick in the ass.... (since he has no balls)

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
Re: mounting a reiserfs partition
« Reply #3 on: 6 March 2005, 23:34 »
yes, you need to set a value for umask. i recommend 022 which will set default permissions of 755 to everything that gets created on that partition. this will involve adding "umask=022" after "exec", comma separated, no spaces.


actually i just thought about this and it should not be necessary, have a look at this:
Quote

/dev/hda6        /                reiserfs    defaults         1   1
/dev/hda7        /home            ext3        defaults         1   2

so now i think on it again, normal users do not have write permission on those direcories either.

also i think on it further and realise that a normal user does not need to have write access to program files either, so whatare you actually trying to do here?

also, why not make the new partition be /opt instead of adding a new nonstandard directory to your filesystem?
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
Re: mounting a reiserfs partition
« Reply #4 on: 6 March 2005, 23:58 »
Reply was deleted since Calum answered it.

Why are you mounting a reiserfs partion as ext2?

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
Re: mounting a reiserfs partition
« Reply #5 on: 7 March 2005, 01:53 »
hang on:

Code: [Select]
root@harvey:~# fdisk -l

Disk /dev/hda: 15.3 GB, 15367790592 bytes
255 heads, 63 sectors/track, 1868 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         268     2152678+   7  HPFS/NTFS
/dev/hda2             269        1867    12843967+   f  W95 Ext'd (LBA)
/dev/hda5             269         536     2152678+   b  W95 FAT32
/dev/hda6             537         971     3494106   83  Linux
/dev/hda7             972        1752     6273351   83  Linux
/dev/hda8            1753        1867      923706   82  Linux swap
root@harvey:~# mount
/dev/hda6 on / type reiserfs (rw)
/dev/hda7 on /home type ext3 (rw)
/dev/hda5 on /mnt/mydocuments type vfat (rw,umask=0)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
proc on /proc type proc (rw)
none on /tmp/jack type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)


so, is "83" reiserfs or ext3 then? it looks like i have a reiserfs / partition and an ext3 /home partition, but both show up as "83" using fdisk. what's up?
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

Commander

  • Member
  • **
  • Posts: 242
  • Kudos: 52
Re: mounting a reiserfs partition
« Reply #6 on: 7 March 2005, 04:08 »
ok, i was looking into how the reiser partition got named ext2, and i found out that i formatted it with the wrong type.  so i formatted it again with reiserfs and now the fstab line looks something like
Code: [Select]
/dev/hda8            /apps                reiserfs   acl,user_xattr,users,exec 1 2 if i add any other items in the options, namely (gid=users or umask=022), i get the error "mount: wrong fs type, bad option, bad superblock on /dev/hda8, or too many mounted file systems" :(.
as for why i wanted this drive; i wanted it so i could install the applications that can be installed on any directory (matlab, jdk, firefox, thunderbird, sunbird, amsn, azureus....) and for downloading files into from bittorrent clients  (if i tried saving them in the mounted fat32 partitions, it started wining about not being able to set permission or allocate space)
any ideas?


ps. thanks fot the help so far
Ballmer needs a firm kick in the ass.... (since he has no balls)

Refalm

  • Administrator
  • Member
  • ***
  • Posts: 5,183
  • Kudos: 704
  • Sjembek!
    • RADIOKNOP
Re: mounting a reiserfs partition
« Reply #7 on: 7 March 2005, 17:26 »
Quote from: Commander
ok, i was looking into how the reiser partition got named ext2, and i found out that i formatted it with the wrong type.  so i formatted it again with reiserfs and now the fstab line looks something like
Code: [Select]
/dev/hda8            /apps                reiserfs   acl,user_xattr,users,exec 1 2 if i add any other items in the options, namely (gid=users or umask=022), i get the error "mount: wrong fs type, bad option, bad superblock on /dev/hda8, or too many mounted file systems" :(.
as for why i wanted this drive; i wanted it so i could install the applications that can be installed on any directory (matlab, jdk, firefox, thunderbird, sunbird, amsn, azureus....) and for downloading files into from bittorrent clients  (if i tried saving them in the mounted fat32 partitions, it started wining about not being able to set permission or allocate space)
any ideas?


ps. thanks fot the help so far

Try
Code: [Select]
df -h
Then try
Code: [Select]
umount /mnt/hda9 for example.

The partition shouldn't be /, so I don't expect problems there.

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
Re: mounting a reiserfs partition
« Reply #8 on: 7 March 2005, 19:01 »
i don't know why you don't just symlink the /opt directory there and create another directory called something like /downloads and this way you can retain proper permissions for /opt and all the programs installed into it, and you could just "chmod  777" the /downloads directory.
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
Re: mounting a reiserfs partition
« Reply #9 on: 7 March 2005, 22:46 »
Quote from: Commander
ok, i was looking into how the reiser partition got named ext2, and i found out that i formatted it with the wrong type.  so i formatted it again with reiserfs and now the fstab line looks something like
Code: [Select]
/dev/hda8            /apps                reiserfs   acl,user_xattr,users,exec 1 2 if i add any other items in the options, namely (gid=users or umask=022), i get the error "mount: wrong fs type, bad option, bad superblock on /dev/hda8, or too many mounted file systems" :(.
as for why i wanted this drive; i wanted it so i could install the applications that can be installed on any directory (matlab, jdk, firefox, thunderbird, sunbird, amsn, azureus....) and for downloading files into from bittorrent clients  (if i tried saving them in the mounted fat32 partitions, it started wining about not being able to set permission or allocate space)
any ideas?


ps. thanks fot the help so far


HMMMMMMMMMMMM...

since you are writing to this partition/folder by a user, it would be consistent to make
/dev/hda8 mount at /home/$USER/apps instead of /apps .... but whatever.

So, i would assume you have done (as root):

# mkdir /apps


As far as i see all you should need to do is add this line to your fstab:

/dev/hda8        /apps           reiserfs    defaults         1   2


then make you (the user) own that directory.

# chown $USER.users /apps
# chmod 777 /apps

(replace $USER with your username and in some distros it will be $USER.$USER)

and then you should be able to read/write your user in that directory.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

Commander

  • Member
  • **
  • Posts: 242
  • Kudos: 52
Re: mounting a reiserfs partition
« Reply #10 on: 9 March 2005, 16:05 »
ok,  so i took the suggestions and did the linking to /opt.  it's working so far with no problem.
MoR:  thanks for the suggestion, i'll certaily try it out (even if it means having to track back :D)  but i have this nagging feeling that this wont work since fstab will probably overwrite any permission on that folder automatically.  but i'll certinly try it out once i get home.

just incase it doesnt work, i need to get something off my chest:  WHY THE HELL IS THIS SO COMPLICATED!?  ALL I WANT TO DO IS RW AND EXECUTE AS A NORMAL USER!  FOR THE LOVE OF GOD!

ok, that;s all.
thanks
Ballmer needs a firm kick in the ass.... (since he has no balls)

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
Re: mounting a reiserfs partition
« Reply #11 on: 9 March 2005, 20:26 »
as with a lot of things, it's a lot more complicated if you don't know how to do it.
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism