LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-09-2009, 02:53 PM   #1
rustiguzzi
LQ Newbie
 
Registered: Jul 2009
Location: England
Distribution: Mandriva One 2009.1
Posts: 25

Rep: Reputation: 15
Dual-boot Mandriva/XP - trying to create a USB backup disk for both


Greetings, all. Having successfully installed from the Mandriva One 2009.1 CD a week ago, I now have WinXP and Mandriva Linux 2009 Spring working dual-boot on the home PC. One thing I'd very much like to do is a backup, which I normally do on XP to a Maxtor Onetouch III (80GB)USB drive, and as it has plenty of spare room I thought "Why not use it for both?" According to LQ's HCL, the Maxtor should be compatible. I'm now wondering whether in fact it's possible.

Using the Mandriva Control Centre, I shrunk the Maxtor's NTFS partition to 37GB and then tried to set up the other 37GB for linux. I decided on journalised FS:ext3 as this is the file system in the linux partition, but there was a further question to answer: what mount point should it be? Several options, but I settled on /var/www as that appeared to have nothing else on it, and I can change it later (I hope) if there's a better place for it. Anyway, it got formatted and I answered "yes" to "Save the /etc/fstab mods?".

Result: the linux system sees (with Dolphin) both partitions. The NTFS one is OK, folders and files are accessible and it can be safely unloaded. The ext3 one, although it comes up on screen, cannot be safely unloaded. The error message is: org.freedesktop.HAL.Device.Volume not mounted by HAL. Device to unmount is not in /media/hal-mtab so is not mounted by HAL". True enough, /media seems to be empty.

FWIW, over on XP I find that although I can still read and write to its resized partition I can't now safely unload the disc there either - I get a "Please try later" message.

So, is what I'm trying to do possible, and if so what steps have I left out or done wrong? I'd happily Read The Famous Manual, only there doesn't appear to be one (and searching on LQ and elsewhere hasn't turned up anything on this subject yet).

I suppose the easy way out would be to just buy another USB disc (but that would mean spending money . . . )

Roy
 
Old 07-10-2009, 09:25 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,333

Rep: Reputation: 144Reputation: 144
Post your /etc/fstab file. Then run the following commands in a console:

$ su
<insert root password>
# umount /var/www

That will cause your ext3 partition to be safely unmounted. You then need to remove the fstab line entry for your ext3 partition on the usb drive. It's not needed and is interfering with the automounting features for external hard drives. I can tell you exactly what to do after you post your fstab file. Once that line entry is removed, the ext3 partition will mount and unmount just like your other NTFS partition.
 
Old 07-10-2009, 11:45 AM   #3
rustiguzzi
LQ Newbie
 
Registered: Jul 2009
Location: England
Distribution: Mandriva One 2009.1
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks! Here's the /etc/fstab file:
# Entry for /dev/sda5 :
UUID=307fdce6-5e1f-43f3-b904-6d4eb4bf3e5b / ext3 defaults 1 1
# Entry for /dev/sda7 :
UUID=239b2e8c-b788-4138-81b9-74370ee18f0f /home ext3 defaults 1 2
none /proc proc defaults 0 0
# Entry for /dev/sdb5 :
UUID=d6dd7470-5ac6-4791-ab1f-44228a7a7e34 /var/www ext3 relatime 1 2
# Entry for /dev/sda6 :
UUID=6cb15f16-4e57-4216-a33a-b264f0168287 swap swap defaults 0 0

The USB-mounted ext3 partition is /dev/sdb5. Couldn't umount the drive, as the response is:
umount: /var/www: not mounted

It's so long since I used vi that I daren't attempt editing fstab right now, but I have a linux handbook on order.

Roy
 
Old 07-10-2009, 01:21 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,333

Rep: Reputation: 144Reputation: 144
You don't need to use vi unless you want to. It's generally easier to use a gui WYSIWYG editor like kwrite. Open a console and run:

$ su -
<enter root password>
# kwrite /etc/fstab

The gui text editor, kwrite will open with root privileges at /etc/fstab. Just delete these lines:

# Entry for /dev/sdb5 :
UUID=d6dd7470-5ac6-4791-ab1f-44228a7a7e34 /var/www ext3 relatime 1 2

Afterwards, try turning on your external hard drive. A window should open up for each partition asking what you want to do. Tell it to open. When you want to disconnect, you can right click on the partition in Dolphin and tell it to safely remove and it will unmount the partition. Before you turn off the external hard drive, make sure both partitions are unmounted.

Last edited by kilgoretrout; 07-10-2009 at 01:49 PM.
 
Old 07-11-2009, 02:52 PM   #5
rustiguzzi
LQ Newbie
 
Registered: Jul 2009
Location: England
Distribution: Mandriva One 2009.1
Posts: 25

Original Poster
Rep: Reputation: 15
Tried it - works perfectly. Both partitions now behave themselves. Not only that, but back over in WinXP the USB-drive can now be safely unloaded as well. I feel better, now that I can backup from both sysstems!

A further thumbs-up of thanks is called for, in that I didn't know about kwrite before. Looks to be very useful.

Roy
 
  


Reply

Tags
usb disk


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
Q: how to create dual boot disk with ubuntu 32-bit and 64-bit maxreason Ubuntu 4 08-07-2008 12:11 PM
Mandriva Boot on USB External Hard Disk omid1979 Mandriva 1 10-23-2007 07:04 PM
How to create Dual boot disk on IDE & SATA bikerle Linux - Newbie 19 02-10-2005 09:35 AM
can I backup a root disk and boot from the new backup disk linuxbkp Linux - Enterprise 3 10-15-2004 07:42 PM


All times are GMT -5. The time now is 07:58 AM.

Main Menu
Advertisement
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