Bernaz’s Weblog

Tech and more

First post: /etc/fstab configuration with hfsplus and other File System

leave a comment »

I have a laptop with ubuntu 7.10 installed on, and 2 usb hard disk: 1 formatted ext2 and the other hfs+ (because I’ve a mac). IF you plug the ext2 hard disk there are no problem and ubuntu will mount it automatically in read/write mode. But for the hfs+ there are much problems. First: you have to disable the journaling and set the privileges like “chmod 777″ (from a mac). Afer all this operation you can try to mount the disk with the command “pmount /dev/yourDiskPartition /media/Folder” if after this you can’t write on it try to compile fsck.hfsplus and run it. The guide for compile this command are:

http://ubuntuforums.org/showthread.php?t=314743

http://www.debian-administration.org/users/lee/weblog/21

After this you can read and write on your hfs+ hard disk.

The configuration of fstab is very simple. You only have to edit the file with the command “sudo gedit /etc/fstab”.

There is a very nice guide on the ubuntu forum:

http://ubuntuforums.org/showthread.php?t=283131

After all i will put the example of my fstab :

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>

# /dev/sda2

UUID=0252bb8a-c404-41df-b34b-a838d3c012d0 / ext3 defaults,errors=remount-ro 0 1

# /dev/sda5

UUID=5b303261-4e1c-45cd-893b-4f986d6eb34d none swap sw 0 0

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0

#Seagate 320

LABEL=Sega320 /media/Sega320 ext2 noauto,user,rw 0 0

#WD500

UUID=543DBDA103BB0038 /media/Wd500 hfsplus noauto,users,rw, 0 0

I will not responsible if you destroy you computer or yours hard disk.

Written by bernaz

January 16, 2008 at 11:42 pm

Posted in Linux

Tagged with , ,

Leave a Reply