Linux Lite Forums

Hardware - Support => Hard Drives and SSDs => Topic started by: DLX on July 31, 2014, 01:50:18 PM

Title: Format new drive with GParted ext4 Error
Post by: DLX on July 31, 2014, 01:50:18 PM
Hi all

I used Linux on and off for some years never really got my head round it so been dipping my toe back in with Linux Lite. Did use Mint for a bit but had driver problems.

Anyway to my question
So now I install new drive trying to format with GParted ext4 but get an error I make new drive a new partition table bsd that works then try as above ext4.

Drive size 160gb I did a search and see it's not a drive size problem ext4 goes up to TB.

Screen shot of error any help welcome


Quote
An Error Has Occurred!
Screenshot2.jpg.
You cannot upload that type of file. The only allowed extensions are doc,pdf,txt,docx,rtf.

i can't add screen shot I will hotlink

(https://db.tt/n3vmDQti)

Clean up
Title: Re: Format new drive with GParted ext4 Error
Post by: rijnsma on July 31, 2014, 05:34:31 PM
Hi Dyslexic1

Display picture:
https://www.linuxliteos.com/forums/index.php?topic=117.msg3548#msg3548

Then Gparted:
I have never seen this.

Are you root?

Maybe try first 150 gig. Choose ext4, perhaps bootflag on? (And don't forget 'swap' when this works and you try a final setup.)
Title: Re: Format new drive with GParted ext4 Error
Post by: gold_finger on July 31, 2014, 06:14:38 PM
Anyway to my question
So now I install new drive trying to format with GParted ext4 but get an error I make new drive a new partition table bsd that works then try as above ext4.

I've never used a BSD partition table, but have suspicion that is causing the problem.  Ext4 file system may not work on a BSD disk.  Any particular reason you chose a BSD partition table instead of standard MSDOS?

If you don't have to use BSD, just start over and make the partition table MSDOS instead.  You shouldn't have any problems once you do that.
Title: Re: Format new drive with GParted ext4 Error
Post by: DLX on August 01, 2014, 04:24:24 AM
Thanks rijnsma I was using the Attachments and other options bottom of page.  :-[
And Thanks gold_finger That worked I did think the MSDOS would be for Win OS as MS =  Microsoft.

I can't drag files on to drive I think it's a permissions thing! My next step is to have a Google.
I did get couple files on drive when I open drive, bottom screen shot but don't know how I did that was a bit of clicking about.

(https://db.tt/LGomwLnh)

(https://db.tt/C5BGsySr)

(https://db.tt/MhFiB8rY)

Thanks again  8)
Title: Re: Format new drive with GParted ext4 Error
Post by: gold_finger on August 01, 2014, 04:50:23 AM
I can't drag files on to drive I think it's a permissions thing! I did get couple files on drive when I open drive, bottom screen shot but don't know how I did that was a bit of clicking about.

I'm not clear on what you are using the drive for.  Are you trying to install to it?  Or is this just an added drive for more storage space?

If trying to install LL on it, see here:  https://www.linuxliteos.com/manual/install.html (https://www.linuxliteos.com/manual/install.html).

If trying to use as extra storage space for an already installed system, see if this page gives you some ideas for setting it up:  https://www.linuxliteos.com/forums/index.php?topic=203.0 (https://www.linuxliteos.com/forums/index.php?topic=203.0).
Title: Re: Format new drive with GParted ext4 Error
Post by: DLX on August 03, 2014, 03:29:23 AM
Hi and Thanks gold_finger
I have LL load then second drive is for extra storage space. I have a read of link you posted.
 8)
Title: Re: Format new drive with GParted ext4 Error
Post by: gold_finger on August 04, 2014, 03:09:57 PM
Ok -- if just a data partition, then likely just a permissions problem.  Info in the second link I referenced should let you solve problem.  If you need any help, or if something unclear, post back.
Title: Re: Format new drive with GParted ext4 Error
Post by: DLX on August 05, 2014, 07:20:16 AM
Thanks I'll plod on then keep asking and look foolish ;)
Title: Re: Format new drive with GParted ext4 Error
Post by: DLX on August 09, 2014, 07:20:16 AM
 :-[ It's been a few more days and I'm still struggling still.
I rebuilt hoping setup would see drive and formate and set the permissions.

Someone I know said about typing chown in Terminal but I got lost and after reboot old permissions rebooted.

Why Linux so complicated!

 
Title: Re: Format new drive with GParted ext4 Error
Post by: rijnsma on August 09, 2014, 07:29:30 AM
Mostly things like these are simple.
But there can be circumstances which make that one has to investigate.
Why change owner? (chown)
Maybe start all over again?  :) I have done that more than once. Never give up.

Edit spell
Title: Re: Format new drive with GParted ext4 Error
Post by: DLX on August 09, 2014, 07:41:14 AM
Quote
I rebuilt hoping setup would see drive and formate and set the permissions.
;D

I think it's the Terminal that scare plus the added bonus of spelling.
This is so simple in Win OS

Why change owner? (chown) No Disk show owner as Root still, not user ID

 
Title: Re: Format new drive with GParted ext4 Error
Post by: rijnsma on August 09, 2014, 09:45:41 AM
Maybe this helps:
You are not yet root in Gparted. That comes up when you install LL.

And maybe in here? >
https://www.google.com/search?sourceid=chrome&ie=UTF-8&q=install%20ubuntu&gws_rd=ssl#q=install+ubuntu+partition+no+root+file+system+defined&revid=692930233
Title: Re: Format new drive with GParted ext4 Error
Post by: gold_finger on August 09, 2014, 11:58:08 AM
In Linux, permissions are built into the filesystem itself.  So when you initially mount the new partition as root, root becomes the owner on the filesystem of the partition.  Root will remain the owner of files there until you purposely change the permissions.  Even on a new installation attempt, when you again mount something that had prior permissions already set, those prior permissions stick with it until you change them.

You just need to change ownership to yourself.  Once you do that, then that new ownership permission status will also stick with the filesystem.  If it were a removeable drive, you could take it to another Linux computer and plug it in and have no problem accessing and using it as long as you are using same username on both computers.  (There is a possible exception to this, but don't want to confuse things by going into it.)

Answer a few questions first, then we'll take care of the problem.  It will be pretty easy to do.

1.  Is your new drive installed permanently in the computer, or is it a removeable drive that you will not always have attached?

2.  If it is permanently installed inside computer, do you want to set it up to be accessible every time you boot into LL, or did you only want it available every once in a while?

3.  If it is permanently installed, did you run through any of the steps in that tutorial I referenced before in an attempt to set it up?  If so, what steps did you perform?


In preparation for the fix, do the following to make things much easier on yourself:

*  Boot computer, attach new drive (if not installed); then start GParted program (Menu -> System -> Partition Drives).

*  In upper right corner of GParted window, choose the device name of the new drive from the drop-down menu (will be something like /dev/sdb, /dev/sdc, etc.).

*  When correct drive is showing in GParted window, right-click on the partition you made and choose "Label".  (If that choice is grey'd out and unavailable, choose "Unmount" first; then right-click and choose "Label" again.)

*  Make yourself a descriptive label for the partition.  Don't use spaces or special characters in the name and don't make it more than 12 characters long.  (I don't remember limit on length of name, but think 12 or less is fine.)

*  Click "OK" to make the label.  (This will not damage anything on the partition.)

*  Close GParted when done.


Now, instead of showing the partition as some long miscellaneous string of characters, you'll see it by it's new descriptive label.  That will make it a lot easier when you go to run the chown command to change ownership.
Title: Re: Format new drive with GParted ext4 Error
Post by: DLX on August 09, 2014, 11:58:48 AM
Drive was Root.

A phoned a mate he explained that if typed Sudo Su and put password I'm SU only in the terminal
not were I been clicking about on screen.

From terminal
Sudo Su
Password
Then typed Thunar 
window opened

I change permissions to what I wanted done all in about 30sec. Were it's taken me three weeks on and off to change permissions  :o

Thanks all

Right now on to next thing fix

Title: Re: Format new drive with GParted ext4 Error
Post by: DLX on August 09, 2014, 12:02:42 PM
Time stamp gold_finger  8)

Thanks typing all that it fixed now, also did a reboot and permissions have stayed.
Title: Re: Format new drive with GParted ext4 Error
Post by: gold_finger on August 09, 2014, 12:15:34 PM
Since I don't know exactly how you changed the permissions I can't say for sure whether you fixed it in the way you think.

You may have only changed the permissions for specific files/folders, but not for anything newly created and saved on the partition to a brand new folder.

To test, try to create a brand new test folder (one that is NOT contained within one that you already changed permissions on) on the partition as your regular user and try saving a file to it as regular user.  If you can do that, then you likely did change permissions on entire partition.  If you can't, then you only changed permissions on existing things and did not change it for entire partition.

For example, if you currently have folder1, folder2, file1, file2, etc. on the drive, run test by trying to create folder3, then testfile1 inside of folder3.  (Do not test by creating a new folder or file inside of folder1 or folder2.)  Do that as your regular user only -- do not us sudo or su to access the drive.  If you can do that, then all is well.
Title: Re: Format new drive with GParted ext4 Error
Post by: DLX on August 09, 2014, 01:48:40 PM
Your right I couldn't make a new folder beside other ones I had made.
I started to copy files to new folders and got black screen with text errors.

(https://db.tt/4C8qUeTV)

After reboot I got libpng error: IDAT: CRC error

Thanks for your time and effort gold_finger.
Gave up to quick now back again