ubuntu server problems

Talk about anything in here.
Post Reply
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

ubuntu server problems

Post 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
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: ubuntu server problems

Post by jacek »

if you just do
sudo mount /dev/sdf1 /some/random/folder
it should work out which filesystem it is automatically.
Image
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: ubuntu server problems

Post 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
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: ubuntu server problems

Post 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 ?
Image
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: ubuntu server problems

Post by bowersbros »

Ill give it a try, give me 5 minutes or so :D
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: ubuntu server problems

Post 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
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: ubuntu server problems

Post 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
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: ubuntu server problems

Post 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
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: ubuntu server problems

Post by bowersbros »

gah, i give up with linux. Ill just stick to mamp :P
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: ubuntu server problems

Post by jacek »

You probably just needed to install the ssh server...
Image
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: ubuntu server problems

Post 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 :(
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: ubuntu server problems

Post by jacek »

Do you have a file at /etc/ssh/sshd-config ? (name may be a little different)
Image
Post Reply