UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
hey,
I have both my hard drives formatted for Suse. One of my hard drives has a full install of Suse Linux. I messed up my suse install, but have some valuable files on both hard drives. I downloaded and burned a live version of ubuntu, and booted it up, expecting to use it to copy files from one hard drive to the other, and to wipe the suse drive when I finished. The problem is I can't seem to get hard drive access using ubuntu live. The internet works, the floppy drives work, the cd drives work, the printer works, everything works perfectly except file access.
I am wondering if I have to do something special to mount the hard drives.
I read somewhere that ubuntu may have a restriction on the hard drive format it can read (can it read the suse defult?) If not, what distro should I use for my task?
There are no restrictions on the formats Ubuntu can read, but you'll probably have to manually mount the partitions (especially if you're using Ubuntu, as opposed to Kubuntu). Do you know how to manually mount partitions?
What you need to do is do this (I used the Ubuntu live CD to access a hard drive that had SuSE 9.3 on it but a corrupted / and /boot partitions. I needed to mount /home.)
sudo mkdir /<directory> (you choose the name)
sudo mount -t reiserfs /dev/<name of drive, such as hda1> /<directory>
For me, /home was on /dev/hda7, and I mounted it to /old, so here's what I did:
sudo mkdir /old
sudo mount -t reiserfs /dev/hda7 /old
Using Ubuntu 5.10 Live, I created a user called test and logged in with it. I then wanted to mount partition on harddisk. However, when I entered the command:
sudo mkdir /mnt/windows
It wouldn't create the subdirectory in /mnt, and didn't give an error message either. Is there something in the Live edition that prevents directories from being created in the /mnt directory? Some kind of privilege problem? I thought the sudo would promote test user to whatever priv is necessary.
When you try to access user accounts and drives with the Ubuntu Live CD it's not very friendly, (won't let copy files because you don't have user access) however there is another way.
Open a terminal window and type
sudo nautilus
This opens the nautilus explorer/browser so you can easily 'see' and get to the drives you need and you can then right click on the folder/files you want, choose 'properties'>'permissions' and change the permissions to 'read and write'.
Now the OS will let copy the data to a memory stick, CD etc.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
Quote:
Originally Posted by accessflorida
When you try to access user accounts and drives with the Ubuntu Live CD it's not very friendly, (won't let copy files because you don't have user access) however there is another way.
Open a terminal window and type
sudo nautilus
This opens the nautilus explorer/browser so you can easily 'see' and get to the drives you need and you can then right click on the folder/files you want, choose 'properties'>'permissions' and change the permissions to 'read and write'.
Now the OS will let copy the data to a memory stick, CD etc.
Accessing the drive will be as easy from your other Suse install as it is from the live CD and a lot faster.
I don't think that going into Nautilus as root will show your the drive though.
In either case, Live Session or from your other install, will require mounting the drive. You do this as root;
Code:
mkdir /mnt/rescue
or any name you want for the directory. Then;
Code:
mount /dev/hda /mnt/rescue
That should mount the drive in your /mnt/rescue directory.
Now you can access that with Nautilus as root.
Problem with that is that you will have all files transfered owned by root.
You will need to chown the suckers sometime. I suggest that you run, again as root;
Code:
chown -R user:user /mnt/rescue
where "user" is your user name. This should give your user the ownership of /mnt/rescue and all its contents. This way you can go through them with Nautilus as user, not root, and copy them anywhere you have permission to put files.
When everything is straightened out I would get rid of that /mnt/rescue directory as it is a user owned directory in your system files. Messy. Or you could use the same chown command with "root" in place of each instance of "user". This will return that directory to root ownership and leave it there in case you ever need it again.
You may find it easier to recover your data using a Parted Magic Live CD: http://partedmagic.com/doku.php
I have used Parted Magic to recover data from failing hard drives with good results.
You can also use Parted Magic to create, delete, refomat, and resize partitins easily with a nice and easy to use graphical partition manager.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.