SYA710A – LAB 0

1. What is your full name?

Milton Paiva Neto

2. What is the output in steps 3 and 8?

Output of Ubuntu

joker@ubuntu:~$ sudo fdisk -l
[sudo] password for joker:

Disk /dev/sda: 10.2 GB, 10200547328 bytes
255 heads, 63 sectors/track, 1240 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0008edf2

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1181     9486351   83  Linux
/dev/sda2            1182        1240      473917+  82  Linux swap / Solaris

Disk /dev/sdb: 62.0 GB, 62014404096 bytes
255 heads, 63 sectors/track, 7539 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6ab1bd22

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         609     4891761   83  Linux
/dev/sdb2             610        1826     9775552+  83  Linux
/dev/sdb3            1827        3651    14659312+  83  Linux
/dev/sdb4            3652        7299    29302560   83  Linux

Output of Fedora 8

[root@localhost ~]# fdisk -l

Disk /dev/sda: 10.2 GB, 10200547328 bytes
255 heads, 63 sectors/track, 1240 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×00058f46

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          51      409626   83  Linux
/dev/sda2              52         688     5116702+  83  Linux
/dev/sda3             689         752      514080   82  Linux swap / Solaris

Disk /dev/sdb: 62.0 GB, 62014404096 bytes
255 heads, 63 sectors/track, 7539 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×6ab1bd22

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         609     4891761   83  Linux
/dev/sdb2             610        1826     9775552+  83  Linux
/dev/sdb3            1827        3651    14659312+  83  Linux
/dev/sdb4            3652        7299    29302560   83  Linux

Disk /dev/dm-0: 16.1 GB, 16106127360 bytes
255 heads, 63 sectors/track, 1958 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×00000000

Disk /dev/dm-0 doesn’t contain a valid partition table

3. What is the purpose of the sudo command ?

“sudo” = Super User Do, it allows you to run a command as a super user when logged as a single user.

4. What is the purpose of the minus sign (-) when using the su command ?

It allows you to take the enviroment variables to the selected user.

5. Explain how you deleted the partition table with fdisk.

# fdisk /dev/sda

type option “d”

Select the partition number: “1”

Type “w” to write table to disk and exit, then reboot your system.

6. What is the purpose of the partprobe command ?

It informs the OS about the modifications on the partition table.

7. Write the complete mail command you would use to email a copy of lab00 to your LEARN account from MATRIX.

# mail -s “lab00” mpaivaneto@matrix.senecac.on.ca < lab00.txt

8. What is the function of the -s option to the mail command ?

Add a subject to the message.

Comments about the technology used in this lab.

This technology is very nice, because the students became free to do such things in the systems without care about possible damages in the machine. Once the system is rebooted everything is setted up to it’s default configuration.

What you learned ?

To use command line tools get informations about the partitions in different operational systems (Ubuntu and Fedora).

Advertisements

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: