[hblug] read only HDD

Michael Adams linux_mike at paradise.net.nz
Fri Mar 9 19:07:06 NZDT 2007


On Fri, 09 Mar 2007 18:07:30 +1300
chris morris wrote:

> QTparted cant see the drive /dev/hdf1 but the system can - so much for
> QTparted..
> anyway...
> Its mounted ( FAT32 ) and readable/writable by the user.
> So I shared it via samba and its visible on the LAN but not writable
> via the LAN.
> Other machines can read the contents of the drive but not write to
> it..
> 
> its mounted at /media/Maxtor40/
> How do I make the whole drive writable to anyone on the LAN?
> 
> I've tried sudo chmod 777 /media/Maxtor40 but nothings changed.
> And when I check permissions via Konqueror its not writable to Group
> or Others.
> If I change those permissions using Konqueror, nothing changes - 
> checking again they are back to not writable.
> 

You change permissions in /etc/fstab. Copy and paste from an entry for a
drive that has similar attributes to what you want.

In my case /home is one i would copy -
/dev/hda9 /home xfs defaults 1 2
/dev/hdf1 /mnt/ogg xfs
I would copy and paste "defaults 1 2" after xfs which is my partition
type. Also compare the file permissions on /mnt/ogg and /home. You may
not be able to alter these permissions unless you "umount" first.

====

If qtparted wont see it, try a different tool. Linux has a "fdisk" as
well. It's a little cryptic so read up first. You have to enter start
and end blocks for each partition.

http://www.linuxplanet.com/linuxplanet/tutorials/3174/6/

fdisk /dev/hdf
p
 - will show if it can at least read the partition table.

If it can go for it, but dont forget to save out your completed
partition table when finished with a "w" before quitting fdisk.

If you are real lucky you can use "cfdisk". Kubuntu may let you install
it as part of the util-linux package.
http://en.wikipedia.org/wiki/Cfdisk

-- 
Michael
Linux: The OS people choose without $200,000,000 of persuasion.



More information about the HBLUG mailing list