LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2017, 02:05 PM   #31
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917

Quote:
Originally Posted by AAGaming View Post
Disk /dev/sda: 111,8 GiB, 120034123776 bytes, 234441648 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: dos
Disk identifier: 0x536e66ee

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 60000255 59998208 28,6G 83 Linux


Disk /dev/sdb: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xa8ec4f79

Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 1743806463 1743804416 831,5G 7 HPFS/NTFS/exFAT
/dev/sdb2 1935525888 1953523711 17997824 8,6G 82 Linux swap / Solaris
/dev/sdb3 1807525886 1935525887 128000002 61G 5 Extended
/dev/sdb5 1807525888 1935525887 128000000 61G 83 Linux

Partition 3 does not start on physical sector boundary.
Partition table entries are not in disk order.
That looks good to me. You need to chkdsk that NTFS filesystem then. Of course that would have been an advantage of keeping a cut-down Windows partition, but that is done now.

Also, now that you're not going to be dual-booting with Windows, and if you never plan to do so on that machine, you should consider moving that NTFS data over to an ext4 partition. Did you back up the data on that partition to a secondary device in the end? Anyway, that will have to wait until we can work out what the problem is in accessing the NTFS filesystem.
 
Old 05-27-2017, 02:06 PM   #32
AAGaming
LQ Newbie
 
Registered: May 2017
Posts: 24

Original Poster
Rep: Reputation: Disabled
About chkdsk. You say that I should do this: https://neosmart.net/wiki/chkdsk/#Fr...llation_disc-5 ?
If so, what's the best way to get and create bootable windows 10 on USB on Linux Mint MATE 18.1?
 
Old 05-27-2017, 02:33 PM   #33
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Quote:
Originally Posted by AAGaming View Post
About chkdsk. You say that I should do this: https://neosmart.net/wiki/chkdsk/#Fr...llation_disc-5 ?
If so, what's the best way to get and create bootable windows 10 on USB on Linux Mint MATE 18.1?
No, on second thoughts, and with my sincere apologies. I suspect that approach may only work if you have a working Windows already on your machine. I'm not sure, but I don't want you to waste your time with it so I'll delete the earlier link to it.

There are probably other ways to do it, and I hope that someone can chip in with details on those, but I would suggest that you use Hiren's CD to which I linked earlier. I've never used it (I use the chkdsk facility on my Macrium Reflect boot disk) but it looks as if it will do the trick.

Alternative: connect your disk to a Windows machine and run chkdsk on that machine.
 
Old 05-27-2017, 02:35 PM   #34
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,493

Rep: Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107
Windows 8&10 have a fast startup feature which is enabled by default. A "normal" shutdown actually hibernates the system versus a full shutdown. You should be mounting a NTFS filesystem using ntfs-3g.

As suggested boot Windows if possible and perform a chkdsk and full shutdown. You can configure Windows to always perform a full shutdown. Although without out a bootable Windows this is a bit difficult.

The following will remove the hibernation file but the saved session data will be erased. Use of this option is solely your own and we are not responsible for any loss of data...

mount -t ntfs-3g -o remove_hiberfile /dev/sdb1 /media/data

I have never tried connecting a hibernated disk on another system.

Last edited by michaelk; 05-27-2017 at 02:38 PM.
 
Old 05-27-2017, 02:38 PM   #35
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Quote:
Originally Posted by michaelk View Post
As suggested boot Windows if possible and perform a chkdsk and full shutdown. You can configure Windows to always perform a full shutdown. Although without out a bootable Windows this is a bit difficult.
Hi Michael. The OP removed their Windows system partition. The NTFS partition in question is a non-bootable data partition.
 
Old 05-27-2017, 02:51 PM   #36
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,493

Rep: Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107Reputation: 4107
Thanks, just figured that out...
 
Old 05-28-2017, 05:15 AM   #37
AAGaming
LQ Newbie
 
Registered: May 2017
Posts: 24

Original Poster
Rep: Reputation: Disabled
Downloaded the Hiren's CD ISO.
Created bootable USB following this thread: https://askubuntu.com/questions/1461...so-for-windows
But cannot boot into mini Windows XP with an error:
Failed to load COM32 file /HBCD/Boot/chain.c32

Any suggestions?
 
Old 05-28-2017, 05:19 AM   #38
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Quote:
Originally Posted by AAGaming View Post
Downloaded the Hiren's CD ISO.
Created bootable USB following this thread: https://askubuntu.com/questions/1461...so-for-windows
But cannot boot into mini Windows XP with an error:
Failed to load COM32 file /HBCD/Boot/chain.c32

Any suggestions?
Which of the solutions on that thread did you use? Personally I would have just burned it to a CD given how many comments on that page say that they encountered the problem you mention using it on usb.
 
Old 05-28-2017, 05:40 AM   #39
AAGaming
LQ Newbie
 
Registered: May 2017
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Which of the solutions on that thread did you use? Personally I would have just burned it to a CD given how many comments on that page say that they encountered the problem you mention using it on usb.
1. I don't have any available CDs
2. My system doesn't have an optical drive
3. I used the first solution (the one with 8 upvotes)
 
Old 05-28-2017, 07:06 AM   #40
AAGaming
LQ Newbie
 
Registered: May 2017
Posts: 24

Original Poster
Rep: Reputation: Disabled
Maybe I can just copy files that I would like to keep from the sdb1 to a folder in /home using terminal?
So far I've tried:
cp -a /media/data/{folder}/. /home/{username}/{folder}
({folder} is where I put the name of the windows folder or directory in /home)

Also I could try deleting some windows related files like Config.Msi; Desktop.ini (yes I had the Desktop set up on my D: drive as well as Documents; Pictures; Videos; Downloads); WpSystem; WUDownloadCache.

Last edited by AAGaming; 05-28-2017 at 08:45 AM.
 
Old 05-28-2017, 07:51 AM   #41
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Now there's an idea. Your old D: drive seems a strange mix of data and Windows operating system files, perhaps one of the reasons for the problems you're encountering.

You shouldn't be copying anything to /home/{folder}. /home, which is owned by root, should contain only a directory with your username (which exists already), and then all your personal files should be under that.

So, for example, copy all those Windows directories to /home/aagaming/data/ (replace "aagaming" with your username that is there). A shortcut for /home/aagaming is ~, so you can copy everything to ~/data.

Code:
(one-off) mkdir ~/data

cp -r /media/data/Documents/ ~/data/

Last edited by hydrurga; 05-28-2017 at 07:53 AM.
 
Old 05-28-2017, 08:44 AM   #42
AAGaming
LQ Newbie
 
Registered: May 2017
Posts: 24

Original Poster
Rep: Reputation: Disabled
The above posted cp command works for moving files and directories out of the NTFS partition and Caja doesn't crash if I view them in the new directory on the /home partition.

I guess all I'll have to do is copy important files (I don't have enough space on /home partition to copy them all, so I did "du -sh {file or folder}" to see the size of each folder) and after delete the NTFS partition (unless I find a way to run the Hiren's CD and am able to shrink NTFS, so I could extend /home and move rest of the files to it).

Closing this thread.

P.S.

I forgot to add username between /home and /{folder} hydrurga, so it would link to my {user's} home. Now I changed it.

Last edited by AAGaming; 05-28-2017 at 08:50 AM.
 
Old 05-28-2017, 08:53 AM   #43
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Quote:
Originally Posted by AAGaming View Post
The above posted cp command works for moving files and directories out of the NTFS partition and Caja doesn't crash if I view them in the new directory on the /home partition.

I guess all I'll have to do is copy important files (I don't have enough space on /home partition to copy them all) and after delete the NTFS partition (unless I find a way to run the Hiren's CD and am able to shrink NTFS, so I could extend /home and move rest of the files to it).

Closing this thread.
Ok. Good. Perhaps you should boot off a Minitool Partition Wizard boot device and reduce the size of the NTFS partition. Then use GParted to create an ext4 partition in the space you release as a result, and transfer the data there (you can then add the new data partition to your fstab, but will need different parameters to the NTFS partition).

As I mentioned in an earlier post, if you want to do things with the maximum of success, use Windows tools, such as MiniTool PW, to resize/move NTFS partitions and Linux tools, such as GParted or GParted Live, to resize ext4 partitions.

Good luck, and I'm really sorry for the hassle you've had. The good thing is that you've learned a lot already - it's been a fairly steep learning curve!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Advice on partitioning drives anon091 Linux - Newbie 11 09-16-2009 07:52 AM
Partitioning two hard drives for slackware m.vanes Slackware 9 09-23-2005 08:35 AM
Partitioning drives Muze Linux - Software 5 09-15-2003 03:14 AM
Partitioning drives and what not vexer Slackware 1 01-12-2003 05:53 PM
partitioning hard drives Ingrid Linux - Software 2 11-23-2000 07:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration