Cant see part of new hard drive

Forum rules
Before you post please read this
Post Reply
rustyp
Level 3
Level 3
Posts: 128
Joined: Sun Nov 02, 2014 1:45 pm

Cant see part of new hard drive

Post by rustyp » Mon Sep 16, 2019 1:02 pm

Installed new 1TB SSD on dual booting laptop (Windows 10 and Linux Mint 18.3) everything went well except I have 460 GB I cannot access in LM and can not even see in Windows 10 file manager

It says unallocated space see attached screen capture

I am a hard drive dummy that needs step by step instructions to correct this without losing data on other partitions.
I want the 460GB shared with both Linux Mint and Windows 10.

1.I assume I need to click on the + button to create a partition
2.Select Compatible with all systems and devices (Fat)


Is this all I need to do?
Other suggestions options what would you do and why.

Thanks in advance
LaptopHarddrive.png
Before posting on this site I always verify I have the latest version of Linux Mint Cinnamon installed and run Update Manager.
Thanks.

athi
Level 6
Level 6
Posts: 1461
Joined: Sun Mar 30, 2014 10:15 am
Location: USA

Re: Cant see part of new hard drive

Post by athi » Mon Sep 16, 2019 1:25 pm

I would recommend NTFS for the shared data partition (accessible to both Windows and Mint without file size limitation). Also, do not forget to disable Win10 fast startup and hibernation to prevent Win10 from locking the partition.
Mint Mate 19.1. Main rig is HP 800G2 I5 6500 16GB ram, 120GB boot drive, 2x3TB, 1x4TB data drives. Oldest rig is Mate 18.3 on Dell D620 with 32bits core duo.

rustyp
Level 3
Level 3
Posts: 128
Joined: Sun Nov 02, 2014 1:45 pm

Re: Cant see part of new hard drive

Post by rustyp » Mon Sep 16, 2019 1:43 pm

athi wrote:
Mon Sep 16, 2019 1:25 pm
I would recommend NTFS for the shared data partition (accessible to both Windows and Mint without file size limitation). Also, do not forget to disable Win10 fast startup and hibernation to prevent Win10 from locking the partition.
I use this laptop in remote locations where I have no internet access for at least one program (Google Earth) WILL NOT restart and allow you to use cached data until its able to connect to the internet after it connects to the Internet and completes its SPYING you can then turn off your internet connection and continue to used the cached data imagery, if you have no internet your screwed so the solution is to hibernate the computer when it comes out of hibernation you can pick up where you left off.

If I could get Google Earth portable to run reliably in Linux Mint I would do away with Windows 10 all together OR if I could get Google Earth to run in Linux Mint reliably with a 20 gig data cache limit could dump Windows...

Currently using multiple installations of Google Earth Portable build the cache to the 2gig limit at home then switch to another installation to cache more data repeat as many times as nessessary, open the Google Earth Portable for the area I am in at the time.

Using http://portableappz.blogspot.com/search?q=google

Thanks
Suggestions?
Before posting on this site I always verify I have the latest version of Linux Mint Cinnamon installed and run Update Manager.
Thanks.

athi
Level 6
Level 6
Posts: 1461
Joined: Sun Mar 30, 2014 10:15 am
Location: USA

Re: Cant see part of new hard drive

Post by athi » Mon Sep 16, 2019 1:56 pm

You can leave Win10 hibernation enabled but I not sure if Mint can even boot with Win10 in hibernation.
Mint Mate 19.1. Main rig is HP 800G2 I5 6500 16GB ram, 120GB boot drive, 2x3TB, 1x4TB data drives. Oldest rig is Mate 18.3 on Dell D620 with 32bits core duo.

User avatar
Flemur
Level 17
Level 17
Posts: 7203
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Cant see part of new hard drive

Post by Flemur » Mon Sep 16, 2019 2:31 pm

rustyp wrote:
Mon Sep 16, 2019 1:02 pm
I am a hard drive dummy that needs step by step instructions to correct this without losing data on other partitions.
I want the 460GB shared with both Linux Mint and Windows 10.

1.I assume I need to click on the + button to create a partition
2.Select Compatible with all systems and devices (Fat)
Yup. Make it ntfs. Give it a LABEL when you make it.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

rustyp
Level 3
Level 3
Posts: 128
Joined: Sun Nov 02, 2014 1:45 pm

Re: Cant see part of new hard drive

Post by rustyp » Mon Sep 16, 2019 7:20 pm

Getting the following error

Error creating partition on /dev/sda: Command-line `parted --align optimal --script "/dev/sda" "mkpart \" \" ext2 476935MiB 960197107199b"' exited with non-zero exit status 1: Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 898611840 blocks) or continue with the current setting?
Error: You requested a partition from 500GB to 960GB (sectors 976762880..1875384974).
The closest location we can manage is 500GB to 500GB (sectors 976762880..976773134).
(udisks-error-quark, 0)

hd error.png
hd error1.png
Before posting on this site I always verify I have the latest version of Linux Mint Cinnamon installed and run Update Manager.
Thanks.

all41
Level 15
Level 15
Posts: 5670
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Cant see part of new hard drive

Post by all41 » Mon Sep 16, 2019 9:35 pm

You can leave Win10 hibernation enabled but I not sure if Mint can even boot with Win10 in hibernation.
Sure, if they are on separate drives

User avatar
Spearmint2
Level 16
Level 16
Posts: 6780
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Cant see part of new hard drive

Post by Spearmint2 » Tue Sep 17, 2019 12:35 am

Maybe check in the BIOS and see any information on why the UEFI system limited the GPT drive to half it's size and left the rest "unallocated".
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

User avatar
AndyMH
Level 9
Level 9
Posts: 2510
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Cant see part of new hard drive

Post by AndyMH » Tue Sep 17, 2019 3:27 am

Sounds to me as though there is a problem with the partition table. Did you create mint on this SSD by cloning it from another drive?

Try sudo sfdisk -l /dev/sda and see if it tells you anything useful. And sudo sfdisk -V /dev/sda will check the partition table.
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate

rustyp
Level 3
Level 3
Posts: 128
Joined: Sun Nov 02, 2014 1:45 pm

Re: Cant see part of new hard drive

Post by rustyp » Tue Sep 17, 2019 2:52 pm

AndyMH wrote:
Tue Sep 17, 2019 3:27 am
Sounds to me as though there is a problem with the partition table. Did you create mint on this SSD by cloning it from another drive?

Try sudo sfdisk -l /dev/sda and see if it tells you anything useful. And sudo sfdisk -V /dev/sda will check the partition table.
Cloned the original 500GB drive to a 1TB drive, the old drive had both Win 10 and Linux Mint 18.3 installed and running as dual boot just wanted more HD space to store data, I want to share the 460GB in question with both Windows and Linux Mint, accessible by either operating system, I mostly use LM, only use Windows for GPS related programs that wont run in Linux Mint.

sudo sfdisk -l /dev/sda

Disk /dev/sda: 894.3 GiB, 960197124096 bytes, 1875385008 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: xxxxxxxx-xxxx-xxxxxxxxxxxxxxxxxxxxxx

Device Start End Sectors Size Type
/dev/sda1 2048 534527 532480 260M EFI System
/dev/sda2 534528 567295 32768 16M Microsoft reserved
/dev/sda3 567296 554862154 554294859 264.3G Microsoft basic data
/dev/sda4 946188288 948195327 2007040 980M Windows recovery environment
/dev/sda5 948195328 976760831 28565504 13.6G Microsoft basic data
/dev/sda6 554862592 937992191 383129600 182.7G Linux filesystem
/dev/sda7 937992192 946188287 8196096 3.9G Linux swap

Partition table entries are not in disk order.
===========================================================================================
sudo sfdisk -V /dev/sda

/dev/sda:
No errors detected.
Header version: 1.0
Using 7 out of 128 partitions.
A total of 14754 free sectors is available in 3 segments (the largest is 6 MiB).

Suggestions?
Thanks in advance
Before posting on this site I always verify I have the latest version of Linux Mint Cinnamon installed and run Update Manager.
Thanks.

rustyp
Level 3
Level 3
Posts: 128
Joined: Sun Nov 02, 2014 1:45 pm

Re: Cant see part of new hard drive

Post by rustyp » Thu Sep 19, 2019 8:31 pm

Anybody else have suggestions?
Before posting on this site I always verify I have the latest version of Linux Mint Cinnamon installed and run Update Manager.
Thanks.

User avatar
Spearmint2
Level 16
Level 16
Posts: 6780
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Cant see part of new hard drive

Post by Spearmint2 » Thu Sep 19, 2019 9:25 pm

You could try "gdisk" program to correct the GPT on the drive.

Since you cloned it, a GPT backup partition was at the end of your 500 GB drive, so now it looks to the system as still a 500 GB drive, but on that 1 TB drive. Another downside to GPT. (Guid Partition Table).

Code: Select all

info gdisk
what does this report?

Code: Select all

gdisk /dev/sda
Then choose the v option, see if it can see the entire drive space. However, it will probably only see what's already there from original clone values.

In the expert area, this may be the choice you want.

Code: Select all

       f      Randomize  the  disk's  GUID  and  all partitions' unique GUIDs (but not their partition type code GUIDs). This function may be used
              after cloning a disk with another utility in order to render all GUIDs once again unique.
https://wiki.archlinux.org/index.php/GP ... a_GPT_disk
Expand a GPT disk

After enlarging a disk (e.g. in hardware RAID or a virtual machine disk) the newly added free space will not be immediately usable since GPT keeps data at the end of the disk. You must relocate the backup GPT header to the new end of the disk.

Run sgdisk with the option -e/--move-second-header, e.g.:

# sgdisk -e /dev/sda

Code: Select all

info sgdisk
Last, this is the person who wrote the gdisk utility, probably know the most how to correct your problem. Send him a PM asking for his help, if needed. His real name is Rod Smith.

memberlist.php?mode=viewprofile&u=79806
http://rodsbooks.com/gdisk/
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

rustyp
Level 3
Level 3
Posts: 128
Joined: Sun Nov 02, 2014 1:45 pm

Re: Cant see part of new hard drive

Post by rustyp » Fri Sep 20, 2019 12:32 pm

Output from above command

sudo gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.1

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help):




The new part of the drive is visible just need to figure out how to make it available for use by both Windows 10 and Linux Mint, it would also be nice to share the contents of that drive on the local network.

Thanks
Before posting on this site I always verify I have the latest version of Linux Mint Cinnamon installed and run Update Manager.
Thanks.

User avatar
Spearmint2
Level 16
Level 16
Posts: 6780
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Cant see part of new hard drive

Post by Spearmint2 » Fri Sep 20, 2019 1:24 pm

The new part of the drive is visible just need to figure out how to make it available for use by both Windows 10 and Linux Mint, it would also be nice to share the contents of that drive on the local network.
Not sure what you meant by that. Does it mean the rest of the drive is now available but as "unallocated" area which you can now create partitions in?
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

rustyp
Level 3
Level 3
Posts: 128
Joined: Sun Nov 02, 2014 1:45 pm

Re: Cant see part of new hard drive

Post by rustyp » Wed Oct 02, 2019 1:43 pm

Spearmint2 wrote:
Fri Sep 20, 2019 1:24 pm
The new part of the drive is visible just need to figure out how to make it available for use by both Windows 10 and Linux Mint, it would also be nice to share the contents of that drive on the local network.
Not sure what you meant by that. Does it mean the rest of the drive is now available but as "unallocated" area which you can now create partitions in?
Hi sorry for the delay in my reply, when I say the new part of the drive is visable its only visable in Disk gnome-disk-utility 3.18.3.1
UDisks 2.1.7 (built against 2.1.7) as seen in the attached photo
LaptopHarddrive.png
Before posting on this site I always verify I have the latest version of Linux Mint Cinnamon installed and run Update Manager.
Thanks.

User avatar
AndyMH
Level 9
Level 9
Posts: 2510
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Cant see part of new hard drive

Post by AndyMH » Wed Oct 02, 2019 2:09 pm

From the above, it looks like you have been using the disks utility to try and create a new partition. Use gparted (if not installed it is in the software manager). If gparted detects a mismatch between the size in the partition table and the size of the drive it should offer to fix it for you. You can then use gparted to create a new partition in the unallocated space. If you want to share it with windows then format it as NTFS.

If you want to check beforehand then sudo blockdev --getsz /dev/sda will tell you how many sectors (512B) on the drive, e,g,:

Code: Select all

andy@T430 ~ $ sudo blockdev --getsz /dev/sda
976773168
and sudo sfdisk --dump /dev/sda will tell you what the current partition table is. I don't have a gpt disk in the laptop I'm running at the moment, but in the output from sfdisk there should be a line something like 'last lba'. This should be 34 sectors less than the output from blockdev (because on a gpt drive a backup partition table is stored in the last 34 sectors on the drive).
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate

User avatar
Spearmint2
Level 16
Level 16
Posts: 6780
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Cant see part of new hard drive

Post by Spearmint2 » Wed Oct 02, 2019 6:10 pm

OK, you got the GPT part fixed. Now you have unallocated space, which to use must be either added to existing partiton, or create a new partition that uses the unallocated space. Since it's AFTER the microsoft windows reserved partition, here's what I'd do.

As mentioned, open GParted program. Have it create a new partition in that unallocated space, and format it as FAT32. That will give easy access to it from both windows and linux, so can store files there. Give it a label such as Extra, Data, Win-Linux, or whatever you'd like.

In Linux, if you want it mounted automatically, then later we can do that, by placing an entry in the etc/fstab file to do so.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

Post Reply

Return to “Mounting Partitions”