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.
Our family laptop (read lots of important pictures) is blue screening on boot. It gets part way through the windows boot (why I think it's still alive) and throws an error about unable to mount boot partition or something like that.
I booted into Ubuntu live and cannot see the hard drive when I look in Nautilus. I do see the hard drive when I look in the disk utility. When I do sudo fdisk -l in terminal nothing comes up it just goes back to ubuntu@ubuntu:~$.
I feel like my hard drive is still alive, I just can't get to it via Ubuntu live. Any suggestions?
I am asking this because most likely, you can try to force mount the drive and backup as needed from there. I just want to make sure that it is being detected enough to the point that you are able to mount it.
please do this in a terminal:
#become root user:
su -
#list available disks:
fdisk -l
if it sees your windows partition, then you could mount it (and do that "read only" please).
Otherwise, what I've done several times, is extract the disk, put it in a USB enclosure, then plug that into a working Windows or Linux PC. It usually succeeds mounting the disk
I'm with 16pide - if you don't have an enclosure to hand you could also move the h/d to a spare slot in a desk-top where the host system will treat it as a data drive and you can copy your stuff to another drive.
Thanks for the quick responses. I'm at work right now, but I'm going to try your suggestions tonight.
16pide
Are the commands you listed any different than "sudo fdisk -l" (lower case l)? If so, I've already tried that an nothing happens (it goes to the next line with "ubuntu@ubuntu:~$" -- waiting for me to enter another command.
corp769
I'll try your command tonight!
rrsc16954
I assume the physical connection for the laptop hard drive is much smaller than a regular "IDE" connection in a desktop, correct?
If push comes to shove, I'll try to find an external enclosure, I just feel like if the disk is good I should be able to tackle this with Linux. Right? I'm willing to develop my linux-fu.
Are the commands you listed any different than "sudo fdisk -l"
they should be just the same, but since your symptom (0 output) is what I get from a non root account, I suspect sudo is acting strange. su - should really log you as root. And then fdisk -l should give you some output.
Here are the results from: ls -al /dev/sd* /dev/hd*
ubuntu@ubuntu:~$ ls -al /dev/sd* /dev/hd*
ls: cannot access /dev/hd*: No such file or directory
brw-rw---- 1 root disk 8, 0 2011-05-19 21:11 /dev/sda
brw-rw---- 1 root disk 8, 1 2011-05-19 21:11 /dev/sda1
ubuntu@ubuntu:~$
16pide
I dig what you are saying. I tried what you suggested and it asks for password. I tried blank, ubuntu, nothing worked. Any ideas or did the above info get us further? I did find this in my searching for the su password: https://help.ubuntu.com/community/RootSudo
Looks like that's your hard drive, bro! Have you tried mounting it manually? I would try creating a new directory in /media, named anything you want, and mount your drive using the following:
Code:
mount /dev/sda1 /media/hd1
Where hd1 is the new directory that you would create. If you get any warnings or errors, please paste them in here, using code tags. Thanks, and good luck dude once again
djkilgus,
I would not create a directory in /media. this directory, at least in my distribution is populated automatically when plugging a disk.
instead, create a directory in /mnt then do as corp769 just said.
Now what worries me is that you don't have Super User access on that machine. without this you can't debug what is happening, and you can't force Linux to behave as you want.
So if I were you, I'd first work on getting root access by finding the root password.
Searching on the Internet, it seems Ubuntu live cd like my fedora live cd does not have a root password. So I'm a confused with what's happening on your pc!
Searching on the Internet, it seems Ubuntu live cd like my fedora live cd does not have a root password. So I'm a confused with what's happening on your pc!
djkilgus - I must admit although I break up and rebuild desktops all the time I have never seen inside a laptop. However from the size and weight of a laptop and from 16pide's comment about putting it in a USB enclosure I assumed a laptop drive is the same as a desktop drive and that it would fit.
Sometimes if I am just trying to find out if a drive is useable or what's on it I will just sit it on a tin can beside the pc at the right height for connecting - if there are no available slots.
I am assuming the object is to get your data and not to have a learning experience in linux although don't get me wrong linux is a great tool for your situation - much more useful than the various windows boot/rescue disks. Have you tried knoppix? Quick to d/l and has some useful tools aboard for rescuing stuff from windows pc's. You do need to have somewhere to put your files though like a usb drive.
The link above is to a personal blog (not mine - he's a techie in Berlin) with technical advice about recovering photos from a friend's drive using a tool called 'photorec' - I mention this because that and some other tools like it are on the knoppix distro. So knoppix gets you in and you use sudo to use the tools - if knoppix sees your drive - but worth a shot!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.