Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm new in Linux

I'm trying to follow a steps for install ROS on UDOO and I have the next problem.

When I try to download and unpack ubuntu 13.04 i have the next problems:

the command line is:

babil0nia@ubuntu:/mnt/sdcard$ wget http://cdimage.ubuntu.com/ubuntu-core/releases/13.04/release/ubuntu-core-13.04-core-armhf.tar.gz tar xzf ubuntu-core-13.04-core-armhf.tar.gz

and returns:

--2014-03-24 01:05:08--  http://cdimage.ubuntu.com/ubuntu-core/releases/13.04/release/ubuntu-core-13.04-core-armhf.tar.gz
Resolving cdimage.ubuntu.com (cdimage.ubuntu.com)... 91.189.92.164, 2001:67c:1360:8c01::20
Connecting to cdimage.ubuntu.com (cdimage.ubuntu.com)|91.189.92.164|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 35939978 (34M) [application/x-gzip]
ubuntu-core-13.04-core-armhf.tar.gz: Input/output error

Cannot write to `ubuntu-core-13.04-core-armhf.tar.gz' (Input/output error).
--2014-03-24 01:05:11--  http://tar/
Resolving tar (tar)... failed: Name or service not known.
wget: unable to resolve host address `tar'
--2014-03-24 01:05:21--  http://xzf/
Resolving xzf (xzf)... failed: Name or service not known.
wget: unable to resolve host address `xzf'
--2014-03-24 01:05:31--  http://ubuntu-core-13.04-core-armhf.tar.gz/
Resolving ubuntu-core-13.04-core-armhf.tar.gz (ubuntu-core-13.04-core-armhf.tar.gz)... failed: Name or service not known.
wget: unable to resolve host address `ubuntu-core-13.04-core-armhf.tar.gz'
babil0nia@ubuntu:/mnt/sdcard$ cd 
babil0nia@ubuntu:~$ cp u
u-boot-q.imx                         ubuntu-core-13.04-core-i386.tar.gz   
ubuntu-core-13.04-core-armhf.tar.gz  uImage                               
babil0nia@ubuntu:~$ cp u
u-boot-q.imx                         ubuntu-core-13.04-core-i386.tar.gz   
ubuntu-core-13.04-core-armhf.tar.gz  uImage                               
babil0nia@ubuntu:~$ cp ubuntu-core-13.04-core-armhf.tar.gz /mnt/sdcard/
cp: cannot create regular file `/mnt/sdcard/ubuntu-core-13.04-core-armhf.tar.gz': Input/output error

So I download the ubuntu 13.04 and tried to copy in the /mnt/sdcard/ folder but I have the next problem:

babil0nia@ubuntu:~$ cp ubuntu-core-13.04-core-armhf.tar.gz /mnt/sdcard/
cp: cannot create regular file `/mnt/sdcard/ubuntu-core-13.04-core-armhf.tar.gz': Input/output error

Please help what can I do?

first I create an ext3 partion on the sd card whit Gparted

then flash u-boot on the boot sector:

dd if=u-boot-q.imx of=/dev/sdb1 bs=512 seek=2 skip=2

when i tried flash u-boot i need the command sudo chmod 777 for /dev/sd1

then mount the sd card to a local folder

sudo mkdir -p /mnt/sdcard
sudo mount /dev/sdd1 /mnt/sdcard
share|improve this question
    
Please check your sdcard is properly mounted on /mnt folder. –  Avinash Raj Mar 24 at 7:21
1  
Post the output of ls /mnt/sdcard command. –  Avinash Raj Mar 24 at 7:25
1  
Don't give the wget and tar commands on a single line like babil0nia@ubuntu:/mnt/sdcard$ wget http://cdimage.ubuntu.com/ubuntu-core/releases/13.04/release/ubuntu-core-13.04-c‌​ore-armhf.tar.gz tar xzf ubuntu-core-13.04-core-armhf.tar.gz –  Avinash Raj Mar 24 at 7:26
1  
You have to seperate these two commands as wget http://cdimage.ubuntu.com/ubuntu-core/releases/13.04/release/ubuntu-core-13.04-c‌​‌​ore-armhf.tar.gz and tar xzf ubuntu-core-13.04-core-armhf.tar.gz –  Avinash Raj Mar 24 at 7:27
    
And how exactly did you mount your /mnt/sdcard? Please edit your question and add info. –  Danatela Mar 24 at 8:09

1 Answer 1

Separate the 2 commands. On separate lines or with a ; or with &&. Need to be in a writable directory to run them.

Let's just get and unpack in $HOME dir for now. cd with no args will change to homedir.

cd 
wget http://cdimage.ubuntu.com/ubuntu-core/releases/13.04/release/ubuntu-core-13.04-core-armhf.tar.gz
tar -xzf ubuntu-core-13.04-core-armhf.tar.gz

Or:

cd && wget http://cdimage.ubuntu.com/ubuntu-core/releases/13.04/release/ubuntu-core-13.04-core-armhf.tar.gz && tar -xzf ubuntu-core-13.04-core-armhf.tar.gz

Next part of problem. Writing to sdcard mount.

Maybe it is mounted so that only root user can write to it. So try:

cd /mnt/sdcard
sudo touch TEST # will prompt for your password
ls -al 

Do you get an error when you do touch command? Maybe it is not writable by any user if so.

So now if you successfully (hopefully, maybe) can write to /mnt/sdcard do:

cd /mnt/sdcard
sudo wget http://cdimage.ubuntu.com/ubuntu-core/releases/13.04/release/ubuntu-core-13.04-core-armhf.tar.gz
sudo tar -xzf ubuntu-core-13.04-core-armhf.tar.gz

Or better skip the wget if you already did wget in your $HOME dir. Do:

cd /mnt/sdcard
# ~ is shorthand for your $HOME dir
sudo tar -xzf ~/ubuntu-core-13.04-core-armhf.tar.gz

Sorry too detailed but hope you can do that and root can write to sdcard. . . If you get errors please post them and the ls -al result of or in /mnt/sdcard. The mount options can be changed to mount it as writable if needed . . . Will require another part of answer!

share|improve this answer
    
I did with the commands separeted and have the same problem and with the && the same problem :/ –  user261479 Mar 24 at 19:27
1  
babil0nia@ubuntu:/mnt/sdcard$ wget cdimage.ubuntu.com/ubuntu-core/releases/13.04/release/… && tar -xzf ubuntu-core-13.04-core-armhf.tar.gz (More terminal messages) Cannot write to `ubuntu-core-13.04-core-armhf.tar.gz' (Input/output error). –  user261479 Mar 24 at 19:43
    
You are in /mnt/sdcard and cannot write files there. Because of how it is mounted I suppose. Do the wget in another directory to see it working and get the file. –  gaoithe Mar 24 at 23:10
    
The error info you posted in comment helps show what problem is. I think problem can be solved by just adding sudo in front of commands. Answer updated. –  gaoithe Mar 24 at 23:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.