Can't access drive partioned and formatted with gparted

Man of Honour
Joined
18 Oct 2002
Posts
20,583
Location
UK
I'm using Ubuntu 8.04 on this system and have had a 120Gb SATA HDD in the computer which until now has been an NTFS drive. I used gparted to partition and format the drive as ext2. for some reason though, I cannot access the drive through any means at all. I cannot paste any files or folders into it despite everything appearing as normal. I also tried formatting it as ext3 in gparted but it made no difference.

My intention is to use the drive purely for data with no intent to boot any OS off it. How can I get it to work>

Thanks :)
 
Yeah it appears as mounted after a reboot and I can navigate to and browse the drive through the file browser but it won't let me move any files to the drive or delete any form it. The only folder on the drive at the minute is the standard "lost + found".
 
I'm on my laptop at the minute so I cant give you the exact error message but the message thrown up was definitely something to do with permissions. My account has admin privileges and is under the "root" user group so it really should be fine.
 
Here we go...

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=01e5f8f9-106f-44e4-92aa-d7ae5544000e / ext3 relatime,errors=remount-ro 0 1
# /dev/sda5
UUID=8b78c5a2-98ee-428f-b7fa-7737d3ee6ac9 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

Does that make it any clearer because it means absolutely nothing to me? :
All I can see is that there's no mention of the second HDD (/dev/sdb)
 
Disk /dev/sda: 120 GB, 120031511040 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13995 112414806 83 Linux
/dev/sda2 13996 14593 4795402 5 Extended
/dev/sda5 13996 14593 4795402 82 Linux swap

Disk /dev/sdb: 120 GB, 120031511040 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 14593 117218241 83 Linux
 
Looks like it's listed here...

/dev/sda1 on / type ext3 (rw,relatime,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-22-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
gvfs-fuse-daemon on /home/blainhead/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=blainhead)
/dev/sdb1 on /media/disk type ext2 (rw,nosuid,nodev,uhelper=hal)
 
It's letting me make a directory when using "sudo" but when browsing to the folder in Gnome, the options to cut, delete and create folder are all greyed out.

Is it a permissions problem?
 
That /etc/fstab entry should be more like the below, so I'd try changing it to that and trying the mount again
Code:
/dev/sdb1 /media/disk ext3 rw,nosuid,nodev,uhelper=hal,users 0 0
(missing the file system type, fsck prioirity and I forget what the other option is)

Doing this has enabled the drive to be mounted again but the original problem still exists. I can't create folders or copy files to the drive unless I do it through terminal using "sudo".
 
I never thought the prospect of mounting a HDD would have me so excited.

I need to get out more :p
 
ls -lh /media/disk produces...
total 8.0K
lrwxrwxrwx 1 root root 6 2008-08-26 19:56 cdrom -> cdrom0
drwxr-xr-x 2 root root 4.0K 2008-08-26 19:56 cdrom0
drwxr-xr-x 4 blainhead root 4.0K 2008-12-02 22:04 disk

I did the chown suggested above and i am now able to cut and past folders and files already on the drive but I cannot move any files to it or I cannot create any files or folders on it.:confused:
 
Back
Top Bottom