Page 1 of 1

Removing files using only the command line (GUI crashed)

Posted: Wed Sep 25, 2013 4:45 pm
by gdarroch
Hi all,

I've got this problem: I can't access the gui, and only have the command line:

http://forums.linuxmint.com/viewtopic.php?f=90&t=145928

I'd like to remove the files I've put on the desktop to an external drive, so I can do a fresh install (I'm undecided between LM15 again and Win7). How do I do this using the command line?

Re: Removing files using only the command line

Posted: Wed Sep 25, 2013 4:52 pm
by WharfRat
gdarroch,

Any particular folder or your entire home :?:

Do you know how to mount the external or does it mount when you plug it in :?:

Re: Removing files using only the command line

Posted: Wed Sep 25, 2013 10:31 pm
by gdarroch
Hi WharfRat, I haven't tried a mount yet. I'll let you know how that goes. At this stage I'm better to get the entire home drive, I think.

Re: Removing files using only the command line

Posted: Thu Sep 26, 2013 4:58 pm
by gdarroch
I plugged in the USB but I'm not sure if it's mounting. What do I do to access the file menu?

Re: Removing files using only the command line

Posted: Thu Sep 26, 2013 7:05 pm
by WharfRat
gdarroch wrote:I plugged in the USB but I'm not sure if it's mounting. What do I do to access the file menu?
Check under /media/yourname. When I plug in a flash drive that's where it mounts. You can use:

Code: Select all

mount|grep media
If it's not mounted check if fdisk sees it:

Code: Select all

sudo fdisk -lu
It should be sdb or sdc depending on the number of internal drives. Look for a partition e.g., /dev/sdb1. You can try mounting it manually with:

Code: Select all

sudo mkdir /media/external

Code: Select all

sudo chown yourname:yourname  /media/external

Code: Select all

sudo mount /dev/sdb1 /media/external
To copy your home:

Code: Select all

cd /media/external

Code: Select all

cp -a /home/yourname .
Good luck :wink:

Re: Removing files using only the command line

Posted: Thu Sep 26, 2013 11:02 pm
by linuxviolin
WharfRat wrote:
gdarroch wrote:I plugged in the USB but I'm not sure if it's mounting. What do I do to access the file menu?
Check under /media/yourname. When I plug in a flash drive that's where it mounts. You can use:

Code: Select all

mount|grep media
If it's not mounted check if fdisk sees it:

Code: Select all

sudo fdisk -lu
It should be sdb or sdc depending on the number of internal drives. Look for a partition e.g., /dev/sdb1. You can try mounting it manually with:

Code: Select all

sudo mkdir /media/external

Code: Select all

sudo chown yourname:yourname  /media/external

Code: Select all

sudo mount /dev/sdb1 /media/external
To copy your home:

Code: Select all

cd /media/external

Code: Select all

cp -a /home/yourname .
Good luck :wink:
Well, maybe also you could say him/her to unmount his/her drive at the end and how make this... Because if not, he/she can have a problem... :roll:

Re: Removing files using only the command line (GUI crashed)

Posted: Sun Sep 29, 2013 2:16 am
by gdarroch
Thanks everyone. Yes I'd like to unmount the drive afterwards and so I haven't tried the solution posted yet because I don't want to risk losing everything - about the worst possible outcome.

Re: Removing files using only the command line (GUI crashed)

Posted: Sun Sep 29, 2013 8:00 pm
by gdarroch
Okay, I'm going to attach a drive, mount it, and leave it mounted until I work out how to do that. I just want to check that's okay.

Re: Removing files using only the command line (GUI crashed)

Posted: Mon Sep 30, 2013 4:30 pm
by gdarroch
What's the unmount code?

Re: Removing files using only the command line (GUI crashed)

Posted: Mon Sep 30, 2013 4:51 pm
by WharfRat
gdarroch wrote:What's the unmount code?

Code: Select all

cd ~

Code: Select all

sudo umount /media/external

Re: Removing files using only the command line (GUI crashed)

Posted: Mon Sep 30, 2013 8:39 pm
by gdarroch
LM has remapped my keyboard and I can't find the | symbol. Anyone know how to access it?

Re: Removing files using only the command line (GUI crashed)

Posted: Tue Oct 01, 2013 11:42 am
by Habitual
gdarroch wrote:LM has remapped my keyboard and I can't find the | symbol. Anyone know how to access it?
Next to the 1 key using Shift,
or....(don't you just love Linux?)...

Code: Select all

cd $home
...

sorry, that's for the ~ symbol.
Pipe symbol is Shift+back slash key "\"

Re: Removing files using only the command line (GUI crashed)

Posted: Sun Oct 06, 2013 5:03 am
by gdarroch
No, it isn't. That's where it should be. I have no idea how to find it. Is there some kind of way of producing this?

##Beginning to wonder if I should just give up, find a linux professional to remove my files (if indeed they're still there) and say goodbye to this os.

##Linux Mint feels like an epic fantasy quest, where each achievement sends me off on another mission.

##I'm not technically illiterate. I use R for statistical programming. But I don't know enough about this to make it useful to me. And that's as it should be - you don't need to know how a car works to use one, nor do you generally want to. Time spent reading the manual is time not useful in my life for the things useful to me.

Re: Removing files using only the command line (GUI crashed)

Posted: Mon Oct 07, 2013 5:09 am
by gdarroch
Can someone help me find the pipe key, so I can get my files off my pc, so I can apply for an important position which closes Wednesday?

Re: Removing files using only the command line (GUI crashed)

Posted: Mon Oct 07, 2013 5:25 am
by nisha
I wud suggest to make a live usb of your choice of linux, boot from it and access the linux partition and copy your data if you can do that

Nisha

Re: Removing files using only the command line (GUI crashed)

Posted: Mon Oct 07, 2013 2:51 pm
by gdarroch
How do I do that? I'm not stupid, but I need a lot of hand-holding.

Re: Removing files using only the command line (GUI crashed)

Posted: Mon Oct 07, 2013 4:01 pm
by nisha
gdarroch wrote:How do I do that? I'm not stupid, but I need a lot of hand-holding.
Download linux iso and use the unetbootin or universal usb installer to create bootable usb linux. Boot from the usb and u will have access to all your partition linux and or windows to copy back your data.

Here is a link which might help you understand how to create bootable usb or cd.

[url]http://forums.linuxmint.com/viewtopic.php?f=46&t=52265[/url]

Link for Universal USB Installer works only on widows environment to create bootable linux usb

Code: Select all

http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
Link for unetbooting, have version for windows, mac as well linux environment to create bootable linux usb

Code: Select all

http://unetbootin.sourceforge.net/

Re: Removing files using only the command line (GUI crashed)

Posted: Wed Oct 23, 2013 4:54 pm
by linuxviolin
gdarroch wrote:LM has remapped my keyboard and I can't find the | symbol. Anyone know how to access it?
In my case, with my French Azerty keyboard it's: AltGr + 6 (above the letters, not the numeric keypad) ===> | | |