December 2014

Under RHEL7 view block devices filesystem is more or less same as we used to do it under RHEL6. Lets understand some interesting commands to view block devices and filesystem under RHEL7.


lsblk:
lsblk command allows you to display a list of available block devices.
lsblk command displays the device name (NAME), major and minor device number (MAJ:MIN), if the device is removable (RM), what is its size (SIZE), if the device is read-only (RO), what type is it (T YPE), and where the device is mounted (MOUNT POINT ). Reember, by default lsblk command shows ouput in tree format. To display the information as an ordinary list, add the -l command line option.
blkid

blkid command, as was under RHEL6, in RHEL7 is used to view information about available block devices.

 Be default, the blkid command displays available attributes such as its universally unique identifier (UUID), file system type (T YPE), or volume label (LABEL), as in command one, in above snapshot.

You can also use blkid to display information about a particular device only, specify the device name on the command line – blkid /dev/sda1, as in command two, above snapshot.

Further, you can also use the above command with the -p and -o udev command line options to obtain more detailed information. You need to have root privileges to run the third command in above snapshot.
findmnt

findmnt command allows you to display a list of currently mounted file systems. findmnt command displays the target mount point (TARGET ), source device (SOURCE), file system type (FSTYPE), and relevant mount options (OPT IONS).

Like lsblk command, findmnt lists file systems in a tree-like format. T o display the information as an ordinary list, add the -l command line option.
 df

Exactly like in RHEL6, here in RHEL7 df command allows you to display a detailed report on the system’s disk space usage. df command displays its name (Filesystem ), size (1K-blocks or Size), how much space is used (Used), how much space is still available (Available), the percentage of space usage (Use%), and where is the file system mounted (Mounted on).

Similar like in RHEL6, the df command in RHEL7 shows the partition size in 1 kilobyte blocks and the amount of used and available disk space in kilobytes. To view the information in megabytes and gigabytes, supply the -h command line option, human-readable format.
du

du command allows you to displays the amount of space that is being used by files in a directory. Like df, du command displays the disk usage in kilobytes. T o view the information in megabytes and gigabytes, supply the -h command line option and to get the summary information only use -s option.
And lastly, you have the gnome-system-monitor tool in rhel7 viewing block devices & filesystem.


Hi There ...
Welcome to Kali World or let's say Linux Big world
things in windows was much easier  you can install a Software with few Clicks
you can install Drivers with few clicks !

but in Linux is not like that, there is always work to do commands to write simply in Linux you have to do things by your self and yes you have to learn to do it,
so windows was better ? for sure no because here we learn things and there is no virus to be scared off, with Linux everything is under control.
So let's start
few days ago i got kali Linux 1.7 and i wanted to install Nvidia Driver
i went to docs in Kali.org and i did follow the step they write in the page of installing Nvidia drivers in Kali

So i start with
 apt-get update
Then
 apt-get dist-upgrade
and
 apt-get install -y linux-headers-$(uname -r) ! here the problem start
i got this message E: Unable to locate package linux-headers-3.14-kali1-686-pae
So i searched the web with a hope that i find the way to fix it but ... no one is writing a tutorial how to fix Unable to locate package linux-headers-3.14-kali1-686-pae

most of the guys says do apt-get update before apt-get install -y linux-headers-$(uname -r)
 and that is what i did but yet i still have the problem,

so if the  issue should be fixed with apt-get update then maybe the problem here is i'm not getting all the needed updates,

So i had to Check the Repositories at sources.list
to do that go to
File system etc/apt/sources.list
this what your file may have in it "mine was like that"

#

# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL $

# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL $

deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
so what i did now is adding this to line
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
and now the file have all this Repositories
#

# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL $

# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL $

deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free

deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
After i added this 2 new Repositories we have to do the update...
apt-get update
apt-get dist-upgrade
apt-get install -y linux-headers-$(uname -r)
and finally
apt-get install nvidia-kernel-dkms
now everything seems to be fine...!

world at war ...
the the interview is the movie that started the cyber  war
form hacking Sony who made the movie to taking down internet service in north Korea then hacking Swiden government site... the hacker attacked Swiden government after the government take 3 torrent site down... those site have some of the data that was stolen from Sony ...
after the Swiden attack today the hackers hacked into USA sites and took about 13,000 credit card with full person data and publish the data online just like they did with Sony data ... and now the attack is at twitter site playing in the service date and forcing large scale Log Out worldwide...

Author Name

{picture#YOUR_PROFILE_PICTURE_URL} YOUR_PROFILE_DESCRIPTION {facebook#https://www.facebook.com/wTsXDev} {twitter#https://twitter.com/wTsDev} {google#https://plus.google.com/u/0/+AnonSalame} {pinterest#https://www.pinterest.com/Thexwts/} {youtube#https://www.youtube.com/channel/UCg2fUa8Yp-aWDCJYQTVHmBg}

Contact Form

Name

Email *

Message *

Powered by Blogger.