Hello,
I was trying to backup some data from a Ubuntu 12.04 linux
installation when all of a sudden the external hard drive I was using
(My Passport 300Gb) changed to read only.I have spent about 2 hours
trying to set the permission back to read write without success.For
example I have tried the following command
sudo chmod 755 "/media/My Passport"
and
sudo chmod 777 "/media/My Passport"
the message given both times was
chmod: changing permissions of `/media/My Passport': Read-only file system
I'd also like to mention that I do not recommend Ubuntu 12.04 to anyone
as it has far too many bugs to be usable.Linux Mint is much better for
example.
I hope someone can help me to get my external drive back to read write mode.
regards Peter
hi
I need some help with this simple bash script, I ran the script twice,
the first time it failed on some bash arithmetic, I then ran it again
without changing anything and it worked, so I slightly puzzled as lines
8&11 are the same and sometimes it evaluates it and sometimes not.
Steve
---------------------------------------------------------------
[bin]$ cat world
#!/usr/bin/bash
cd /home/thorfinn/projects/image/clouds/
d=`date +%Y-%m-%d`
mkdir $d
cd $d
pwd
let tst=`date +%H`*3600+`date +%M`*60+`date +%S`
echo $tst
sleep 10
let tq=`date +%H`*3600+`date +%M`*60+`date +%S`
while [ $tq -gt $tst ]
# watch a web graphic of clouds and grab every 30 minutes
# the while statement is to stop at midnight.
---------------------------------------------------------------
[bin]$ ./world
mkdir: cannot create directory `2012-08-19': File exists
/home/thorfinn/projects/image/clouds/2012-08-19
./world: line 8: let: tst=20*3600+42*60+09: value too great for base
(error token is "09")
./world: line 13: [: 74539: unary operator expected
[bin]$ ./world
mkdir: cannot create directory `2012-08-19': File exists
/home/thorfinn/projects/image/clouds/2012-08-19
74544
---------------------------------------------------------------