Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am creating dual-boot system with Windows 7 and Ubuntu. I want to check Windows 7 installation block device.

What is block device? How to distinguish the Windows 7 installation block device from Ubuntu?

How can we make secure that the Windows block device cannot be deleted by root user?

share|improve this question

1 Answer 1

Any device that allows reading or writing data blocks is a "Block Device". In Ubuntu hard drives are represented by their drivers either as /hdX for an IDE drive or /sdX for a SCSI (or SATA in a modern system) drive.

The X stands for an alphabetic letter starting with a for the first device. The first hard drive in your system will therefore be /sda, the second drive /sdb etc.. Partitions on that device are further numbered. The first partition on the first drive is /sda1, the third partition on the third drive /sdc3 etc.

To list the representation, UUID and TYPE of all block devices in our system we may issue:

sudo blkid
sudo lsblk

This, in combination with the following command to give further details on partitions

sudo fdisk -l

should give us enough information to find out the location of our Windows, or Ubuntu installation.

Throughout information on how we boot is given with the Boot Info Script.

To answer your additional question: root can do anything. Therefore it is no way other than unplugging the drive to prevent root from overwriting a Windows partition.

share|improve this answer
2  
Also sudo lsblk list block devices –  Anwar Shah Sep 19 '12 at 8:37
    
yeah - thank you @Anwar :) –  Takkat Sep 19 '12 at 8:57
    
Thank you @Takkat –  Ghanshyam Rathod Sep 19 '12 at 15:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.