[nflug] Flushing a USB drive (and mounting a second partition from my desktop)

Joe josephj at main.nc.us
Thu Mar 6 11:16:15 EST 2008


Cyber Source wrote:
> udev should handle the second partition as it does the first. Have a
> look in your /etc/fstab file for a conflicting entry relative to the
> partition that's not automounting, you most likely have a conflicting
> entry in there with the "noauto" option. I'm a gnome guy but I'm sure
> if you right click on the icon in kde, you'll get a eject/unmount
> option for the drive just like in windows.
>
> Joe wrote:
>> I have a USB 250GB hard disk with two partitions on it.  One is for
>> Windoze and one for Linux.
>>
>> When I plug it into the usb socket, kubuntu/kde puts an icon on my
>> desktop for the first partition on the drive (which happens to be the
>> windows one).
>>
>> I can mount the second partition (Linux) manually using sudo mount
>> /dev/sdb2 /media/linusb
>>
>> * How can I get the second partition to mount just like the first one
>> does - with no fuss?
>>
>> * When I want to unplug the drive, how do I flush it (assure that all
>> writes have completed)?  For the Windoze partition, I just right-click
>> on the desktop disk icon and select "safely remove".
>>
>> Thanks.
>>
>> Joe
>> _______________________________________________
>> nflug mailing list
>> nflug at nflug.org
>> http://www.nflug.org/mailman/listinfo/nflug
>>   
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug
>
That might work, but I'm not sure since clicking on the icon only mounts
the first partition (as far as accessing it), so I wouldn't be sure what
unmounting it (Safely Remove  - option) would do relative to the second
partition.

I used to sort of know my way around fstab in Mandrake 9.1, but this
stuff about UUID ... is completely new.
The drive itself becomes /dev/sdb1 and /dev/sdb2 when connected and I
don't think anything in fstab references that at all.

BTW, do you know how to get a usb drive to always be the same /dev...
even when it's plugged into a different usb port or plugged in after
something else?

Thanks.

Joe

fstab:

bigbird at sananda:/etc$ cat fstab
# /etc/fstab: static file system information.
#
#  -- This file has been automatically generated by ntfs-config --
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc /proc proc defaults 0 0
# Entry for /dev/sda4 :
UUID=c171912f-5148-41b9-a2e3-70a68361cc57 / ext3
defaults,errors=remount-ro 0 1
# Entry for /dev/sda6 :
UUID=0deaaf4c-bacb-4644-a3f1-96c46c1b8844 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/sda1 /media/windoze ntfs-3g
auto,rw,gid=1002,umask=0002,locale=en_US.utf8 0 0



More information about the nflug mailing list