Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
12-10-2023, 09:58 AM
|
#16
|
Member
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 349
Original Poster
Rep: 
|
Alright, utilizing the gpt fdisk which first had to be downloaded and installed, I went ahead and finally ended up duplicating my existing sda partitions to the external 4TB SSD drive. Silly me hoping that the cloning process would stretch the new partitions accordingly, but of course nope, just created identically sized partitions on the new sdb disk. No problem, we'll worry about resizing things later. At least now it looks like I'm starting to get somewhere.
Using:
Code:
sudo mkfs.ext4 /dev/sdb3
I then began formatting the largest of the new partitions on sdb which happens to be 1TB in size. This began well over an hour ago, so I hope that everything is still A - Okay. Here's the output of that:
Code:
Creating filesystem with 269144064 4k blocks and 67289088 inodes
Filesystem UUID: 53d441c5-xxxx-4a42-9f92-xxxxxxxbb3bb
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks):
So now I have 4 duplicate partitions from my current primary sda which were created/duplicated with gpt fdisk on sdb, ranging in size from 1TB down to only 16GB in size. The 16GB sdb1 is going to end up as a swap file, but we'll concern ourselves with that partition later on or tomorrow, depending on how well the current process works out. I began with the current 1TB formatting around 3:40 PM my time (Germany). It is now 5 PM so the formatting process has been going on for an hour and 20 minutes already. 
Last edited by LinWinux; 12-10-2023 at 10:01 AM.
|
|
|
12-10-2023, 10:24 AM
|
#17
|
Moderator
Registered: Aug 2002
Posts: 26,810
|
I would not expect formatting 1.6 TB to ~1.3 hours. Formatting does not actually clear data just create the metadata and journal. I am wondering if you messed something up with cloning. Your old disk used MBR. Did you clone the entire disk or just individual partitions?
|
|
|
12-10-2023, 10:45 AM
|
#18
|
Member
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 349
Original Poster
Rep: 
|
Using gpt fdisk I only duplicated the partitions without the data. There was a message stating that it recognized the 2TB sda as having an MBR and that that would be temporarily converted to GPT and stored in memory. After that I got the success message that the partitions were created. Then I used fdisk -l to check and all of the partitions that I had on sda wre now also on sdb, but without any actual data.
After that I began formatting one of the actual partitions on sdb.
Last edited by LinWinux; 12-10-2023 at 10:46 AM.
|
|
|
12-10-2023, 11:50 AM
|
#19
|
Member
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 349
Original Poster
Rep: 
|
Now it's 6:50 PM my time and it's been formatting this 1TB partition for 3 hours and 20 minutes. Yup, I'm beginning to think that something is not right. Will let it run another hour or two and then I'll break it off ....
EDIT: After 6 hours and 30 minutes I terminated the terminal window since I couldn't get it to stop any other way.
Last edited by LinWinux; 12-10-2023 at 03:02 PM.
|
|
|
12-10-2023, 03:46 PM
|
#20
|
Moderator
Registered: Aug 2002
Posts: 26,810
|
Something went afoul but I don't know what at the moment. I would start over by creating a new gpt partition table (don't copy), create the desired partitions and then format.
|
|
|
12-10-2023, 04:21 PM
|
#21
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,203
|
Anyone familiar with the program Penguin-Eggs?
If you could make an installable image of your system with the clone option, install to the SSD drive using the partitioning and initialization software in the installer......
I wonder if that would work?
|
|
|
12-11-2023, 03:02 AM
|
#22
|
Member
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 349
Original Poster
Rep: 
|
This is just mind-boggling madness to me. I have never since I've been using Linux (2009) encountered such problems with MBR as I am experiencing for attempting to get a 4TB disk working the first time. It's just driving me sheer nuts at this point. When you look at the wiki pages they tell you what happens when some command is being utilized, but nothing seems to be complete and/or written in a plain understandable manner. I have never had a problem with MBR drives up to 2TB and I' ve never (contrary to other users here) have experienced a problem with Gparted ... until now.
I create the partition table with gdisk.
Then I wish to create the first partition.
PROBLEM: The WiKi tells you how to create, how to copy, how to save, and how to restore a partition table. The WiKi alsop tells you how to *BEGIN* creating a partition. I write *BEGIN* because as soon as you select the command for making a partition the question arises for the first and last sector options.
Okay, first is easy enough, that's either 34 or the gdisk default. But how the heck is a person supposed to determine the last sector if the desired partition is supposed to be 225 GB in size?
Furthermore, even if I wanted to make the entire root of the disk one partition, how do I determine what the end/final sector is? That's where I get an error message that the selection is out of the boundary confines ... even though it's a sector number that gdisk is showing me on the screen. At this point I'm about ready to throw the computer or the drive out of a window. How can this be so confounding ???
(sorry, just really really frustrated at this point)
Here's my output from the last attempt. Creating the table no problem. Writing and saving GPT to disk no problem. Creating size for a partition asks me to choose either "B" Bytes or "M" Megabytes? or "G" Gigabytes or "T" Tetrabytes? or "P" for Petrabytes? So I chose 225G in the +size command.
This process completed successfully as you will see below.
But then when I checked the final output afterwards, I had a partition size of 500 *BYTES*
Checked that with Gparted and confirmed that it was indeed 500 Bytes.
Code:
Command (? for help): o
This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): Y
Command (? for help): n
Partition number (1-128, default 1): 1 +size 225G
First sector (34-8001573518, default = 2048) or {+-}size{KMGTP}: 34
Information: Moved requested sector from 34 to 2048 in
order to align on 2048-sector boundaries.
Use 'l' on the experts' menu to adjust alignment
Last sector (2048-8001573518, default = 8001573518) or {+-}size{KMGTP}: 2048-8001573518
Current type is 8300 (Linux filesystem)
Hex code or GUID (L to show codes, Enter = 8300): 8300
Changed type of partition to 'Linux filesystem'
Command (? for help): fdisk -l
b back up GPT data to a file
c change a partition's name
d delete a partition
i show detailed information on a partition
l list known partition types
n add a new partition
o create a new empty GUID partition table (GPT)
p print the partition table
q quit without saving changes
r recovery and transformation options (experts only)
s sort partitions
t change a partition's type code
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu
Command (? for help): i
Using 1
Partition GUID code: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 (Linux filesystem)
Partition unique GUID: A521E4BC-B8A6-48D2-8A86-39BA4809A797
First sector: 2048 (at 1024.0 KiB)
Last sector: 2048 (at 1024.0 KiB)
Partition size: 1 sectors (512 bytes)
Attribute flags: 0000000000000000
Partition name: 'Linux filesystem'
Command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): Y
OK; writing new GUID partition table (GPT) to /dev/sdb.
The operation has completed successfully.
And before someone tells me that I should not have entered 1 for the command including +size 225G behind that, then please refer to the WiKi pages because that section for properly using that command lets the user guess as to the correct input. I didn't think that 1 225G was correct, so I used 1 +size 225G, assuming that +size meant ... telling gdisk to add a size, specifically one that's 225G.
I do not know what I'm doing.
Most people who purchase a larger drive would not know what they're doing either.
And that's why *SIMPLE* step by step instructions for all of us millions of dummies are so important.
Isn't there some way to split a drive into pieces (without a hammer) before a partition table is applied? If I could split this drive into three then I could just continue using MBR as I have been for decades. And then I wouldn't run into any Gparted issues either (methinks).
|
|
|
12-11-2023, 04:16 AM
|
#23
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,899
Rep: 
|
You appear to not be asking for your preferred size correctly (225GB)
When you get the prompt for 'size' try entering +225G
(Usually, if you want the rest of the drive as one partition, just press enter.)
Code:
Command (? for help): n
Partition number (1-128, default 1): 1
First sector (34-8001573518, default = 2048) or {+-}size{KMGTP}: +225G
Last edited by fatmac; 12-11-2023 at 04:19 AM.
|
|
|
12-11-2023, 04:26 AM
|
#24
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,845
|
With all the trouble it might be a faulty drive. Yes I’m aware it is a new drive, however it wouldn’t be the first time something was sold broken.
|
|
|
12-11-2023, 05:18 AM
|
#25
|
Member
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 349
Original Poster
Rep: 
|
Yes, I'm beginning to believe that the disk is fault or bad. Creating a GPT partition table has never been a problem and using parted or gparted has never been an issue for me in the past until I bought this 4TB Samsung Evo. The commands all check out or at least I never see any errors. Just like the last commands that I tried. First I created the GPT partition table followed by creating a 225 GB sdb1 partition. Got out of parted and commenced with the following which also should have been no problem if everything was working correctly.
Code:
$ sudo mkfs -t ext4 /dev/sdb1
mke2fs 1.46.2 (28-Feb-2021)
Creating filesystem with 58982144 4k blocks and 14745600 inodes
Filesystem UUID: c2172652-ed89-48aa-b130-68882887cfe4
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks):
Yet it's been "formatting" this 225 GB ext4 partition for over an hour now.
So clearly, something appears to be wrong here. 
|
|
|
12-11-2023, 09:11 AM
|
#26
|
Member
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 349
Original Poster
Rep: 
|
PROBLEM SOLVED !!!
Apparently all along the issue was the fact that I was attempting to do create the GPT partition along with everything else on an external 4TB SSD disk. I'm not sure if it was the external controller that's at fault or just the fact that this wasn't meant to be done on an external disk, but whatever the case .... I went ahead and got an older backup / emergency setup of mine, took the disk out of that one, then installed the 4TB SSD Samsung in that system as the primary. After that I booted into my own custom Live MX without a problem. Just for sh**s and giggles decided to go with gparted since that's always been my goto for the past 10+ years .... and voila, 10 minutes later I had GPT installed along with formatted partitions.
It just never made any sense to me that gparted had any fault in that situation.
I was trying to get everything done on my regular setup since I only have one display at the moment. So changing to a different system with a new primary disk just seemed like a pain in the rear. Had I done that to begin with, this post wouldn't exist.
Sorry about that.
There's still one more related issue but this is not the post for that. I'll write another post on that one, having to do with the EFI boot partitions. Anyway, off I go. Thanks for all of the help here, I really appreciated it. 
|
|
|
All times are GMT -5. The time now is 04:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|