can't format to ext3 with gparted

hi,

i got these partitions

/dev/sda1 of 10gb in ext3 where i got xubuntu
/dev/sda2 of 1gb in swap
/dev/sda3 of 15gb in ext3 where i got opensuse 11.1
/dev/sda4 of 90gb extended
/dev/sda5 of 90gb unformatted and can be formatted only to hfs filesystem, which is kinda pointless since max is 2gb, there’s a sign with exclamation mark next to it

using gparted, pls help.

From terminal, try the following (any data there will be deleted):

su
umount /dev/sda5
mkfs -t ext3 /dev/sda5

thanks, it worked! although i’m a little worried about this exclamation mark. anyway, i mounted it as /media/sda5 but it requires root privilages to make directories and stuff. anything can be done about it? and automounting on start?

Post

fdisk -l

and

cat /etc/fstab

fdisk -l

 
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x29292928

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1220     9799618+  83  Linux
/dev/sda2            1221        1341      971932+  82  Linux swap / Solaris
/dev/sda3   *        1342        3367    16273845   83  Linux
/dev/sda4            3368       14593    90172845    5  Extended
/dev/sda5            3368       14593    90172813+  83  Linux

Disk /dev/sdb: 1039 MB, 1039663104 bytes
255 heads, 63 sectors/track, 126 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x054aca0c

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         127     1015264+   b  W95 FAT32

cat /etc/fstab

 
/dev/disk/by-id/ata-ST3120026AS_5LJ0EDFM-part2 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-ST3120026AS_5LJ0EDFM-part3 /                    ext3       acl,user_xattr        1 1
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0

Create a folder in your /home/*username/my_sda5
Edit fstab
FSTAB - Editing Manually - openSUSE Forums

/dev/disk/by-id/ata-ST3120026AS_5LJ0EDFM-part2 swap swap defaults 0 0
/dev/disk/by-id/ata-ST3120026AS_5LJ0EDFM-part3 / ext3 acl,user_xattr 1 1
/dev/sda5 /home/*username/my_sda5 ext3 defaults 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

thanks, but it didn’t work.
still says permission denied when i want to copy sth to sda5,
and i want to make it available to other user on the computer so mounting it in /media/sda5 would be ok right?

Did you reboot - If No, try doing so first
If yes
edit fstab back to original first

Now Try using Yast - System - Partitioner
to add the mount

Mount point can be wherever, in Yast you can manually write that in the mount point
it could be
/my_sda5 (all on it’s own)
that’s it

editing with partitioner was easier but the problem persist,
not the mounting but permissions,
and i didn’t check any box in the partitioner,
just set different mount point, i did reboot.

The line in fstab should look like this, replace MOUNTPOINT by a choice of your own, but do that every time:
/dev/disk/by-id/ata-ST3120026AS_5LJ0EDFM-part5 /MOUNTPOINT ext3 defaults 1 2
This means acc. to defaults that root is owner, group is root, and perms are 755 (drwxr-xr-x). Therefore anybody else but root cannot create files in there.
Once you added the extra line in fstab, you create a folder /MOUNTPOINT:
su -c ‘mkdir /MOUNTPOINT’ (enter rootpassword)
su -c ‘chgrp users /MOUNTPOINT’
su -c ‘chmod 775 /MOUNTPOINT’
Now reboot, and anybody belonging to the group users (default user group) can create files and folders, change them and remove them.

thanks, i’ll try that tomorrow,
i did change permissions while logged in on root account though.

now i wonder why it says sda5 is 90gb in the partitioner,
and in folder browser it says theres 80 gb free,
i deleted all hidden and not hidden files there, so where’s 10gb gone?

As you can see in the fdisk -l output, the blocks of the logical partition /dev/sda5 does not go to the end of the extended partition /dev/sda4 where it’s residing in. No idea why. And then there is the 1000 or 1024 factor. My 250GB disk realy are only 232GB.
I wouldn’t mind about it too much. The price of storage per GB is simply not worth it.
Or it must be that you suspect the filesystem to be corrupt, but it’s brand new so…

thanks it worked :slight_smile:

about 80gb, i suspect sth may be corrupted, before reinstallation it showed that physical and logical size of partition is not the same (sth like that, can’t recall exactly). but now i’m just happy it works at all.