- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Formating & mounting USB disk
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2010 08:10 AM
тАО10-12-2010 08:10 AM
Formating & mounting USB disk
I had a WesternDigital disk mounted as vfat in a SLES 10, but as I was using it to backup files, I had the inconvenient of all the files being saved as root.
Somewhere I found that if I formatted the disk as NTFS I would be able to assign permissions.
Well I formatted in an XP box, but now I can not mount it:
# mount /dev/sda /opt/backup
mount: /dev/sda: can't read superblock
More info:
# lsusb
Bus 005 Device 002: ID 03f0:1027 Hewlett-Packard
Bus 005 Device 003: ID 03f0:1327 Hewlett-Packard
Bus 005 Device 001: ID 0000:0000
Bus 006 Device 003: ID 1058:1003 Western Digital Technologies, Inc.
Bus 006 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
# fdisk -l
Disk /dev/dm-0: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-0 doesn't contain a valid partition table
...
Disk /dev/dm-29: 16.1 GB, 16106127360 bytes
255 heads, 63 sectors/track, 1958 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-29 doesn't contain a valid partition table
I will appreciate any help or advise you can give me.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2010 08:39 AM
тАО10-12-2010 08:39 AM
Re: Formating & mounting USB disk
> files, I had the inconvenient of all the
> files being saved as root.
"backup files" _how_, exactly?
> Somewhere
Where?
> I found that if I formatted the disk as
> NTFS I would be able to assign permissions.
Do you really believe that a UNIX(-like) file
system can't deal with file ownership and
permissions?
> Well I formatted in an XP box, but now I
> can not mount it:
> [...]
Have you considered telling "mount" that this
device has a NTFS file system on it?
man mount
Better yet, put the disk back the way it was,
and then try to solve your original problem
in some reasonable way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2010 08:41 AM
тАО10-12-2010 08:41 AM
Re: Formating & mounting USB disk
OOPS. I missed that part. Sorry. The
"man mount" advice still holds, however.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 02:30 AM
тАО10-13-2010 02:30 AM
Re: Formating & mounting USB disk
I figured out what was wrong ( I was using /dev/sda1 rather than the new /dev/sdb1) and now I can mount the device formatted as NTFS, I think I panicked with all those errors that fdisk -l threw.
The entry in the fstab is
/dev/sdb1 /opt/backup ntfs rw,umask=0000 0 0
The problem now is that I can not write anything to it. For example:
# >hello
-bash: hello: Permission denied
and these are the permissions of the directory:
# ls -la /opt/backup
total 5
drwxrwxrwx 1 root root 4096 Oct 11 21:25 .
drwxr-xr-x 18 root root 496 Feb 23 2010 ..
drwxrwxrwx 1 root root 0 Oct 11 21:25 System Volume Information
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 07:36 AM
тАО10-13-2010 07:36 AM
Re: Formating & mounting USB disk
I changed the type to linux and then using the partitioner (I believe is fdisk behind the YAST interface) I changed the type again to ext2 and formatted.
I think it mounted automatically after that, so unmounted changed the entry in fstab replacing ntfs with ext2, and re-mounted.
I can write, changed ownership, etc.
So we'll see how the backup goes...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 07:41 AM
тАО10-13-2010 07:41 AM
Re: Formating & mounting USB disk
What does "mount" say about it?