• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

need some Linux FS recovery help.

VirtualLarry

No Lifer
I had a NAS that was running Linux croak on me. I removed the IDE drive from the NAS, and have it slaved to a box running Ubuntu.

I'm trying to mount the FS, and having trouble.

What do I need to do to mount the FS?

The IDE drive is /dev/sda. The SATA drive with the Linux OS is /dev/sdb and the partition is /dev/sdb1, which is mounted on /.

I assume I have to create a temp dir in /mnt, and then mount /dev/sba to that dir, is that correct?

Do I use mount, or umount? What's the difference?

Also, I typed "mount -? | less", and now I can't seem to get out of less. I hit CTRL-Z, and it stopped the job, but I can't exit the terminal with a stopped job. I typed "fg 1" to re-start that job, and I tried hitting CTRL-C and CTRL-Q, but I cannot seem to exit less. Any ideas?

I cannot "kill 1" either. Says operation not permitted.

I tried "sudo kill 1", and it just returned to the prompt, without any indication it did something. Did I just kill a system process, instead of job 1?

I hit "fg 1", and now I'm stuck in less again.

Edit: I guess I just had to hit "q" to exit, without any CTRL key.

Edit: I think I have this now. I did "sudo mkdir /mnt/recovery" followed by "sudo mount /dev/sda1 /mnt/recovery". After that, the disk to be recovered showed up under /mnt in my FS explorer window in Ubuntu. I plugged in a 500GB USB 2.0 external HD with an NTFS partition, which auto-mounted, and I was able to start copying my files.
 
Last edited:
Hey VirtualLarry,

Yes. The mount command is "sudo mount [drive device] [mount_path]". To unmount it, it's just "sudo amount [mount_path]".

However, are you writing to an NTFS partition from Ubuntu? I know NTFS-3g has write capabilities but NTFS-3g has always been a bit buggy. I wouldn't trust 100% the data you are writing to the partition. It would probably be better copying it to another Linux partition in Ubuntu (or copying to a FAT32 partition if your files are all under 4GB).
 
Note: most commands take either "-h" or "--help" as the "show help" request. However, a good thing to try first is:
Code:
man mount
man less
 
Back
Top