LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help connecting to internet & disk space in Linux Mint 13 (https://www.linuxquestions.org/questions/linux-newbie-8/help-connecting-to-internet-and-disk-space-in-linux-mint-13-a-4175416884/)

Jellybones 07-15-2012 07:37 PM

Help connecting to internet & disk space in Linux Mint 13
 
Hi, I'm new to Linux and very excited to get started- I installed Linux Mint 13 a couple of days ago but I haven't been able to get connect to the internet at all, which saddens me.
I am using a wired connection- I have a Linksys WUSB11 2.8 router and when I go to the Network Settings tab in the system tray it simply doesn't detect my router and there are no options available for me to configure a wired connection.

Secondly, I recently used gparted from my live disc to take some space away from Windows Vista, as I am dual booting with that OS as well. I successfully removed quite a bit of space from it, but now I'm left with over 100 gigs of unallocated space that I'd love to give Mint. This unallocated space appears to be inaccessible, however.

I'd very much appreciate help with this subject. Thanks in advance.

rmugunthan 07-15-2012 11:33 PM

Hi,

The first problem seems to be the driver issue. Post the output of the below command

lspci | grep Ethernet
ifconfig -a

For the second problem, post the fdisk command output for better clarification

fdisk -l

Jellybones 07-16-2012 01:06 AM

Thanks for your reply, rmugunthan. The results of the first command are:

Quote:

~ $ lspci| grep Ethernet
01:08.0 Ethernet controller: Intel Corporation N10/ICH 7 Family LAN Controller (rev 01)
david@Jelly ~ $ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:21:97:38:1e:9e
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4288 (4.2 KB) TX bytes:4288 (4.2 KB)
However the fdisk command confuses me a little. Simply typing "fdisk -l" doesn't do anything (Do I have to boot from livedisc to use this command or something?) and when I simply type in fdisk without the variable it gives me a set of options, and I'm guessing this is the command I'm after:
Quote:

fdisk [options] -l <disk> list partition table(s)
I don't know what I'm supposed to put in [options] and <disk>.

Thanks.

rmugunthan 07-16-2012 01:30 AM

Hi,

In ifconfig output "eth0" device is listed, that means network driver is already installed. But it is not taking the ipaddress. Are using dhcp or static ipaddress?. Post the network configuration file also.

To list the partition table try the below command.

sudo fdisk -l

Jellybones 07-16-2012 02:58 AM

sudo fdisk -l did the trick.

Quote:

list partition table(s)

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3ffc3ff

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 188870655 94434304 7 HPFS/NTFS/exFAT
/dev/sda2 483334142 587319295 51992577 5 Extended
/dev/sda3 587320335 625137344 18908505 12 Compaq diagnostics
/dev/sda5 581050368 587319295 3134464 82 Linux swap / Solaris
/dev/sda6 483334144 581050367 48858112 83 Linux

Partition table entries are not in disk order
I am using dhcp. I feel like this is a silly question, but: where/how do I see my network configuration file?

Thanks again for your reply.

rmugunthan 07-16-2012 07:32 AM

The below file is the network configuration file in most of the debian based disto.

cat /etc/network/interfaces

Also from the partition table, your second partition (/dev/sda2) is taken as a extended partition. Your linux operating system (/dev/sda6 - root filesystem and /dev/sda5 - swap) is reside under the extended partition. Also only three primary partition is available in your disk. So you can create the new primary partition as /dev/sda4 from the available disk space.

While creating partition make sure that there is no over loop in the existing partition. As of now in your disk 188870656 to 483334141 free sectors are available.

Jellybones 07-16-2012 02:34 PM

Here's the network config.

Quote:

cat /etc/network/interfaces
auto lo
iface lo inet loopback
I'll take your advice and create a new primary partition.
EDIT: I successfully divided up the amount of space I wanted between the two partitions. Thank you.

rmugunthan 07-17-2012 03:07 AM

Hi,

In this configuration file nothing written related with your "eth0" device. Are you created this device manually or it is listed from the installation itself?.

If it is existing from the installation means you need to append the below contents in the interface file.

auto eth0
iface eth0 inet dhcp

Then restart the networking service using the below command

/etc/init.d/networking restart

Jellybones 07-18-2012 12:25 AM

Quote:

Originally Posted by rmugunthan (Post 4730286)
In this configuration file nothing written related with your "eth0" device. Are you created this device manually or it is listed from the installation itself?.

It should be existing from the installation since I did nothing manually with the device after installing Mint.

Quote:

If it is existing from the installation means you need to append the below contents in the interface file.

auto eth0
iface eth0 inet dhcp
Okay, how do I append the interface file?

rmugunthan 07-18-2012 03:54 AM

open the file interface file using the vi editor and append the below entries.

vi /etc/network/interfaces

auto eth0
iface eth0 inet dhcp

If you are not familiar with the vi editor use the below command for the same

echo -e "auto eth0\niface eth0 inet dhcp echo" >> /etc/network/interfaces

After append the above entries restart the network service using the below command

/etc/init.d/networking restart

Jellybones 07-18-2012 02:24 PM

Quote:

Originally Posted by rmugunthan (Post 4731430)
If you are not familiar with the vi editor use the below command for the same

echo -e "auto eth0\niface eth0 inet dhcp echo" >> /etc/network/interfaces

I entered this command into the console and was told that my permissions were denied.

chrism01 07-18-2012 04:55 PM

For this level of stuff you need to be root; in your case prefix cmds with 'sudo' as previously.

Jellybones 07-18-2012 06:13 PM

I prefixed the command with sudo, but I still get the same message:

Quote:

bash:/etc/network/interfaces: permission denied

rmugunthan 07-18-2012 10:54 PM

i hope u already tried with the below command,

sudo echo -e "auto eth0\niface eth0 inet dhcp echo" >> /etc/network/interfaces

If the above command doesn't help means, post the file permission of the interface file.

ls -l /etc/network/interfaces

Jellybones 07-19-2012 12:52 PM

Quote:

i hope u already tried with the below command,

sudo echo -e "auto eth0\niface eth0 inet dhcp echo" >> /etc/network/interfaces
Yes, I had already tried it.

Here's the file permissions.
Quote:

-rw -r--r--1 root root 32 Jul 17 14:29 /etc/network/interfaces


All times are GMT -5. The time now is 09:27 PM.