Can not access my extended internal hard drive

Asked by danny

I'm not too familiar with the Linux system, and I'm using an extended internal hard drive just for storage. I installed Ubuntu 8.10 and then i partitioned the extended hard drive as ext3, and when I tried to paste or modify it; I find I am not able to do so. All privileges on that hard drive belong to root. I'm also not given rights to download certain things for my system unless I log into root. From what I understand from doing some research is that root is replaced by sudo commands in Ubuntu, but i'm not sure if that's the case. I changed the password for root, but I still don't know how to get around with it. If someone can give me any information on how I can access my hard drive I would greatly appreciate it...

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
danny
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

just to know your disk partitions please open a Terminal from the menu
Applications → Accessories → Terminal and type:

sudo fdisk -l

give your user password when requested, you don't see nothing when you type it, then press enter.

copy and paste result here.

Then copy and paste also the result of:

mount

command

Thank you

Revision history for this message
danny (djfula) said :
#2

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00069b5c

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 38913 312568641 83 Linux

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1e721e72

   Device Boot Start End Blocks Id System
/dev/sdb1 1 18726 150416563+ 83 Linux
/dev/sdb2 18727 19457 5871757+ 5 Extended
/dev/sdb5 18727 19457 5871726 82 Linux swap / Solaris

----The 320.0 GB is the extended and the info for mount is...

/dev/sdb1 on / type ext3 (rw,relatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
lrm on /lib/modules/2.6.27-7-generic/volatile type tmpfs (rw,mode=755)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/fula/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=fula)

Revision history for this message
danny (djfula) said :
#3

Anyone?

Revision history for this message
Wyatt Smith (wyatt-smith) said :
#4

Since formating the drive was done while as root. All the directory and files are owned by root, and probably belong to the group ¨root¨ as well. Just modify the file ownership/permission rather than login as root.

If you are having problems with file permissions on a mounted drive, please read the following page regarding File Permissions
https://help.ubuntu.com/community/FilePermissions

Here is an example, please modify to fit your needs. For this example.
A disk mounted at /media/disk1

To allow all users in the group ¨users¨ have full access to disk1.
sudo chown -R :users /media/disk1
sudo chmod -R 770 /media/disk1

To change owner to the current user
sudo chown -R $USER /media/disk1
sudo chmod -R 740 /media/disk1

Hope this helps

Revision history for this message
danny (djfula) said :
#5

Thank you so much for being a lifesaver!!! the commands worked out great, and I gained permissions to my drive.