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 |
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.
|
 |
|
05-27-2017, 02:05 PM
|
#31
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Quote:
Originally Posted by AAGaming
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.
|
|
|
05-27-2017, 02:06 PM
|
#32
|
LQ Newbie
Registered: May 2017
Posts: 24
Original Poster
Rep: 
|
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?
|
|
|
05-27-2017, 02:33 PM
|
#33
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Quote:
Originally Posted by AAGaming
|
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.
|
|
|
05-27-2017, 02:35 PM
|
#34
|
Moderator
Registered: Aug 2002
Posts: 26,626
|
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.
|
|
|
05-27-2017, 02:38 PM
|
#35
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Quote:
Originally Posted by michaelk
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.
|
|
|
05-27-2017, 02:51 PM
|
#36
|
Moderator
Registered: Aug 2002
Posts: 26,626
|
Thanks, just figured that out...
|
|
|
05-28-2017, 05:15 AM
|
#37
|
LQ Newbie
Registered: May 2017
Posts: 24
Original Poster
Rep: 
|
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?
|
|
|
05-28-2017, 05:19 AM
|
#38
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Quote:
Originally Posted by AAGaming
|
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.
|
|
|
05-28-2017, 05:40 AM
|
#39
|
LQ Newbie
Registered: May 2017
Posts: 24
Original Poster
Rep: 
|
Quote:
Originally Posted by hydrurga
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)
|
|
|
05-28-2017, 07:06 AM
|
#40
|
LQ Newbie
Registered: May 2017
Posts: 24
Original Poster
Rep: 
|
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.
|
|
|
05-28-2017, 07:51 AM
|
#41
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
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.
|
|
|
05-28-2017, 08:44 AM
|
#42
|
LQ Newbie
Registered: May 2017
Posts: 24
Original Poster
Rep: 
|
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.
|
|
|
05-28-2017, 08:53 AM
|
#43
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Quote:
Originally Posted by AAGaming
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!
|
|
|
All times are GMT -5. The time now is 01:29 PM.
|
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
|
|