+ Reply to Thread
Page 3 of 8 FirstFirst 12345 ... LastLast
Results 31 to 45 of 106

Thread: Razor's Linux Progress

  1. #31
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370
    Quote Originally Posted by Master Razor View Post
    What does Microsoft basic data means?
    It's a catch-all description for a GPT partition whose specific GUID is used by Windows and which contains one of the file systems Windows supports, although technically speaking neither is a requirement.

    L.E. 2
    I copied the VMs from the NTFS disk to my linux disk and they worked! Same performance.
    Just to be clear, in my system I have 3 disks: 1 SSD linux, 1 SSD windows NTFS, 1 data drive NTFS.
    Running VMs from NTFS is very slow, but running them from linux disk works fine.
    Why is this?!
    Uh, this explains it. Unlike most file system drivers, NTFS-3G runs in userspace instead of the kernel. This makes it slower and less efficient (copy something big to an NTFS partition and check the CPU usage in top) and I'm afraid nothing can be done about that. The performance hit is especially noticeable with low-end routers and OpenWrt, you're lucky if you can read at 2 MB/s.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  2. Who Said Thanks:

    Master Razor (15.01.18)

  3. #32
    I want to format my data drive to linux fs. Can anyone recomend me a good file system for an all-purpose mechanical hdd (as in data drive, download drive, and sometimes run some small VMWare VMs)? I'm thinking of using either ext4 , xfs or brtfs but not sure wehich one to choose.
    Last edited by Master Razor; 23.01.18 at 20:49.
    Reply With QuoteReply With Quote
    Thanks

  4. #33
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370
    Until you're familiar with the ins and outs of "queer" file systems like XFS, ZFS, btrfs or Reiser, stick with ext4. It's mature, meant for general purpose usage and support is almost universal. Make sure to research what the superblock and tune2fs are.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  5. Who Said Thanks:

    Master Razor (24.01.18)

  6. #34
    I finally fixed VMWare's sloweness today. It was never about the filesystem but a misconfiguration from VMWare. Here's the fix for future reference:
    Open the .vmx file inside your VM's directory and add the following at the end of file:
    MemTrimRate = "0"
    mainmem.backing = "swap"
    sched.mem.pshare.enable = "FALSE"
    prefvmx.useRecommendedLockedMemSize = "TRUE"
    Make sure you also add a black line at the end.

    If I spend weeks on such issues I will never be done. It's not just Linux learning, it's also application debuging and reconfiguration. On this particular issue I oscilated for days between CPU, RAM, and HDD only to find that it's because of the application itself. */*$@#*@$
    I also solved another issue which bugged me for years!! The .vmx file will be overwritten when restoring snapshots. Never understood why the*/ty*5 were my changes never saved.
    Last edited by Master Razor; 24.01.18 at 20:38.
    Reply With QuoteReply With Quote
    Thanks

  7. Who Said Thanks:

    anon (26.01.18)

  8. #35
    Moderator
    shoulder's Avatar
    Join Date
    12.04.08
    Location
    I*** D* M*****
    Posts
    4,827
    Activity Longevity
    4/20 19/20
    Today Posts
    0/5 sssss4827
    Quote Originally Posted by Master Razor View Post
    I also solved another issue which bugged me for years!! The .vmx file will be overwritten when restoring snapshots. Never understood why the*/ty*5 were my changes never saved.
    I guess that's by design, as this is how snapshots are supposed to work.



    ------------------------------>>>>>>>>>> <<<<<<<<<<------------------------------

    Reply With QuoteReply With Quote
    Thanks

  9. #36
    I don't think so. A snapshot refers to the contents of the virtual machine and not it's external settings (ie. VMWare settings).
    Reply With QuoteReply With Quote
    Thanks

  10. Who Said Thanks:

    Lucius (29.01.18)

  11. #37
    Is there any difference between Windows NTFS and Linux NTFS format? Say If I have a disk and format a disk in Linux and then use it on Windows, will I get any issues like corruption, data loss, compatibility issues? My thinking is they are different (proprietary vs open source variant?) What do you think?
    Reply With QuoteReply With Quote
    Thanks

  12. #38
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370
    Quote Originally Posted by Master Razor View Post
    I finally fixed VMWare's sloweness today. It was never about the filesystem but a misconfiguration from VMWare. Here's the fix for future reference:
    Open the .vmx file inside your VM's directory and add the following at the end of file:

    MemTrimRate = "0"
    mainmem.backing = "swap"
    sched.mem.pshare.enable = "FALSE"
    prefvmx.useRecommendedLockedMemSize = "TRUE"
    Make sure you also add a black line at the end.
    Oh, nice! These are the performance tweaks I always apply to my virtual machines (in addition to not allowing VMware to swap any guest memory to the host system's swap in the preferences). Good to know at least some of them actually make a difference

    Code:
    scsi0.virtualDev = "pvscsi"
    ethernet0.virtualDev = "vmxnet3"
    mem.hotadd = "FALSE"
    mainMem.useNamedFile = "FALSE"
    MemTrimRate = "0"
    prefvmx.useRecommendedLockedMemSize = "TRUE"
    MemAllowAutoScaleDown = "FALSE"
    sched.mem.pshare.enable = "FALSE"
    prefvmx.minVmMemPct = "100"
    mainMem.partialLazySave = "FALSE"
    mainMem.partialLazyRestore = "FALSE"
    On Windows guest systems, disabling mem.hotadd gets rid of Plug & Play memory modules in the device manager. Note that not all systems support the PVSCSI disk controller or the VMXNET3 network adapter, but they're the best choices for those that do. Also, if you set the same variable more than once in the VMX file, the virtual machine won't start, so be careful with duplicate lines.

    If I spend weeks on such issues I will never be done. It's not just Linux learning, it's also application debuging and reconfiguration. On this particular issue I oscilated for days between CPU, RAM, and HDD only to find that it's because of the application itself. */*$@#*@$
    I also solved another issue which bugged me for years!! The .vmx file will be overwritten when restoring snapshots. Never understood why the*/ty*5 were my changes never saved.
    No one said it would be easy, but don't let that discourage you. No one becomes an instant expert, you'll pick these things up as you go, as with everything else.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  13. #39
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370
    Quote Originally Posted by Master Razor View Post
    Is there any difference between Windows NTFS and Linux NTFS format? Say If I have a disk and format a disk in Linux and then use it on Windows, will I get any issues like corruption, data loss, compatibility issues? My thinking is they are different (proprietary vs open source variant?) What do you think?
    For the sake of clarity, there is no "Linux NTFS format". The file system is the same one no matter which OS you use it with.

    Secondly, NTFS is a Microsoft trade secret, and its workings aren't officially documented anywhere. Much work has gone into reverse engineering it to achieve the decent degree of support we have right now, but not everything is done the same exact way Windows does it (see https://www.tuxera.com/community/ntf...#usedfreespace onwards; this FAQ also happens to explain some of the things we've talked before), and there is still missing functionality. As I recall, handling permissions requires lots of work, EFS is not supported, the $LogFile is not completely understood, and the ability to do real NTFS error checking under Linux is minimal, so if you suspect there are errors in your volume, you're going to have to run CHKDSK under Windows.

    (Sounds bad? On 2006, there was no read/write support at all, and read-only access not only wasn't available out of the box, but was so hard to set up. I was essentially locked out of my Windows files while playing with Ubuntu and Debian.)
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  14. #40
    I'm not sure I follow. A reverse engineered piece cannot be as good as the original, correct? How can we know whether this is the same?
    Reply With QuoteReply With Quote
    Thanks

  15. #41
    Also, an additional question:
    I have this external drive formatted as NTFS which is bootable. It runs grub4dos and I need this drive to be contiguous, having no fragmentation. In windows, for every file copy/move operation I used to copy the entire drive, format the device and then copy the data back. Do I still have to do this in linux? Will it still fragment the drive?
    Reply With QuoteReply With Quote
    Thanks

  16. #42
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370
    Quote Originally Posted by Master Razor View Post
    I'm not sure I follow. A reverse engineered piece cannot be as good as the original, correct? How can we know whether this is the same?
    Given that it's such a complex file system (it still has compatibility features for DOS and OS/2!), the Linux implementation will likely never be complete. The important thing is that pretty much all of the expected functionality is there.

    Quote Originally Posted by Master Razor View Post
    Also, an additional question:
    I have this external drive formatted as NTFS which is bootable. It runs grub4dos and I need this drive to be contiguous, having no fragmentation. In windows, for every file copy/move operation I used to copy the entire drive, format the device and then copy the data back. Do I still have to do this in linux? Will it still fragment the drive?
    Interesting question. I would expect behavior to be the same, but haven't tested it personally. This guide seems to confirm it, by recommending the use of tar to basically do exactly what you mentioned and thus "defragment" an NTFS volume. There is a userspace defragmenter called shake, but it essentially follows the same principle: read files, delete them, then recreate them in a contiguous space.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  17. Who Said Thanks:

    Master Razor (27.01.18)

  18. #43
    I would like to understand something my linux instructor said at my workplace: I don't use Debian because it is very vulnerable to malware. And then said something about the root account that is being used on a regular user account.. Do you know anything about this? AFAIK this refers to the fact that uBuntu (which the most popular Debian-based OS) does not have the root account enabled, this by default, and you get root priviledges with your user account via sudo. Could it also refer to the fact that debian is less secure than other distros? I honestly don't know what to make of what he said.
    Reply With QuoteReply With Quote
    Thanks

  19. #44
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370
    Me neither. The "stable" branch of Debian is known for sticking to old but tried and true software builds, making it attractive for those who desire, well, stability - but it still receives security updates. Ubuntu's approach to root privileges has some security advantages, but to say not using it makes you "very vulnerable to malware" is a stretch.

    Or perhaps he dislikes Debian for using systemd, which is probably smart
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  20. Who Said Thanks:

    Master Razor (29.01.18)

  21. #45
    Debian vs Slackware, what do you think? I like Slackware myself, and plan to move to it in the near future. The only reason I chose Suse is because it is somewhat close to Slackware and has great hardware support (ie. I don't have to mess around with os when installing a device). I had to start with something somewhat easier. But I like Suse as well, a lot more than Ubuntu.
    Reply With QuoteReply With Quote
    Thanks

+ Reply to Thread
Page 3 of 8 FirstFirst 12345 ... LastLast

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •