[SOLVED] Hard disk failed due to permanent errors, using debian 6, how do I move important
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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?
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
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.
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.
(..) 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?
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.
"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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.