By viewing my Disk&File Systems in Hardy, can anyone see why one HDD is partially crippled?

Michael Hirsch mdhirsch at gmail.com
Sat Nov 22 00:49:32 UTC 2008


Steven,

This is perfect.  You are right, the partition is mounted, but owned
by root.  I think you've already been given some instructions about
creating a directory that you own.  If that works for you, look no
further.

Another solution is to add an option in your fstab file that mkes you
the owner of the top level and not just a subdir.

To do this, you'll need to figure out your UID and GID and edit your
/etc/fstab file.

Find your UID and GID:There are many ways to find your User ID and
Group ID.  For instance, kuser can do this easily.  Or, just look in
the file /etc/password and look for you username.  The line will look
something like this:
steven:x:1000:1000:Steven Vollom:/home/steven:/bin/bash
The first number is your UID, the second is your GID.  They are
probably the same, but possibly not.  I'm going to assume below that
the numbers are both 1000.  You should change them accordingly.

Now edit /et:cfstab: sudo kate /etc/fstab
Find the line with hdb5 in it:
   /dev/sdb5 /media/sdb5 ext3 owner,atime,noauto,rw,nodev,noexec,nosuid 0 0
and add your UID and GID to it (remember to use the real numbers):
/dev/sdb5 /media/sdb5 ext3
owner,atime,noauto,rw,nodev,noexec,nosuid,uid-1000,gid=1000 0 0

Now unmount and mount that partition:
  sudo umount /dev/sdb5
  sudo mount /dev/sdb5
and take a look
  ls -ld  /media/sdb5

You should see that you own the directory.

Hope that helps,

Michael


On Thu, Nov 20, 2008 at 12:15 PM, Steven Vollom
<stevenvollom at sbcglobal.net> wrote:
> Michael Hirsch wrote:
>> On Wed, Nov 19, 2008 at 8:55 PM, Steven Vollom
>> <stevenvollom at sbcglobal.net> wrote:
>>
>>> For over a year, the HDD that my current OS is on, has had its larger
>>> partition unusable.  My system is Hardy KDE3.5.10.
>>> The HDD is an 80gb Maxtor.  20gb was partitioned with ext3 and made
>>> primary.  My current version of Hardy in on that partition.  The balance
>>> is 58gb according to Dolphin, and is unusable and empty.  When I click
>>> on the vacant HDD, it says 'Permissin Denied'.  I would like to use the
>>> empty space.
>>>
>>
>> Are you doing this as root, or as a regular user?
> To make the changes you have to be in Administrator Mode, so I suppose
> the answer is Root.
>>  It sounds to me like you don't have the proper permissions, not that the disk is
>> corrupted.
>>
> I just checked and I don't.  It is Root Root.  I can't remember how to
> get to properties in Root to make the change.  Is there a way to get to
> that window in a gui and in root?  Or what would I type into the Shell
> to change permissions.  I live alone; there is never anyone else using
> my computer.  So I prefer having everything controlled by user. Is there
> a way to open Dolphin in Root?  The only way I know to open the
> permissions box is to right-click on the item and choose properties.
> But then I am not in Root to be able to make the changes.
>
>> What are you trying to do with this partition?
> I just want it for storage.
>>   Is it already mounted?
>>
> Yes
>>  I gather it already has data and you are trying to access that data?
>>
> It shouldn't, however, it says there is a little in there.
>> Useful commands to run and post the output are (I'm assuming here that
>> your hard drive is /dev/sda--change as appropriate):
>> cat /etc/fstab
>> mount
>> sudo parted /dev/sda print
>>
>> These will tell us what partitions your system is trying to make
>> avaliable, what partitions it did make available, and what partitions
>> are available.  It's difficult to figure out what is happening without
>> a lot more information.
>>
> steven at Studio25:~$ cat /etc/fstab
> # /etc/fstab: static file system information.
> #
> # <file system> <mount point>   <type>  <options>       <dump>  <pass>
> proc /proc proc defaults 0 0
> # /dev/sdb1
> UUID=2795cc01-0df3-4b4d-b46c-0adf8156e4aa / ext3
> nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
> # /dev/sda1
> # /dev/sda5
> UUID=bddaaee3-408a-4f69-a9bf-b9c47af61b7e /media/sda5 ext3
> nouser,defaults,atime,auto,rw,dev,exec,suid 0 2
> # /dev/sda7
> UUID=e8dac51b-91a9-43ab-9d75-cb4d6af8efa3 /media/sda7 ext3
> nouser,defaults,atime,auto,rw,dev,exec,suid 0 2
> # /dev/sda8
> UUID=70E9613423CDFF51 /media/sda8 ntfs
> defaults,umask=007,uid=0,gid=46,auto,rw,nouser 0 1
> # /dev/sda6
> UUID=8bb9d04a-5d6e-45bf-9753-cfb6f585b2f3 none swap sw 0 0
> # /dev/sdb2
> UUID=09850bc0-ac07-4f45-bb39-1eba22243e4d none swap sw 0 0
> /dev/scd0 /media/cdrom0 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
> /dev/scd1 /media/cdrom1 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
> /dev/fd0 /media/floppy0 auto user,atime,noauto,rw,dev,exec,suid 0 0
> /dev/sdb5 /media/sdb5 ext3 owner,atime,noauto,rw,nodev,noexec,nosuid 0 0
> /dev/sda1 /media ext3 owner,atime,noauto,rw,nodev,noexec,nosuid 0 0
> steven at Studio25:~$
> steven at Studio25:~$
>
> /dev/sdb1 on / type ext3 (rw,errors=remount-ro)
> proc on /proc type proc (rw,noexec,nosuid,nodev)
> /sys on /sys type sysfs (rw,noexec,nosuid,nodev)
> varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
> varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
> udev on /dev type tmpfs (rw,mode=0755)
> devshm on /dev/shm type tmpfs (rw)
> devpts on /dev/pts type devpts (rw,gid=5,mode=620)
> lrm on /lib/modules/2.6.24-21-generic/volatile type tmpfs (rw)
> /dev/sda5 on /media/sda5 type ext3 (rw)
> /dev/sda7 on /media/sda7 type ext3 (rw)
> securityfs on /sys/kernel/security type securityfs (rw)
> binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
> (rw,noexec,nosuid,nodev           )
> /dev/sdb5 on /media/sdb5 type ext3 (rw,noexec,nosuid,nodev)
> steven at Studio25:~$ sudo parted /dev/sdb5 print
> [sudo] password for steven:
> Sorry, try again.
> [sudo] password for steven:
>
> Disk /dev/sdb5: 58.5GB
> Sector size (logical/physical): 512B/512B
> Partition Table: loop
>
> Number  Start   End     Size    File system  Flags
>  1      0.00kB  58.5GB  58.5GB  ext3
>
> Information: Don't forget to update /etc/fstab, if necessary.
>
>
>> Michael
>>
>>
>
>
> --
> kubuntu-users mailing list
> kubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
>




More information about the kubuntu-users mailing list