LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-04-2012, 01:33 AM   #1
animalcrackers
LQ Newbie
 
Registered: Aug 2012
Distribution: Debian
Posts: 28

Rep: Reputation: Disabled
Hard disk failed due to permanent errors, using debian 6, how do I move important


Files from my laptop to my flash drive from the bash? debian won't start, and so I can only work from the bash looking screen when my laptop tries to load the os.
I have a general idea of what I have to do, but I don't know the commands. I know where the file is, its on my desktop, and its my journal. I want to save that onto my flash drive.
Anybody want to help? I'd greatly appreciate it,
Animal crackers are in my soup
 
Old 12-04-2012, 09:45 AM   #2
strick1226
Member
 
Registered: Feb 2005
Distribution: CentOS, Fedora, OS X, SLES, Ubuntu
Posts: 273

Rep: Reputation: 51
Provided the laptop's hard drive isn't totally shot, you might well be able to retrieve your document from the non-booting system by using a Linux Live CD/DVD. My favorite, full-featured distribution for this is Knoppix (http://www.knopper.net/knoppix/index-en.html), but even a recent Ubuntu install CD should get you to a GUI (just don't select to install!!!) where you can easily verify whether or not the laptop's hard drive and its data are accessible at all.

Boot the system from a Live CD/DVD, see if you can find the hard drive listed and, if so, insert your USB thumbdrive and try to copy your file over to it.

Yes, there's also the option of trying to do this from a command line, but it sounds like your laptop's Debian install isn't booting at all. I really would recommend the Live CD/DVD GUI route, as it should prove to be much easier.

Hopefully the hard drive is only partially damaged and not completely inoperable.

Good luck!
 
Old 12-05-2012, 03:38 AM   #3
animalcrackers
LQ Newbie
 
Registered: Aug 2012
Distribution: Debian
Posts: 28

Original Poster
Rep: Reputation: Disabled
I cant get a hold of one, so right now my only option is to use the command line, at least that's all I can think of. Maybe I can download a small one gig os onto my phones memory card and use that on my laptop? I just don't know if that's possible.
 
Old 12-05-2012, 05:47 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,279
Blog Entries: 54

Rep: Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852
Can't you just
- insert the USB stick,
- run
Code:
mount
to see if it gets automagically mounted,
- else run
Code:
fdisk -l
to get the device name and mount it manually with, for example
Code:
mkdir /mnt/stick && mount /dev/sdd1 /mnt/stick
- copy the file and umount the stick
Code:
cp /home/animalcrackers/Desktop/journal.txt /mnt/stick && umount /mnt/stick
and be done with it?
 
Old 12-05-2012, 06:04 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,271

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Probably depends on how minimal the shell environment is. But even if all that works, how confident can one be that the target file is valid ?. Before or after the copy operation ?.
I tend to be pessimistic in such situations, and presume nothing can be trusted as good.

Go restore from a backup, even if it's old.
 
Old 12-05-2012, 04:44 PM   #6
animalcrackers
LQ Newbie
 
Registered: Aug 2012
Distribution: Debian
Posts: 28

Original Poster
Rep: Reputation: Disabled
First problem, when I type in,
Quote:
Mkdir /mnt/stick
It says
Quote:
mkdir: cannot create directory '/mnt/stick': read-only file system
Another thing is I don't know, in command line language where my journal is. I've tried
Quote:
Ls /home/animalcrackers
and it a list from Desktop to something called tor-browser_en-US.
and I don't know how to view anything that's on the desktop to know what the file name is exactly.
Plus how would I restore from a backup?
 
Old 12-05-2012, 05:24 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,279
Blog Entries: 54

Rep: Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852
Quote:
Originally Posted by animalcrackers View Post
Code:
mkdir: cannot create directory '/mnt/stick': read-only file system
Depending on what's mounted and how it's mounted root may be read-only leaving nothing else. If there's no file system errors you may (or may not) be able to
Code:
mount / -o remount,rw
else see if you have any mount points that are writable:
Code:
mount |grep rw
else try and force using another mount point:
Code:
ls -al /mnt /media # and pick one name like "temp" 
mount /dev/whereverthestickisat /mnt/temp
else you'll better use a Live CD

BTW what are your problems? What is the reason you're not being able to boot your installation properly?


Quote:
Originally Posted by animalcrackers View Post
Another thing is I don't know, in command line language where my journal is.
Then try to explain in steps and as detailed as possible how you would access your journal.
 
Old 12-09-2012, 07:53 PM   #8
animalcrackers
LQ Newbie
 
Registered: Aug 2012
Distribution: Debian
Posts: 28

Original Poster
Rep: Reputation: Disabled
Ok, I think I want to go the route where I use my phones micro sd card to host a mini linux os and insert that into my sd slot on my laptop, boot up with that and try to back up my files on the sd card. The thing is is I would have to download the os directly onto the card on my phone. Is that possible? I tried finding that on my own and it seems that websites only mention inserting the sd card into my laptop and downloading the os onto my sd card from the laptop.
To answer your question on how I normally access my journal, I just go to my desktop and click on it. Use never used a shell to access it before. But I believe the file name for it is simply journal.odt, not sure about the.odt part though, but I use open office if that helps.
 
Old 12-09-2012, 08:34 PM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,279
Blog Entries: 54

Rep: Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852
Quote:
Originally Posted by animalcrackers View Post
(..) thing is is I would have to download the os directly onto the card on my phone. Is that possible?
Sorry but unless you have the kind of phone that would allow you to download an image and write that to the "raw" sdcard device with 'dd' that's not possible.

Does your problem mean you can't even boot the machine into runlevel 1? Else why can't you just buy a Linux magazine that comes with a bootable CDROM or use your installer CDROM?
 
Old 12-09-2012, 08:38 PM   #10
animalcrackers
LQ Newbie
 
Registered: Aug 2012
Distribution: Debian
Posts: 28

Original Poster
Rep: Reputation: Disabled
The reason being I don't have any money right now. We just moved. Plus in moving I wasn't careful with the cd i installed the os on my laptop with and is now ruined.
 
Old 12-09-2012, 08:42 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,279
Blog Entries: 54

Rep: Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852
OK, clear. Are you sure you can't even boot into runlevel 1?
 
Old 12-10-2012, 01:12 AM   #12
animalcrackers
LQ Newbie
 
Registered: Aug 2012
Distribution: Debian
Posts: 28

Original Poster
Rep: Reputation: Disabled
Not really sure, what is run level one?
 
Old 12-10-2012, 07:35 PM   #13
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,279
Blog Entries: 54

Rep: Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852
"Run Level 1 is known as 'single user' mode. A more apt description would be 'rescue', or 'trouble-shooting' mode. In run level 1, no daemons (services) are started. Hopefully single user mode will allow you to fix whatever made the transition to rescue mode necessary. You can boot into single user mode typically by using your boot loader, lilo or grub, to add the word 'single' to the end of the kernel command line."
When you boot your laptop, after the BIOS diagnostic screen or vendor logo disappears, press any key. This should get you into the GRUB menu. If there's instructions follow them, else try to select a kernel to boot and press key "e" to edit, select the kernel line, press "e" again to edit, move to the end of that line and add a space and then the word "single" without quotes, then press ESC once to exit the edit line and press "b" to boot. Anyone please correct me if I'm wrong.
 
Old 12-23-2012, 05:02 AM   #14
animalcrackers
LQ Newbie
 
Registered: Aug 2012
Distribution: Debian
Posts: 28

Original Poster
Rep: Reputation: Disabled
Ok, I ran into a fellow Linux friend and he gave me a distro to work with, and I have my important files backed up. Thank you guys for your help, I'm going to try to fix my hard drive, or to find out if I can't, if I have trouble with that and can't find someone with the solution already in a thread I'll come back to you guys! Thanks again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard Disk Failure: How do I move data to a new hard disk drive? spyros Linux - Software 2 10-31-2008 03:01 PM
Can't boot due to disk errors tomzo Mandriva 3 05-18-2008 07:40 PM
System failed due to lack of free disk space une Mandriva 18 09-26-2007 05:56 AM
Ubuntu 7.0.4 install failed due to no hard drive detected koheesio Ubuntu 3 05-28-2007 06:00 AM
Failed hard disk on HP DL380 running Debian Zombie13 Linux - Hardware 2 06-08-2006 01:44 AM


All times are GMT -5. The time now is 05:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration