Page 1 of 1

ubuntu server problems

Posted: Tue Nov 29, 2011 5:22 pm
by bowersbros
I need help please,
I need to get access to my external hard drive via terminal in Linux (Ubuntu 11.11 server edition).

So far i have done the following:

Sudo fdisk -l

which has displayed my two harddrives, as so:

Disk /dev/sda: 640.1GB blah blah

Disk /dev/sdf: 250.1GB blah blah

I want to mount the second one (the 250GB) one to /media/external so that then i can access the contents (Eventually i will need to run an application directly off there) but for me it doesnt seem to recognise /dev/sdf when i do:

sudo mount -t ntfs-3g /dev/sdf /media/external
it says: NTFS signature is missing.
Failed to mount '/dev/sdf' doesn't seem to have a valid ntfs (the system for /dev/sdf1 is hpfs/ntfs/exFAT)

So i tried with fat as well, with this:

sudo mount -t vfat /dev/sdf /media/external but to no avail also.


Finally, i also tried with /sdf1 and that resulted i nteh same thing:


[ 1919.774043] FAT-fs (sdf) : invalid media value (0x00)
mount: wrong fs type, bad option, bad superblock on /dev/sdf, missing codepage or helper program or other error.

Any ideas? please? :D

Re: ubuntu server problems

Posted: Tue Nov 29, 2011 5:45 pm
by jacek
if you just do
sudo mount /dev/sdf1 /some/random/folder
it should work out which filesystem it is automatically.

Re: ubuntu server problems

Posted: Tue Nov 29, 2011 5:47 pm
by bowersbros
now i get 'unknown filesystem type 'exfat' '

Any ideas on that one?

Note: i dont have access to internet on the PC. It has no ethernet cable, and the external harddrive is where the driver for the wireless card is stored since it isnt available by default on Ubuntu and i had to get it off the dell.com website

Re: ubuntu server problems

Posted: Tue Nov 29, 2011 5:51 pm
by jacek
I have had this before with a memory stick, exFat is another one of Microsofts fantastic inventions that the rest of the world has not caught up with yet.

Can you format the drive to FAT or NTFS (or even better EXT4) using a PC that can read it ?

Re: ubuntu server problems

Posted: Tue Nov 29, 2011 5:53 pm
by bowersbros
Ill give it a try, give me 5 minutes or so :D

Re: ubuntu server problems

Posted: Tue Nov 29, 2011 6:06 pm
by bowersbros
Okay, that worked. Now im inside my hard drive, i have

Lib (directory)
Make File (file.. ls returns it green)
src (directory)

How do i run makefile? :D

Re: ubuntu server problems

Posted: Tue Nov 29, 2011 7:30 pm
by bowersbros
Decided to try reinstall with my phone tethered to the PC to provide internet access.. That has worked so far, but i now need to hope that it allows me to setup the final one also :D

Hopefully this way will also allow me to easily do the commands i need to set it up as a server :D

Re: ubuntu server problems

Posted: Tue Nov 29, 2011 9:49 pm
by bowersbros
Okay, ubuntu seems like more hassel then its worth..

Ive tried setting up a SSH

i have enabled the Port (22) via:

Code: Select all

sudo ufw allow 22
Then when (on my mac) i try to connect using:

Code: Select all

ssh alex@my.ip.address
i get a timeout

Any ideas?

(Note: ssh is the way to do it on a mac, the ip address is correct. port: 22 is the right port, and alex is my user..

Any ideas? I really need help on this. Its really starting to annoy me :P

Re: ubuntu server problems

Posted: Tue Nov 29, 2011 10:24 pm
by bowersbros
gah, i give up with linux. Ill just stick to mamp :P

Re: ubuntu server problems

Posted: Tue Nov 29, 2011 11:26 pm
by jacek
You probably just needed to install the ssh server...

Re: ubuntu server problems

Posted: Wed Nov 30, 2011 12:15 am
by bowersbros
Installed openSSH-server (was an option on the install menu) then did

Code: Select all

sudo service ssh start
and it says 'Job SSH is already running' or something along those lines, so that wasnt the issue.

I really have no idea here at all :(

Re: ubuntu server problems

Posted: Wed Nov 30, 2011 5:00 pm
by jacek
Do you have a file at /etc/ssh/sshd-config ? (name may be a little different)