EzDevInfo.com

partitions interview questions

Top partitions frequently asked interview questions

How to truly secure a hard-drive?

When I boot from an USB stick into my laptop I am able to mount and connect through chroot to the my hard drive and browse my files without a problem, while this has been something very very useful in times, I figure it would also be way to easy to access my files and installation for someone else.

What alternatives do I have to secure my hard drive?


Source: (StackOverflow)

How do I mount a folder from another partition?

Is there a command to mount a folder from one partition to my main partition?

Example of what I'd like to do, which obviously doesn't work:

mount /media/tc1/folder /home/dvad/home

If not by using a command, is there another way I can do this?


Source: (StackOverflow)

Advertisements

What are "/run/lock" and "/run/shm" used for?

I just want to know where and how /run/lock and /run/shm can help our PC .

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              56G   13G   41G  24% /
udev                  983M  4.0K  983M   1% /dev
tmpfs                 396M  840K  395M   1% /run
none                  5.0M  8.0K  5.0M   1% /run/lock
none                  990M  164K  990M   0% /run/shm

Source: (StackOverflow)

Detect and mount devices

I upgraded Ubuntu today and everything works smooth except that Ubuntu doesn't detect any other storage devices. My / and /home partitions work fine, but my other partitions are just not detected. I wouldn't mind, except the same problem goes with USB sticks.

When I plug in a USB stick, the light goes on, but the computer detects nothing. Just to be clear, my mouse and keyboard are connected via USB and work fine.

Any idea how to solve this issue? None of the suggestions I found on the internet have any effect.


Source: (StackOverflow)

How do I recover my accidentally lost Windows partitions after installing Ubuntu?

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions

(C:) Vista 
(D:) Entertainment 
(E:) Work 
(F:) Sources

and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.

I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost

I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?

I need these data badly as I don't have a backup for them.


Source: (StackOverflow)

How to wipe a hard disk completely so that no data recovery tools can retrieve anything? [duplicate]

This question already has an answer here:

How can I do a disk low level formatting in Ubuntu on an external hard disk so that any data recovery tools like test-disk or photorec cannot retrieve any data once formatted to ext4 or any file-system? As I was playing around with Test disk, I found that it can recover almost all old files even after formatting it many times and I want to use my external hard disk as new because it is only one year old and in warranty but without any old data.


Source: (StackOverflow)

How to create an encrypted partition?

I am trying to create an encrypted partition, and while I format it I get the option to choose the partition type (fat/ext2/ext3/ext4/xfs/reiserfs/minix/ntfs). Is there any benefit of choosing one filesystem over the others if I want my partition to have strong encryption?

Also, could you recommend an easy-to-use encryption app, and give instructions on how to create an encrypted partition?


Source: (StackOverflow)

How to encrypt external devices?

I've been a Windows power user/administrator and professional tech for years, I just made the decision to go Linux, and wow, what a difference.

Is there any decently easy way to encrypt external volumes (i.e. USB keys, external hard drives, memory sticks, etc.) that works under Ubuntu 14.04?


Source: (StackOverflow)

How to encrypt external devices using a cross-platform solution?

How can I encrypt an external device (i.e. USB keys, external hard-drives, memory sticks, etc.) so that it would subsequently be readable/writable on any computer that I plug it in?

For instance, it should then be possible to easily plug the encrypted device on a Linux, Windows, or OS X machine, and be able to access the contents without any fuss.

How can I do that?


Source: (StackOverflow)

How to rename partitions?

I'm new at Ubuntu; I installed Ubuntu 12.10 and the partitions appear like 30 GB volume and like 78EF-2C5E in task bar. I tried to rename it but rename and remove buttons are deactivated so I tried by using disks but it gives me error:

(Error setting label: Command-line `mlabel -i "/dev/sdb8" ::"windows"' exited with non-zero exit status 1: Total number of sectors (18550784) not a multiple of sectors per track (63)!
Add mtools_skip_check=1 to your .mtoolsrc file to skip this test
 (udisks-error-quark, 0))

and this happen also to any attached usb to my laptop.


Source: (StackOverflow)

How to encrypt folders (not in Home)? [duplicate]

This question already has an answer here:

Is there a way to encrypt a folder, which is not in Home (/home/user/) but even in a different partition, so only my user can access/read contained files?

Alternatively, I would like to understand if it is possible to turn a complete ext4 partition into an encrypted volume, which would be mounted at user login.

If possible, I would like to make the change without reinstalling Ubuntu.

My PC has (mount output):

/dev/sda1 on / type ext4 (rw,errors=remount-ro)
/dev/sda3 on /home type ext4 (rw)
/dev/sda4 on /home/igor/Personale type ext4 (rw)

sda4 is the partition containing folders I would like to protect.


Source: (StackOverflow)

How to merge an unallocated partition with an extended partition?

How can I merge an unallocated partition with an extended partition ? I'm having trouble moving this unallocated space to the Linux portion.

Here is my partition space:

a busy cat


Source: (StackOverflow)

Why encrypt the swap partition

I have seen on this site that many Linux users encrypt the swap partition. What are the benefits of encrypting swap?


Source: (StackOverflow)

How to prepare a disk on an EFI based PC for Ubuntu?

My computer has UEFI based BIOS and I want to start over from scratch.

The PC came with Windows installed - I later installed Ubuntu alongside.

I want to completely re-build my whole disk and install only Ubuntu on it.

So it is not about how to install Ubuntu, it is about how to prepare a disk.

What is the most professional way and which tasks will I have to perform?


Source: (StackOverflow)

How do I find out what filesystem my partitions are using?

Is there a way to find out what file system my partitions are using?


Source: (StackOverflow)