I have SSD flash drive. So I want to make a new machine use UBIFS filesystem.
How can I do that? With Ubuntu desktop 17.0 dont have options for this filesystem.
And another question, with new filesystem, Could my machine run faster than ext2, FAT... filesystem? Because they are not designed to optimize for flash drive.
Thank you~
I had some result and found that. SSD called FTL devices, It transfer raw flash device to emulate block device with its controller. So My SSD can't use UBIFS like a filesystem. UBIFS just support for raw flash.
This link could make anything simple: https://digitalcerebrum.wordpress.com/random-tech-info/flash-memory/raw-flash-vs-ftl-devices/
Related
guys I have an issue with Linux
I wanna install Linux on flash disk like internal disk
actually I wanna install it with presentation space
I did it but it limited with 4 gig space.
I wanna use all space of flash disk and do my works on it like an internal partition
like a really OS
In the normal installation process, you will be asked to select the partition on which you would like to install Linux.
The option for bootable USB will be visible with a warning sign. In some flavours, it may be hidden however, you can still install it. Simply click on the USB drive partition and Linux can be installed on it.
Make sure you have at least 16GB USB Flash drive to run your Linux smoothly.
My system is not infected with ransomware. I was just thinking about ways to deal with it if it ever happened. Since I can boot my windows PC with a Linux USB and access the HDD, shouldn't it be possible to use the USB drive to back-up the HDD after ransomware was installed? Most ransomware uses the browser to lock up the computer, does it not? All anyone would have to do is boot with a Linux USB and transfer the files from the HDD to an external drive. Then reformat the HDD, reinstall windows and be on their merry way. Unless BIOS is infected (which is unlikely) there should be no issue, right?
I would just like to know if this is a viable solution.
Most ransomware encrypt your HDD. So, if you were to boot to your Linux Drive, you will not be able to view the files in your HDD as it is encrypted and you don't know the key. Most common ransomware use your encrypted data as ransom and will only give you the decryption key if you pay them their ransom. So, using a USB drive to save your computer will not work.
However, you should be able to format your drive from the Linux bootable drive, but you will still lose all your data
I am new to the Linux architecture, i was wondering how one can create a device file like sdb or sda and associate it with a physical disk in absence of udev, if it is possible. I have created a hard disk in VBOX now I am building a Linux system from scratch which has very minimal features and doesn't have udev. So is it possible to create device file in the minimal Linux and associate the VBOX hard disk to the device file.
Used devtmpfs for /dev and it worked automatically without udev.
I would like to know how to create a root file system for an embedded Linux system that is stored on a hard drive. Would this be the same procedure if it was on a flash card?
No, your boot loader would need to know how to initialize the hard drive. With flash cards the boot loader initializes as an MTD and can understand the file system.
You might be able to make progress with an IDE HD and IDE support in the boot loader.
On a regular computer (e.g., PC) the BIOS takes care of initializing all peripherals, like a primary HD.
Typically Linux embedded system is not operate directly in disk based filesystem, but use a mechanism to load the OS from a persistent storage (hard drive, flash card or memory, etc.) to volatile memory space (RAM). In general, these OS's file (commonly called as firmware) are kernel image file and a initrd (Initial RAM Disk) file, the initrd file contains root filesystem's files and any system's related files, upon boot the initrd will be uncompressed and deployed into a RAM based filesystem such as tmpfs, once completed, the system will use the tmpfs filesystem just like any disk based filesystem (ext3, btrfs), for example to run init program or script to do system initialization. Embedded system is tend to minimize I/O on persistent storage for some advantages: reliability, speed and cost.
You can learn how to accomplish this by learning any general Linux distribution on how to create and modify a initrd file.
Suppose I've installed Linux on my flash drive. Why do I need something like the casper loop file to make saving persistent? So files are being erased? Isn't the flash drive the same as actual hard disk drive? I'm a Linux noob so be patient.
Or it is because Linux on a flash drive is actually like live CD on a flash drive? Can it be installed just like it is installed on a hard disk drive?
Live Linux off a USB stick is done by embedding a bootable, read-only filesystem image as a file on a USB stick and booting from that. This is done for a couple of reasons, the largest of which being that the stick remain readable / usable on other systems, but also because it means you can use the same stack of files to make a Live CD as a USB stick.
Normally when this is done, the RW portion is done via a ramdisk, however with a USB stick, you have the opportunity to store the mutable portion of the live system on the stick.
You may think, "well, why not just do it as a directory on the stick?" The reason for this is that a FAT32 filesystem doesn't have all the metadata that a Unix environment needs. You need to use something like ext2.
So what is a casper file? It's a file that has been treated like it's a hard drive partition. That's it. Instead of pointing mkfs.ext2 or mount at /dev/sda3 (a partition), you've pointed it at /mnt/sda3/casper-rw (a file).
Casper is basically a storage container for Linux systems which downloads programs/drivers/settings anything that is software based is saved in. The files that are not in the casper drive are either the live cd (which would be on a USB drive in this case) and user-created files such as Open Office documents, pictures, and videos. Don't use up the free space on your USB drive with casper or you won't have room to save documents on the drive.
You can install Linux onto your flash drive which in turn wouldn't need a casper persistent storage because of how it runs, but it renders the USB drive as only usable on the pc that it was installed with.
That's what casper provides because a live USB drive can be used on many pcs with the same hardware configuration as the version you downloaded, and casper brings your programs and settings with you.
It seems like a "no brainer" model in keeping your "Tool"=(OS) & your "Art"=(Data / Documents) isolated from each other, and it could go even farther by "Tool"=(OS) "Special Tools"=(Additional 'wares) & "Art"=(Data / Documents).