Create a Portable Drive
unix tricks
Unix Tricks
• Create a blank file of 256 MB : dd if=/dev/zero of=~/portable.drive bs=1M count=256
• Create an
ext4
filesystem within the file:
mkfs -t ext4 ~/portable.drive
ext4
with
ext2
,
ext3
,
vfat
,
msdos
,
minix
etc.
• Create a mount point:
mkdir ~/mnt/
• Mount the File/Drive:
sudo mount -t ext4 ~/portable.drive ~/mnt/
• Unmount the drive:
sudo umount ~/mnt/
-
Advantages
- Easy to carry files stored in one container.
- Good for hiding data and files from plain sight.if you share your computer with others
- Usable across unix System.
-
Disadvantages
- No security or encryption set/applied.
- Cannot be viewed, opened in Windows natively.
note:
The file created by this method can only be open and read by unix and unix-like system. Natively Windows cannot open this kind of file. but its possible to open it with Cywin
letter-spacing:1px; letter-spacing:1px; Disclaimer
No comments:
Post a Comment