Operating Systems > Linux and UNIX

mounting a reiserfs partition

<< < (2/3) > >>

Calum:
hang on:


--- Code: ---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)

--- End code ---


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?

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: ---/dev/hda8            /apps                reiserfs   acl,user_xattr,users,exec 1 2
--- End code ---
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

Refalm:

--- 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: ---/dev/hda8            /apps                reiserfs   acl,user_xattr,users,exec 1 2
--- End code ---
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
--- End quote ---

Try
--- Code: ---df -h
--- End code ---

Then try
--- Code: ---umount /mnt/hda9
--- End code ---
for example.

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

Calum:
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.

Master of Reality:

--- 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: ---/dev/hda8            /apps                reiserfs   acl,user_xattr,users,exec 1 2
--- End code ---
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
--- End quote ---


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.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version